Hi experts,
When i go to preview of A/R invoice in sap b1 data is not coming. In SAP Crystal Report the report is working fine and it is coming correctly.
This is My Querry i used in "Crystal Report"
SELECT DISTINCT T0.[DocNum]'SONo.', T0.[DocDate]'SODate', T0.[CardCode], T0.[CardName],T1.[ItemCode], T1.[Dscription],
T1.[Quantity]'SOQty', T3.[DocNum]'InvNo.', T3.[DocDate]'InvDate', T2.[Quantity]'BillQty', (T1.[Quantity]- T2.[Quantity])'BalBillQty',datediff(dd,T0.
[DocDate],T3.[DocDate])'No.of Days' FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.[DocEntry] = T1.[DocEntry] left join INV1 T2
on T2.[BaseEntry] =T1.docentry and T2.[BaseLine] = T1.[LineNum] inner JOIN OINV T3 ON T2.[DocEntry] = T3.[DocEntry] WHERE
(T1.[Quantity]- T2.[Quantity])>0 AND T3.[DocEntry]='9618'.
thanks & Regards
Ram