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
Post a Comment