on 09-19-2008 11:01 AM
hi SAP Kings
sales analysis report total amount is differ from sum of line total in query.what is the problem and where i did mistake please refer this query please give suggestion....i need the sum of linttotal calculated in not include tax....
SELECT count(T0.[DocNum]),T0.[CardCode], T0.[CardName], T0.[Address], sum( T0.[DocTotal]-T0.[VatSum]) FROM OINV T0 WHERE (T0.[DocDate] >=[%0] or [%0]='') and (T0.[DocDate] <=[%1] or [%1]='') GROUP BY T0.[CardCode], T0.[CardName], T0.[Address]
Thanks & Best Regards
B.Laskhmi Narayanan
Edited by: lakshmi narayanan on Sep 19, 2008 12:12 PM
Edited by: lakshmi narayanan on Sep 19, 2008 12:13 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there is any discount in ar invoice ?
Jeyakanthan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
SELECT T0.DocNum,T0.CardCode, T0.CardName, T0.Address, sum( T1.LineTotal) FROM OINV T0
INNER JOIN INV1 T1 ON T0.DocEntry=T1.DocEntry
WHERE (T0.DocDate >=%0 or %0='') and (T0.DocDate <=%1 or %1='') GROUP BY T0.DocNum,T0.CardCode, T0.CardName, T0.Address
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
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.