Code: Alles auswählen.
SELECT jitcu~kunnr jithd~seqnr vbap~kdmat vbap~matnr vbak~vbeln
INTO CORRESPONDING FIELDS OF TABLE ztab
from jitcu
inner join jithd on jithd~custo = jitcu~custo
inner join vbak on vbak~kunnr = jitcu~kunnr
inner join vbap on vbap~vbeln = vbak~vbeln
and vbap~aufnr = vbak~aufnr
where jitcu~kunnr = '0000850132'.
SELECT vbrp~matnr vbrp~vbeln vbrp~netwr vbrp~fkimg
INTO CORRESPONDING FIELDS OF TABLE vbrp_tab
from vbrp inner join vbak on vbak~vbeln = vbrp~aubel
where vbak~kunnr = '0000850132'.