Concatenate string in ABAP

 * This is used to join multiple strings into a single string.

Code

REPORT zab_rp_str_concat.

DATA: str1      TYPE string VALUE 'Hello',
      str2      TYPE string VALUE 'Welcome to',
      str3      TYPE string VALUE 'ABAP',
      str_final TYPE string.

CONCATENATE str1 str2 str3 INTO str_final SEPARATED BY ' '.
WRITE/ str1.
WRITE/ str2.
WRITE/ str3.

WRITE'Final string: ',str_final COLOR 1.

Output




*****************Thank You****************

Comments

Popular posts from this blog

New syntax for append- VALUE (new syntax 7.4+) in ABAP

Read statement new syntax in ABAP. (7.4+).

Add custom tab to me51n at item level in ABAP