Code: Alles auswählen.
SELECT katcd
FROM zmm_katalog
INTO CORRESPONDING FIELDS OF TABLE ta_ausgabe
FOR ALL ENTRIES IN ta_ausgabe
WHERE katyp IN s_katyp
AND katst IN s_katst
AND katcdm IN s_katcd
AND matnr = ta_ausgabe-matnr
AND datbi >= p_datum
AND datab <= p_datum.
Code: Alles auswählen.
DATA : i_lfa1 TYPE lfa1 OCCURS 0 WITH HEADER LINE.
SELECT * INTO CORRESPONDING FIELDS OF TABLE i_lfa1
FROM lfa1
WHERE land1 EQ 'AT'.
SELECT trkorr INTO i_lfa1-name2
FROM e070
FOR ALL ENTRIES IN i_lfa1
WHERE as4user NE i_lfa1-ernam.
MODIFY i_lfa1 INDEX sy-dbcnt TRANSPORTING name2.
ENDSELECT.