‎2007 Jun 27 2:45 PM
Hi Gurus!
I could do with some help.
I have a complex nested itab( itab_upload ). Now I need to copy entries which do not match our restrictions to another itab to display them in an alv-report.
Can you explain how I copy these entries (a maximum of the 2 columns out of 5) into a flat itab?
Thanks in advance!
Johann
(Points will be rewarded for useful answers!)
‎2007 Jun 27 2:56 PM
hi,
in a loop, you can use MOVE itab-field to itab2-field.
Regards.
‎2007 Jun 27 2:56 PM
hi,
in a loop, you can use MOVE itab-field to itab2-field.
Regards.
‎2007 Jun 27 3:00 PM
Hi again,
LOOP at itab.
IF <condition>.
MOVE itab-field to itab2-field
endif.
endloop.
Use IF to copy only your 2 columns.
‎2007 Jun 27 2:57 PM
If you nested itab is something like...
MY_TAB (Main Table)
MY_DEEP_TAB (Deep Table)
You will need to create an Internal Table with the structure of MY_DEEP_TAB and do this....
LOOP AT MY_TAB ASSIGNING <TAB>.
MOVE <TAB>-MY_DEEP_TAB TO NEW_TAB.
APPEND NEW_TAB.
ENDLOOP.
Greetings,
Blag.