Hi,
1. I realize there is a mistake then I have to revise LandedCost by creating new landed cost Copy From Landed Cost not GR-PO
Where did you get this idea or information?
2. To add any additional cost to GRPO, you can create second landed cost for same GRPO
3. Join between GRPO and Landed cost as follow:
SELECT T0.[DocNum], T0.[DocDate], T1.[ItemCode], T1.[Dscription], T1.[Quantity],T1.[BaseEntry],t2.docentry,T1.[LineNum],T2.[BaseLine], T1.[Reference] FROM OIPF T0 INNER JOIN IPF1 T1 ON T0.DocEntry = T1.DocEntry left join PDN1 T2 on T1.[BaseEntry] = t2.docentry and T1.[LineNum] = T2.[BaseLine] INNER JOIN OPDN T3 ON T2.DocEntry = T3.DocEntry
4. There is another common field between GRPO and landed cost table is reference field.
SELECT T0.[DocNum], T1.[ItemCode], T0.[DocTotal] FROM OIPF T0 INNER JOIN IPF1 T1 ON T0.DocEntry = T1.DocEntry WHERE T1.[Reference] = [%0]
Thanks & Regards,
Nagarajan