2020 Aug 12 2:53 PM
I will take value from an internal table to the other internal table. But it failed . Can you help me ?
lt_LVORM-matnr = lt_up-matnr.
LOOP.
SELECT * INTO CORRESPONDING FIELDS OF TABLE lt_LVORM
FROM MARA WHERE matnr = lt_LVORM-matnr.
SELECT * INTO CORRESPONDING FIELDS OF TABLE lt_LVORM
FROM MARC WHERE matnr = lt_LVORM-matnr.
MODIFY lt_LVORM.
ENDLOOP.


2020 Aug 12 2:58 PM
Hi,
Please read about headers in tables and why to avoid them, it is ancient tech.
It seems that your internal table has one entry and a table header, but it's not pointing to anything yet, and you use the header row (row 0), to fill in the other header row.
lt_table -> header row
lt_table[] -> body of the table
Regards,
Michał
2020 Aug 12 2:58 PM
Hi,
Please read about headers in tables and why to avoid them, it is ancient tech.
It seems that your internal table has one entry and a table header, but it's not pointing to anything yet, and you use the header row (row 0), to fill in the other header row.
lt_table -> header row
lt_table[] -> body of the table
Regards,
Michał
2020 Aug 12 3:53 PM
LOOP alone is for "Extracts", it's an obsolete technology.
Instead, use:
LOOP AT itab ...
...
ENDLOOP.
2020 Aug 13 2:04 AM