SAP Tutorials Blog


 


DATA: BEGIN OF s1,

        a TYPE i,

        b TYPE c LENGTH 3,

        c TYPE c LENGTH 5,

      END OF s1.


DATA: BEGIN OF s2,

        a TYPE i,

        b TYPE c LENGTH 3,

        d TYPE string,

      END OF s2.


"Populating structures

s1 = VALUE #( a = 1 b = 'aaa' c = 'bbbbb' ).

s2 = VALUE #( a = 2 b = 'ccc' d = `dddd` ).


"Non-identical components in the target are initialized

s2 = CORRESPONDING #( s1 ).


Serkan AKKAVAK

Computer Engineer BSc

SAP Department Manager

Contact : serkurumsal@yandex.com