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

Production Order Against Material Issuance report with Batch Wise

$
0
0

Hi Expert !,

 

How to get the opening and closing balances of Stock Items per Batch

 

>>>>>>>Production Order Against issued material batch opening closing

 

----------------------------------------------Production Order Against Material Issuance report with Batch Wise ----------------------------------

SELECT DISTINCT T0."DocNum", t0."PostDate", t0."ItemCode",t4."ItemName",t0."U_UNE_BTNO" AS "Product Batch No",

t1."ItemCode",T1."Dscription",t1."Quantity",t1."unitMsr",t6."SuppSerial",T6."IntrSerial", t5."DocDate" as "Issued Date",

(SUM(T15."InQty") -SUM(T15."OutQty")) AS "OpeningBalance", 0 AS "IN", 0 

FROM OWOR T0

      LEFT OUTER JOIN IGE1 T1 ON T0."DocNum" = T1."BaseRef" 

      left outer JOIN OITM T4 ON T0."ItemCode" = T4."ItemCode"

      left outer JOIN OITM T14 ON T1."ItemCode" = T14."ItemCode"

      LEFT OUTER JOIN IBT1 T5 ON T5."BsDocEntry" = t0."DocEntry" AND T5."BsDocLine" = T1."LineNum"

      Left outer JOIN OIBT T6 ON T5."BatchNum" = T6."BatchNum" and t1."ItemCode"= t6."ItemCode"

      INNER JOIN OINM T15 ON T5."ItemCode" = T15."ItemCode"

WHERE

T0."PostDate" >= '20150331' ANd

T0."PostDate" <= '20160331'and

T1."ItemCode" = '11000811'

GROUP BY

T0."DocNum", t0."PostDate", t0."ItemCode",t4."ItemName",t0."U_UNE_BTNO",

t1."ItemCode",T1."Dscription",t1."Quantity",t1."unitMsr",t6."SuppSerial",T6."IntrSerial", t5."DocDate"

Order by

t5."DocDate"

 

Danish


Viewing all articles
Browse latest Browse all 2300

Trending Articles



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