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

Reading Deep internal table data from work area

Former Member
0 Likes
2,013

Hello

I am having internal table nxl_t_return ,it is having deep internal table.

My requirement is

loop at nx_t_return into nxl_s_return where type = 'E'

Here nxl_s_return has deep internal table nxl_t_attribute_attr.

Endloop

How to read values in internal table nxl_t_attribute_attr from workarea nxl_s_return.

Thanks

Mohan

3 REPLIES 3
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,272

Just use some code like 'LOOP AT nxl_s_return-nxl_t_resource_attr ASSIGNING <fs>.'
Regards,
Raymond

Read only

0 Likes
1,272

Hello Raymond

I need to loop nxl_t_return(contains multiple records) based on Type 'E'

As per u r suggestion Loop at nxl_s_return ,becomes loop inside loop,it is raises performance issue..

Any other different logic?

Read only

0 Likes
1,272

If the data object is supplied as an internal table containing a nested internal table, then I don't see how you can do it differently than a loop in a loop; there's no issue with performance in that case!

In other words, the time for reading the internal table is less thant the time for writing it, so I would first analyze the way the internal table is defined (its type) and written (append, insert, index), and if you can't change it (if it's standard), then don't bother with the nested loop).