Code: Alles auswählen.
REPORT Z_AAGLSAP01_TRAINING01.
DATA: xmatnr TYPE makt-matnr,
xspras TYPE makt-spras,
xmaktx TYPE makt-maktx,
tmaktx TYPE TABLE OF makt.
SELECT-OPTIONS: s_matnr FOR xmatnr,
s_lang FOR xspras.
Select * FROM makt INTO TABLE tmaktx
WHERE matnr IN s_matnr
AND spras IN s_lang.
WRITE: 'Materialnummer:', s_matnr, /, 'Sprache:', s_lang, /, 'Materialbeschreibung:', xmaktx.
Code: Alles auswählen.
REPORT Z_AAGLSAP01_TRAINING01.
TABLES: makt.
DATA: tmakt TYPE TABLE OF makt.
SELECT-OPTIONS: s_matnr FOR makt-matnr,
s_lang FOR makt-spras.
Select * FROM makt INTO TABLE tmakt
WHERE matnr IN s_matnr
AND spras IN s_lang.
LOOP AT tmakt ASSIGNING FIELD-SYMBOL(<smakt>).
WRITE: 'Materialnummer:', <smakt>-matnr, /, 'Sprache:', <smakt>-spras, /, 'Materialbeschreibung:', <smakt>-maktx.
ENDLOOP.
Folgende Benutzer bedankten sich beim Autor a-dead-trousers für den Beitrag:
User1234