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: 

insert data into repeat structure

Former Member
0 Kudos

Hi,

I have repeat structure in 'ztable',how to populate data into repeat structure from internal table.

If anyone knows kindly help me.

Regards,

kavitha

3 REPLIES 3

Former Member
0 Kudos

what do u mean by repeat structure?

0 Kudos

some fields in table have multiple values for single record.

ex:

in table pa0004.

fields:dat01 dat02 dat03.....

dar01 dar02 dar03....

Former Member
0 Kudos

U need to populate the repeat structure as ..

If U have say 12 entries .. (PA0041)

loop at itab.

do 12 times varying W_DAR01 from itab-DAR01

next itab-DAR02

varying W_DAT01 from itab-DAT01

next itab-DAT02.

if not W_DAR01 is initial.

populate your Ztable entries accordingly ..

I think your Ztable also has the fields declared accordingly ..

endif.

enddo.

Insert into your Ztable.

endloop.