2008 Jul 15 8:59 AM
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
some fields in table have multiple values for single record.
ex:
in table pa0004.
fields:dat01 dat02 dat03.....
dar01 dar02 dar03....
2008 Jul 15 9:08 AM
2008 Jul 15 9:22 AM
some fields in table have multiple values for single record.
ex:
in table pa0004.
fields:dat01 dat02 dat03.....
dar01 dar02 dar03....
2008 Jul 15 9:37 AM
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.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |