Code: Alles auswählen.
SELECT plumi FROM mdtb INTO CORRESPONDING FIELDS OF ls_test
WHERE dtnum = ls_outtab-dtnum
AND dat01 IN so_pdate
AND plumi = '+'.
APPEND ls_test TO lt_test.
ENDSELECT.
SELECT plumi FROM mdtb INTO CORRESPONDING FIELDS OF ls_test2
WHERE dtnum = ls_outtab-dtnum
AND dat01 IN so_pdate
AND plumi = '-'.
APPEND ls_test2 TO lt_test2.
ENDSELECT.
DESCRIBE TABLE: lt_test LINES ls_outtab-requr,
lt_test2 LINES ls_outtab-aquis.
ich würde folgendes machen:Code: Alles auswählen.
DESCRIBE TABLE: lt_test LINES ls_outtab-requr, lt_test2 LINES ls_outtab-aquis.
Code: Alles auswählen.
ls_outtab-requr = lines( lt_test ).
ls_outtab-aquis = lines( lt_test2 ).
Folgende Benutzer bedankten sich beim Autor sap_enthusiast für den Beitrag:
abap_frischling