Hello Experts,
I have a one requirement which is display rows as columns
for Example:
material plant quantity amount 1000 100 30 60 200 50 100 300 60 120 2000 200 50 100 300 60 120 400 32 64 3000 100 40 80 400 20 40I need output like this below..
material 100 200 300 400 1000 30 50 60 90 100 120 2000 50 60 32 100 120 64 3000 40 20 80 40I created the ALV table dynamically using at end of event..
but I am getting the
material 100 200 300 400 1000 30 50 60 90 100 120 2000 60 32 120 64 3000 20 40the values are missing ..?
I wrote like this:
LOOP AT lt_final INTO ls_final.
ASSIGN COMPONENT 'matnr' OF STRUCTURE <dyn_wa> TO <fs1>.
<fs1> = ls_final-matnr.
ASSIGN COMPONENT ls_final-vkorg OF STRUCTURE <dyn_wa> TO <fs1>.
<fs1> = ls_final-qunaty.
ASSIGN COMPONENT ls_final-vkorg OF STRUCTURE <dyn_wa> TO <fs1>.
<fs1> = ls_final-amount.
AT END OF matnr.
APPEND <dyn_wa> TO <dyn_table>.
CLEAR : <dyn_wa>.
ENDAT.
ENDLOOP.