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

Which is the suitable Internal table.

Former Member
0 Likes
481

Hi,

I want to know which type of internal table would be suitable for the below mentioned process.

There is some initial set of data in a internal table. The table is looped and i do operation on the data available in that line and get another data which has to be added to the same internal table. So that when the control is done with the intial set of data in the table, it starts reading the newly added line and do the same operations mentioned below.

Warm Regards,

Aruna G

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
453

well i´s more a matter of taste.

In my eyes you can use either standard table or hashed table, but no sorted table.

Why? Because it´s not easy to add a new record to a sorted itab.

Hi,

I want to know which type of internal table would be suitable for the below mentioned process.

There is some initial set of data in a internal table. The table is looped and i do operation on the data available in that line and get another data which has to be added to the same internal table. So that when the control is done with the intial set of data in the table, it starts reading the newly added line and do the same operations mentioned below.

Warm Regards,

Aruna G

3 REPLIES 3
Read only

Former Member
0 Likes
454

well i´s more a matter of taste.

In my eyes you can use either standard table or hashed table, but no sorted table.

Why? Because it´s not easy to add a new record to a sorted itab.

Read only

Former Member
0 Likes
453

From what i understand, it would probably lead to an infinite loops.

Looks like you will end up appending records to the same internal table that you are looping .

Can you be a bit more clear, if this is not what you intend to do?

Regards,

Ravi

Read only

0 Likes
453

Hi,

The loop wont be infinite, cos at one point the above mentioned processiing of data wont happen since it wont meet some of the criteria. Its just i want to use a table sequentially and append data to it at the end.

Warm Regards,

Aruna G