Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3184

Deliver in Full on Time (DIFOT) report from ORDR and OINV tables

$
0
0

Hi,

 

We're looking for a DIFOT report which simply reconciles Sales order quantities against AR invoice quantities.

 

Goals:

 

1.  If Sales Order quantity is 100 and AR invoice is 50 we consider this a partial delivery.

2.  If Sales Order qty is 100 and Invoice quantity is 0, this is a non-delivery of a single line in order.

3.  Where sales orders that did not generate an AR Invoice which implies non-delivery of total order.. 

 

We're using below query which does not satisfy above:

 

SELECT DISTINCT

                      T0.DocDate AS [SO Date], T2.DocDate AS [Invoice Date], T0.NumAtCard, T0.CardName, dbo.RDR1.Quantity AS [Order Qty], T1.Quantity AS [Invoice Qty],

                      T2.CardName AS Expr1

FROM         dbo.ORDR AS T0 INNER JOIN

                      dbo.INV1 AS T1 ON T1.BaseEntry = T0.DocEntry AND T1.BaseType = '17' INNER JOIN

                      dbo.OINV AS T2 ON T2.DocEntry = T1.DocEntry INNER JOIN

                      dbo.RDR1 ON T0.DocEntry = dbo.RDR1.DocEntry

 

 

Help appreciated.  Using SAP B1 9.1.

 

Amit


Viewing all articles
Browse latest Browse all 3184

Trending Articles



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