Skip to Content
author's profile photo Former Member
Former Member

BP Balane report

To all ,

I want a report for BP balances like this,

BP Code, BP Name, Group Name, Accounts Payable Name, Accounts Receivable Name ,BP Balance

This report should be with following parameters,

Date Form, Date To, Series Name

Tell me your solution


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 14, 2011 at 09:21 AM


    You can start from this :

    select t0.cardcode as 'BP Code', t0.cardname as 'BP Name', 
    t1.GroupName as 'Group Name', 
    CASE when t0.cardtype ='C' Then t0.DebPayAcct ELSE NULL END as 'Accounts Receivable Name',
    CASE WHEN t0.cardtype = 'S' then t0.debpayacct Else NULL END as 'Accounts Payable Name', 
    t0.Balance as 'Current Balance', sum(t3.debit) -sum( as 'BP Balance'
     from OCRD t0
    left join OCRG t1 on t0.groupcode = t1.groupcode
    left join JDT1 t3 on t0.cardcode = t3.shortname
    left join OJDT t4 on t4.transid = t3.transid
    where t3.refdate >= '2010.01.01' and t3.refdate <='2010.12.31' and t4.docseries = [%1]
    group by t0.cardcode, t0.cardname, t1.GroupName, t0.cardtype, t0.debpayacct, t0.balance

    Check this if it caters to your requirement.

    Kind Regards,


    SAP Business One Forum Team

    Edited by: Jitin Chawla on Dec 14, 2011 10:31 AM

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      The BP balance will not be easily match yours since I do not have the same environment to test. Those data in query are only from a fixed period. It is not the BP balance by your definition. I have to be in the exact setting to get the right query.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.