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: 

Table to store serial no. of stock register

Former Member
0 Kudos

Hi,

I want to store the serial nos. of stock regisger.

Each material should have its serial no. starting from 1.

I have 75 such materials.

So I assume my table should contain 75 fields, is there any other way to solve the problem.

Thanks.

Sai.

1 REPLY 1

Former Member
0 Kudos

hi,

u can try this way,

data:

counter type i.

loop at itab.

counter = counter + 1.

fs_itab-count = counter.

fs_itab1-field1 = itab-field1.

fs_itab1-field2 = itab-field2.

append fs_itab1 to itab1.

endloop.

regards,

pritam.