To create a structure (i.e. a structured data object) in an ABAP program, you can use the DATA keyword.
It works in the same way as the TYPES statement above.
Unlike the TYPES statement, you can use the VALUE addition to set default values.
DATA: BEGIN OF struc,
comp1 TYPE ...,
comp2 TYPE ... VALUE ...,
comp3 TYPE i VALUE 99,
comp4 TYPE i VALUE IS INITIAL, "Without the addition VALUE, or if IS INITIAL is specified,
"the content is initial.
comp5 TYPE local_structured_type,
...,
END OF struc.
Serkan AKKAVAK
Computer Engineer BSc
Head of SAP & Software Department
Contact : serkurumsal@yandex.com

0 Comments