Application Development and Automation 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: 
Read only

Question regarding internal tables

Former Member
0 Likes
439

Hi, I have an internal table, which is a deep structure (first 5 fields are normal fields, but the last field is a reference to a table). Is it possible to loop this internal table into a work area just the first 5 fields, ignoring the last field? THanks in advance.

Hi, I have an internal table, which is a deep structure (first 5 fields are normal fields, but the last field is a reference to a table). Is it possible to loop this internal table into a work area just the first 5 fields, ignoring the last field? THanks in advance.

3 REPLIES 3
Read only

Former Member
0 Likes
419

Hi Alvin,

Welcome to SDN.

Please check this link for reading a deep structure/internal table.

Hope this will help.

Regards,

Ferry Lianto

Please reward points if helpful.

Read only

Former Member
0 Likes
419

Err... not exactly. What I want is to ignore the last field of this deep structure, into a workarea. I do not wish to have a workarea which is a 'deep structure'. I'm not sure whether this is possible...

Read only

0 Likes
419

you can do a loop 'transporting' only the fields you are interested in. Your header line or work area will still have the 'deep structure' but it will not be populated.

loop at itab into workarea transporting x y z.

endloop.