on 2012 Dec 20 12:34 PM
Hi All Experts,
I want to know How to Write Query to get Balance of Business Partner Datewise.
Regards
Gayatri shukla.
Hi,
Its better to try this kind of reports in Crystal Reports where you will get more room for complex formulas and grouping too.
Regards,
Bala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can achieve this by creating the SQL Procedure of above query and create connection between this SQL Procedure and Crystal Report through Database Expert.
You can also take the help of this link....
http://www.pioneerb1.com/wp-content/uploads/2012/04/How-to-work-with-Crystal-Reports-8.8.pdf
Hope this help
Thanks'
--
--
Regards::::
Atul Chakraborty
Hi Gayatri
Try this
SELECT t1.GroupName as 'Group Name',t0.cardcode as 'BP Code', t0.cardname as 'BP Name', t2.SlpName,
(select sum(debit) -sum(credit) from jdt1 where t0.cardcode = shortname and refdate >= '1/04/2009' and refdate <='31/03/2010') as 'Period Balance 09',
(select sum(debit) -sum(credit) from jdt1 where t0.cardcode = shortname and refdate >= '1/04/2010' and refdate <='31/03/2011') as 'Period Balance 10',
(select sum(debit) -sum(credit) from jdt1 where t0.cardcode = shortname and refdate >= '1/04/2011' and refdate <='31/03/2012') as 'Period Balance 11'
(select sum(debit) -sum(credit) from jdt1 where t0.cardcode = shortname and refdate >= '1/04/2012' and refdate <='31/03/2013') as 'Period Balance 12'
from OCRD t0
INNER join OCRG t1 on t0.groupcode = t1.groupcode
inner join OSLP t2 on t2.SlpCode = t0.slpcode
group by t0.cardcode, t0.cardname, t1.GroupName, t2.SlpName
Regards
Balaji
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gayatri,
Please try this query:
SELECT T0.[RefDate], T1.[CardCode], T1.[CardName], T1.[CardType], T0.[BalDueCred], T0.[BalDueDeb], T0.[BalFcCred], T0.[BalFcDeb], T0.[BalScCred], T0.[BalScDeb] FROM JDT1 T0 inner join OCRD T1 on T0.[ShortName] = T1.[CardCode] WHERE T0.[RefDate] between [%0] and [%1] and T1.[CardCode] = 'cvet01' GROUP BY T0.[RefDate], T1.[CardCode], T1.[CardName], T1.[CardType], T0.[BalDueCred], T0.[BalDueDeb], T0.[BalFcCred], T0.[BalFcDeb], T0.[BalScCred], T0.[BalScDeb]
Thanks & Regards,
Nagarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the Business Partner Master, if you go to the Account Balance detail and uncheck "Display Unreconciled Transactions Only" you will have a complete list of the customer's account balance by date. You can select any date range you wish in the header of the window.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
102 | |
8 | |
8 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.