Hi,
1.The above error appeared due to t0.docentry already used for ORDR table. Same docentry can not used for OINV table.
2. If you run above query without proper join between tables, sure your system will shutdown due to insufficient memory error. Please don't try.
3. Try this query:
SELECT T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[NumAtCard], T0.[DocStatus], T1.[ItemCode], T1.[Dscription], T1.[Quantity], T1.[Price], T1.[LineTotal], T0.[SlpCode] FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry left join INV1 T2 on T2.[BaseEntry] = T0.docentry and T2.[BaseLine] = T1.[LineNum] INNER JOIN OINV T3 ON T2.DocEntry = T3.DocEntry INNER JOIN RDR3 T4 ON T0.DocEntry = T4.DocEntry WHERE T0.[DocDate] between [%0] and [%1]
Thanks & Regards,
Nagarajan