I'm just wondering if anyone can help. I'm very new to the programming lark. I've got the below program
SELECT aamatnr bbmatnr aalifnr aainfnr
aaerdat aaernam ccerdat ccernam
ccvdatu ccbdatu
FROM eina AS aa INNER JOIN makt AS bb ON aamatnr = bbmatnr
INNER JOIN eord AS cc ON aamatnr = ccmatnr AND aalifnr = cclifnr
INTO CORRESPONDING FIELDS OF TABLE it_ir_v_sl
WHERE aa~matnr IN s_matnr AND
cc~flifn EQ 'X'.
SELECT * FROM a017 INTO wa_a017
FOR ALL ENTRIES IN it_ir_v_sl
WHERE matnr = it_ir_v_sl-matnr AND
lifnr = it_ir_v_sl-lifnr.
ENDSELECT.
-
I want to write fields
matnr,
maktx,
infnr,
lifnr,
erdat,
ernam,
datab, - from table a017
datbi, - from table a017
erdat,
ernam,
vdatu,
bdatu.
But i'm not sure how to get the two internal table that i've pulled the info into to fit together so i can write this out.
If anyone can help on this, it would be a great help.
Thanks