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

Move from structure into internal table

Former Member
0 Likes
900

Hi,

I have an internal table that contains the same field structure and other areas.

I want each time the program runs (loop) add the contents of the structure to the internal table.

How can I solve this problem ?

thank you.

4 REPLIES 4
Read only

Former Member
0 Likes
549

Hi,

Could you reframe your question?

Regards,

ASOK.

Read only

Former Member
0 Likes
549

Try collect or Sum inside the loop.

Read only

Former Member
0 Likes
549

hi,

first add the contents to workarea(by assigning or something)

then modify internal table using MODIFY statement

Read only

i048168
Product and Topic Expert
Product and Topic Expert
0 Likes
549

Hi,

Use the APPEND statement to add the content of the structure into the internal table.

Since the structure fields are same as the internal table, it will not be a problem.

Regards,

Vadi