Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Deep Structure - Append and Reading

former_member688045
Discoverer
0 Kudos

Hi.....

1) I need Deep Structure Syntax for Appending and Reading..

2) I want append data following Deep Structure...

DATA : BEGIN OF itab1 OCCURS 0,

v1 TYPE i,

v2 TYPE i,

END OF itab1.

TYPES : BEGIN OF stru1,

v1 TYPE i,

v2 TYPE i,

END OF stru1.

DATA itab2 TYPE SORTED TABLE OF stru1 WITH HEADER LINE WITH UNIQUE KEY v1.

DATA : BEGIN OF stru2,

v1 TYPE i,

v2 LIKE TABLE OF itab2,

END OF stru2.

DATA itab3 LIKE STANDARD TABLE OF stru2 WITH HEADER LINE.

DATA : BEGIN OF main,

v1 TYPE i,

v2 TYPE stru1,

v3 LIKE TABLE OF itab1,

v4 LIKE STANDARD TABLE OF itab2, "------> *Here CAN WE SPECIFIES AS SORTED TABLE ..IS IT POSSIBLE?

v4 LIKE SORTED TABLE OF itab2*

v5 LIKE STANDARD TABLE OF itab3,

END OF main.

"main-v1 = 11.

"main-v2-v2 = 21.

thanx....

Edited by: B C Ganesh on Mar 16, 2010 9:44 AM

1 REPLY 1

Former Member
0 Kudos

Hi,

you do READ, APPEND (and other operations on internat table) in the same way on simple internal table like and on internal table which is part of some (deep) structure. You only have to respect names, so instead of


APPEND itab.

you have to do:


APPEND stru1-stru2-stru3-itab.

Regards,

--

Przemysław