‎2009 Sep 04 12:08 PM
hi friends,
i want to know how to do the nested structures in abap. can i do it, if means can u plz tell how to do it with the example plzzzzzz?
thanks
‎2009 Sep 04 2:34 PM
Hi,
Create one structure--->Include another structure in that.
again include the first structure into another structure.
for Example see : LEDLV_DELNOTE structure.
‎2009 Sep 04 2:34 PM
Hi,
Create one structure--->Include another structure in that.
again include the first structure into another structure.
for Example see : LEDLV_DELNOTE structure.
‎2009 Sep 04 2:50 PM
"1. example of including structures (not nested, same level)
DATA: BEGIN OF struct1,
field1 TYPE c,
field2 TYPE c,
END OF struct1.
DATA: BEGIN OF struct2,
field3 TYPE c,
field4 TYPE c.
INCLUDE STRUCTURE struct1. "<- components of struct1 are just included on same level to struct2
DATA END OF struct2.
"2. example of nesting structures (different levels)
DATA: BEGIN OF struct3,
field1 TYPE c,
field2 TYPE c,
END OF struct3.
DATA: BEGIN OF struct4,
field3 TYPE c,
field4 TYPE c,
nested like struct3, "<- these components (of struct3 are nested) - included as subsctructure
END OF struct4.
Just check in debugger how it looks like
Regards
Marcin
‎2009 Oct 05 1:22 PM
‎2009 Oct 07 8:16 AM
tcode:se11
table or
data type-> structure
You can include structures or append structures
‎2009 Nov 19 11:30 AM