HI EXPERTS,
I got this below query ,but it wont link with GRPO.and I want to know closing stock of that Particular Batch.
Select Distinct B.ITEMCODE,D.U_STKNO,A.DOCNUM,B.Quantity AS 'GRIN QTY',A.U_GRINNO,C.BatchNum,C.Quantity AS 'ISS QTY'
FROM OIGE A INNER JOIN IGE1 B On A.DocEntry = B.DocEntry
INNER JOIN IBT1 C On C.[BaseEntry] = A.Docentry AND C.ItemCode = B.ItemCode and C.[BaseLinNum] = B.[LineNum] INNER JOIN OWOR D ON D.Docnum=B.BaseRef
regards,
Karthick