Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9159

Re: Goods Isuue with Batch Number wise.

$
0
0

Hi santosh ,

 

I added Issue Docnum as per your request ,

 

SELECT  T5.DOCNUM 'ISSUEDOCNUM', T3.ITEMCODE, T4.ONHAND 'INSTOCK',SUM(T2.QUANTITY) AS 'ISSUEQTY',T3.DISTNUMBER

FROM                  DBO.OIGE T5 INNER JOIN  DBO.IGE1 AS T0 ON T5.DOCENTRY=T0.DOCENTRY  INNER JOIN

                      DBO.OILM AS T1 ON T1.DOCENTRY = T0.DOCENTRY AND T0.OBJTYPE = T1.TRANSTYPE AND T0.LINENUM = T1.DOCLINENUM INNER JOIN

                      DBO.ILM1 AS T2 ON T1.MESSAGEID = T2.MESSAGEID INNER JOIN

                      DBO.OBTN AS T3 ON T2.ITEMCODE = T3.ITEMCODE AND T2.SYSNUMBER = T3.SYSNUMBER INNER JOIN

                      DBO.OITM  AS T4 ON T2.ITEMCODE = T4.ITEMCODE

                      WHERE T0.[DOCDATE] BETWEEN  '[%0]' AND '[%1]'

                      GROUP BY  T3.ITEMCODE, T4.ONHAND   ,T3.DISTNUMBER,T5.DOCNUM

 

-Rajesh N


Viewing all articles
Browse latest Browse all 9159

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>