Concatenation new syntax( 7.4+ ).

 Report

REPORT zab_rp_concat_7_4.

DATA: lv_str1   TYPE string VALUE 'ajay',
      lv_str2   TYPE string VALUE 'babu',
      lv_str3   TYPE string VALUE 'varikallu',
      lv_final1 TYPE string,
      lv_final2 TYPE string.

CONCATENATE lv_str1 lv_str2 lv_str3 INTO lv_final1 SEPARATED BY space.
WRITE: 'Old syntax: ' lv_final1 COLOR 4.

lv_final2 | { lv_str1 } { lv_str2 } { lv_str3 } |.
WRITE: 'New syntax: ' lv_final2 COLOR 5.


Output



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

Comments

Popular posts from this blog

Pf status and user command in factory method - OOPS ALV in ABAP

fetch the data from table and send an email in ABAP

Enhancements in abap