on 12-21-2016 1:11 PM
I've been searching for a query that will return the on time shipments in SAP B1. I'm new to SAP and using 8.82. What I need is a query that will return data based upon date range of ordered created and order ship date. I need the output to be order number, date created, expected ship date, date shipped, warehouse code, line item, quantity ordered, quantity shipped, customer number, customer name.
I've seen multiple queries that come close, however most don't give me results that are useful for measuring the outbound performance.
Hi,
Try this query:-
SELECT T0.[DocNum] 'SO #', T0.[DocDate] 'SO Posting Date', T1.[ShipDate] 'SO Line Item Due Date', T0.[DocDueDate] 'SO Due Date', T0.[CardName], T0.[NumAtCard], IsNull(T3.[DocDate],'') 'Del Date', DateDiff (dd, ISNULL(T1.ShipDate,T0.DocDueDate),T3.DocDate) 'Delay' FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry LEFT JOIN DLN1 T2 ON T0.DocEntry=T2.BaseEntry AND T1.LineNum=T2.BaseLine LEFT JOIN ODLN T3 ON T2.DocEntry = T3.DocEntry WHERE T0.DocDate>= [%0] and T0.DocDate<=[%1] and DateDiff (dd, ISNULL(T1.ShipDate,T0.DocDueDate),T3.DocDate) >0 Order By T0.[CardName] ASC
Regards,
Nagarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.