SELECT * INTO TABLE @table1 FROM mara
INNER JOIN makt ON mara~matnr = makt~matnr AND makt~spras = @sy-langu
INNER JOIN marc ON mara~matnr = marc~matnr AND marc~werks = @s_werks
Im Debug sehe ich Fehler = 4. -> das System findet keine Daten.
Definition s_werks:
SELECT-OPTIONS s_werks FOR lips-werks NO-EXTENSION NO INTERVALS Default '1000'
SELECT * INTO TABLE @table1 FROM mara
INNER JOIN makt ON mara~matnr = makt~matnr AND makt~spras = @sy-langu
INNER JOIN marc ON mara~matnr = marc~matnr AND marc~werks = '1000'
-> das System findet Daten