Code: Alles auswählen.
WRITE db-feld INTO ausgabe-feld UNIT db-unit.
* bzw.
WRITE db-feld INTO ausgabe-feld.
Code: Alles auswählen.
SELECT vbrk~kunag vbrp~vbeln likp~wadat likp~lifex lips~matnr
vbap~vbeln vbap~kdmat vbrp~fklmg vbrp~netwr
INTO CORRESPONDING FIELDS OF TABLE ztab
FROM vbrk INNER JOIN vbrp ON vbrp~vbeln = vbrk~vbeln
INNER JOIN likp ON likp~vbeln = vbrp~vgbel
INNER JOIN lips ON lips~vbeln = likp~vbeln
INNER JOIN vbap ON vbap~vbeln = lips~vgbel
AND vbap~posnr = lips~vgpos
WHERE vbrk~kunag = '0000850132'
AND vbrk~netwr > 0
AND likp~wadat > '20050701' AND likp~wadat <
'20050706'
AND vbrk~kunag = likp~kunag
AND vbrp~matnr = lips~matnr.