CONCATENATION- New Way of Using

lightNew Way Using CONCATENATION

 


PROGRAM-

1


DATAlv_conct1 TYPE string.
” OLD WAY
CONCATENATE ‘SAP’ ‘ABAP’ INTO lv_conct1 SEPARATED BY space.
WRITE:/ lv_conct1.

” NEW WAY- Without space
DATA(lv_conct2|sap| & |abap| .
WRITE:/ lv_conct2.
” NEW WAY- With space
DATA(lv_conct3|sap| & | | & |abap| .
WRITE:/ lv_conct3.

DATAlv_text1(10TYPE VALUE ‘SAP’,
              lv_text2(10TYPE VALUE ‘ABAP’.
” NEW WAY- With space- Variable enclosed within { }
DATA(lv_conct4|{ lv_text1 }| & | | & |{ lv_text2 }|.
WRITE:/ lv_conct4.


OUTPUT:

2


 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s