Using CONCATENATE in SAP ABAP

Using concatenate to combine different variables in to one

+ -
CONCATENATE is a string function which is used to add different variables into a single string variable.
Syntax : CONCATENATE   ... INTO .

Example of Using CONCATENATE

REPORT ZSAPN_CONCATENATE.
DATA : STR1 TYPE STRING.
DATA : STR2 TYPE STRING.
DATA : STR3 TYPE STRING.

DATA : STRING TYPE STRING.
STR1 = 'A'.
STR2 = 'B'.
STR3 = 'C'.
CONCATENATE STR1 STR2 STR3 INTO STRING. "Concatenate into string

WRITE :/ STRING .
*The out put will be 'ABC'

CONCATENATE with saperated by

REPORT ZSAPN_CONCATENATE.
DATA : STR1 TYPE STRING.
DATA : STR2 TYPE STRING.
DATA : STR3 TYPE STRING.

DATA : STRING TYPE STRING.
STR1 = 'THIS IS'.
STR2 = 'EXAMPLE OF'.
STR3 = 'CONCATENATE'.
CONCATENATE STR1 STR2 STR3 INTO STRING SEPARATED BY ' '. "Concatenate into string separated by space

WRITE :/ STRING .
*The out put will be 'THIS IS EXAMPLE OF CONCATENATE'

Learner Questions


No Questions by learners, be first one to ask ..!!

    Please Sign in to ask a question

    Was this lesson helpful to you? Yes No 17 People out of 17 think this lesson helpful


    Lesson Navigation

    ←Previous Chapter
    Next Chapter →