SAP Tutorials Blog


 


 


IF struc IS INITIAL. 

  ...

ENDIF.


IF struc-comp1 = 1. 

  ...

ENDIF.


DATA(complete_struc) = struc.

DATA(comp_value) = struc-comp2.


"Type and data declarations

TYPES: type_1 TYPE structured_type-comp1,

       type_2 LIKE struc-comp1.


DATA: var_1 TYPE structured_type-comp1,

      var_2 LIKE struc-comp1.


"Variables with reference to a structured data object

DATA ref_struc_1 TYPE REF TO structured_type.

ref_struc_1 = NEW #( ).

"Excursion: Creating a reference variable using inline declaration

DATA(ref_struc_2) = NEW structured_type( ).


Serkan AKKAVAK

Computer Engineer BSc

Head of SAP & Software Department

Contact : serkurumsal@yandex.com