REPORT ZSM_INTERNALCONCAT.
TYPES: BEGIN OF str,
id TYPE int4,
first_name TYPE char10,
last_name TYPE char10,
full_name type char20,
END OF str.
DATA: it TYPE STANDARD TABLE OF str,
wa TYPE str.
wa-id = '1'.
wa-first_name = 'Suvadeep'.
wa-last_name = 'Mondal'.
CONCATENATE wa-first_name wa-last_name into wa-full_name SEPARATED BY ''.
APPEND wa TO it.
wa-id = '2'.
wa-first_name = 'Nitai'.
wa-last_name = 'Mondal'.
CONCATENATE wa-first_name wa-last_name into wa-full_name SEPARATED BY ''.
APPEND wa TO it.
wa-id = '3'.
wa-first_name = 'Chirashree'.
wa-last_name = 'Mondal'.
CONCATENATE wa-first_name wa-last_name into wa-full_name SEPARATED BY ''.
APPEND wa TO it.
wa-id = '4'.
wa-first_name = 'Soumyodeep'.
wa-last_name = 'Mondal'.
CONCATENATE wa-first_name wa-last_name into wa-full_name SEPARATED BY ''.
APPEND wa TO it.
LOOP AT it into wa.
write: / wa-id, wa-first_name, wa-last_name, wa-full_name.
ENDLOOP.
0 Comments