How to query the opening balance for an specific account for an spec. date

Hi all,
for my user query I need to calculate the opening balance for an cash account for an specific date.
Any ideas, how can I do this?
Or may be you know a field in an SBO table that already contains information I need...
Best Regards,
Inna

Hi Inna,
to find the opening balance for an account or a business partner, please see SAP Note [1114253|https://service.sap.com/sap/support/notes/1114253] :
Symptom
How to find the opening balance of a business partner or G/L account.
Other terms
Account, customer, supplier, vendor, creditor, debitor, start, initial, first, opening balance, business partner, G/L, SAP Business One
Reason and Prerequisites
Consulting
Solution
There are several possible approaches:
Approach 1 - Business Partner Opening Balance:
1. Go to Business Partners -> Business Partner Master Data -> find the Business Partner
2. Click on the orange link arrow next to the field 'Account Balance' in the header region of the window.
3. Untick the boxes next to 'Posting date from', 'Display' and 'Display Unreconciled Trans. Only'.
4. Click on the button 'Refresh'.
5. Find 'OB' in the column 'Origin', this is the opening balance journal entry.
Approach 2 - Business Partner Opening Balance:
1. Go to Business Partners -> Business Partner Master Data.
2. Click on the orange link arrow next to the field 'Account Balance' in the header region of the window.
3. Untick the boxes next to 'Posting date from', 'Display' and 'Display Unreconciled Trans. Only'.
4. Click on the button 'Refresh'.
5. Double click on the column header 'Posting Date' to find the earliest transaction on the business partner account. This transaction could be opening balance, verify this with the company accountant.
Approach 3 - G/L Account Opening Balance:
1. Go to Financials -> Chart of Accounts -> click on the account name once.
2. Click on the orange link arrow next to the field 'Balance'.
3. Untick the boxes next to 'Posting date from', 'Display' and 'Display Unreconciled Trans. Only'.
4. Click on the button 'Refresh'.
5. Find 'OB' in the column 'Origin', this is the opening balance journal entry.
Approach 4 - Business Partner and/or G/L Account Opening Balance:
1. If using SAP Business One 2005 SP01 or earlier, go to Reports -> Query Generator -> click on 'Execute'.
2. If using SAP Business One 2007 or later, go to Tools -> Queries -> Query Generator -> click on 'Execute'.
3. Ignore the red system message in the bottom of the screen.
4. Click on the pencil icon in the top left of the window, the field with 'SELECT *' will change colour to white, then yellow when activated by clicking in the field.
5. Copy the query below:
           SELECT T0.[TransId], T0.[Debit], T0.[Credit] , T0.[CreatedBy], T0.[TransType] FROM [dbo].[JDT1]  T0 WHERE T0.[TransType] = '-2'  and T0.[ShortName]  = '[%1]'
6. Click on 'Save' and give the query an appropriate name and select the appropriate category.
7. Click on 'Execute'.
8. Click on 'Existing Values'.
9. Select the G/L account or the Business Partner name from the list and click on 'OK'.
10. The system message 'Records retrieved by this query #' (# = number of records) will pop up. Click on 'OK'.
All the best,
Kerstin

Similar Messages

  • How to get the opening balances for lessthan selected date in cubes.

    Hi All,
    my task is to get the opening balances for the selected date.
    Ex: If I select date say 31-1-2013, I should get the sum of values which are less than the selected date.
    in sql:
    select sum(balance) from banktrans where banktrans.transdate < 31-1-2013;
    BankTable                            BankTrans
    BankId                               BankId
                                            balance
                                            transdate
    BankTable (records):
    SCB
    BankTrans(records):
    a) SCB, 15000, 10-02-2013
    b) SCB, 20000, 31-01-2014
    c) SCB, 50000, 21-09-2012
    If I select date as 31-01-2014, I should get the value as 65000 
    If I select date as 10-02-2013, I should get the value as 50000
    Date will be dynamic selection from years months days hirearchy ( time dimension)
    How can i achieve this?  
    any help is much appreciated.
    Thanks,
    Rakesh

    Dear David,
    I've tried the below with static date but i'm not getting the values which are sum of less than the given date.
    I've given 1st jan 2013 as static date and I need to get the sum of values which are less than the 1st jan date.
    CREATE
    MEMBER
    CURRENTCUBE.[Measures].[OPENBALANCE]
    AS
    Sum({Null:[Time].[Years
    Quarters Months Weeks Days].[Days].&[2013-01-01T00:00:00]},[Measures].[AmountCur]]),
    FORMAT_STRING
    = "Standard",
    VISIBLE
    = 1
    can you plz check the above once and guide me.
    Thankyou,
    Rakesh

  • Possibility to show opening balance of a GL account through SQL query?

    Hi experts,
    Is it possible to run an SQL query in SBO that shows the opening balance
    of a GL account based on a date entered by the user?
    This is similar to how the general ledger shows the opening balance of a GL account based on the posting dates entered.
    Thanks for your ideas.

    Hi Gordon,
    Thanks for that idea.
    I am thinking of the following:
    1. Create a virtual table (#TEST) from a SELECT statement that gets all journal entries for the specified GL account BEFORE the specified posting date.
    2. Perform a SELECT statement that sums the debit and credit from (#TEST).
    This should show the opening balance of the GL account right?
    Regards,
    Eric
    Edited by: eceguerra on May 18, 2011 7:02 AM
    Edited by: eceguerra on May 18, 2011 7:02 AM

  • How to clear the open documents in case if document currency and local curr

    Hi,
        Can anyboday advise how to clear the open document of a particular vendor for a particular company code. Here the issue is that balace is netted to Zero in the document currency but not in the local currency. The document was posted in Currency CAD and the local currency is GBP.
    When i check the FBL1N, there is it showing net balance is ZERO, but document is still in open
    status. I tried using Transaction code F-44, but it is not allowing me.
    Can anyboday advise how to perform this. Points will be awarded.
    Regards,
    Sree.

    Hi,
    In the Company code global parameters(OBY6),select the check box "NO FOREX RATE DIFF.WHEN CLEARING IN LC"
    and try clearing again.(You can have a F1 help on the check box to see what exactly it is).
    Hope this will resolve
    Assign points if useful
    Thanks
    Aravind
    Edited by: Aravind Aitipamula on May 22, 2008 1:36 AM

  • Posting the opening balance of Assets in GL account through OASV

    Hi,
    When we are entering the opening balance in assets GL account through OASV , system gives error
    " Document number is 1000000000 is already assigned to company code  with document type 01"
    Asset GL account is alreay having some balances.
    Pl let us know that how can we increase the number ranges for 01 document type.
    thanks
    harish

    Hi!
    Check this links
    Re: Opening Balance
    Opening Balance
    Opening Balance
    Re: Question regarding Opening Balance

  • How to solve the OB problem of 'Raw Materials' account in Trial Balance?

    Dear Friends,
    In a 'Perpetual Inventory' system how to show the opening balance of Inventory Account in Trial balance as other account's opening balance?
    You can check this out with some opening balances entered for GL Accounts (from Administration -> system initialization -> opening balance) and some initial quantity of inventory items entered (in inventory transactions) on - let's say a company's starting date 1-1-06.

    Hi Gordon,
    My SBO version is 8.8 PL 10, Indian Database. I want to see the "Raw Material" G/L Account's opening balance in the Opening Balance Column of Trial Balance or similar report of SBO. The technical problem behind this is - the mentioned reports shows the the amounts in OB column if that amount is entered by the OB Transactions (in Administration -> System Initialization). But how to manage the Raw Material / Inventory G/L through this concept, as the OB amount for this is entered through Inventory Initial Quantity. We can do the entry one day before the expected starting date of the financial period, is that can be a standard practice? For. e.g. entering the opening balance for 1-1-06 on 31-12-05.

  • When to enter the Opening Balance.

    Dear All,
             I have to enter the Opening Balance today. As of now today's date is 25/09/08. So from which date i should enter the Opening Balance in G/L Accounts, Business Partners and Initial Stock.
             Please guide me.
    Regards
    Hitesh

    Check this document
    [https://websmp209.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700008899402004E]

  • Passing the Opening Balance for the 1st peroid of the quater

    HI ,
    Passing the Opening Balance for the 1st peroid of the quater: The report format is as follows
    Code-Desc-Amount
    1001-AAAA-1000
    1002-BBBB-2000
    1003-CCCC-3000
    The output is based on quaterwise. If I enter the first period of the particular quater, it will show the reports for the whole quater. I created the report and working fine.
    But the problem is that, if it is AAAA, i need to pass only first period of that quater else total of the quater.
    Can you please, explain me how to do this....
    Thanks and Regards
    Rajesh

    Hi Pooja,
    RSA3 only shows records in setup table, which is collected by MCNB.
    by MCNB, you could only get the current opening stock, and in order to calculate the open stock in previous month,
    you'd have to load the history movement via 2lis_03_bf.
    Thanks & B.R.
    Vince

  • Sales Order Revenue Calculation for the opening balance

    Hi
    Using SLA tables I wrote the following function to calculate the opening balance for the given period for gieven sales order. The problem is that is is very slow. How do I achieve the same result using the AR Interface Tables?
    CREATE OR REPLACE FUNCTION APPS.REV_OPENING_BAL(period_in varchar2,so_number_in varchar2)
    RETURN NUMBER IS
    rev_open_bal NUMBER:=0;
    BEGIN
    rev_open_bal:= 0;
    SELECT nvl(sum(xdl.UNROUNDED_ACCOUNTED_dr),0) - nvl(sum(xdl.UNROUNDED_ACCOUNTED_cr),0) into rev_open_bal
    FROM gl_code_Combinations c, xla_events xe, xla.xla_transaction_entities xte,
    xla_distribution_links xdl, XLA_AE_LINES xal, xla_ae_headers xah
    WHERE xah.AE_HEADER_ID = xal.AE_HEADER_ID
    AND xal.AE_HEADER_ID = xdl.ae_header_id
    AND xal.AE_LINE_NUM = xdl.ae_line_num
    AND xdl.event_id = xe.event_id
    AND xe.entity_id = xte.entity_id
    AND xe.application_id = xte.application_id
    AND xte.source_application_id = 222
    AND c.code_combination_id = xal.code_combination_id
    AND to_date( period_name, 'MON-RR' ) <= to_date( period_in, 'MON-RR' )
    AND accounting_class_Code in ('REVENUE','UNEARNED_REVENUE')
    and (SELECT interface_header_attribute1
    FROM ra_customer_trx_all
    WHERE customer_trx_id = source_id_int_1) = so_number_in;
    RETURN rev_open_bal;
    EXCEPTION WHEN NO_DATA_FOUND THEN
    rev_open_bal := 0;
    RETURN rev_open_bal;
    END APPS.REV_OPENING_BAL;
    /

    Did you figure this out?
    I am trying to write a report to reconcile the sub-ledgers to GL as part of a conversion from 11 to R12 and would like to be able to dynamically go against the various sub-ledger tables without writing a new script for each sub-ledger.
    Or some easier way.
    Any thoughts on this?
    Thanks,

  • To caluclate the opening balances

    I want to calulate the opening balances and closing balances for each month in the result like this :
    Month uom Opening Closing
    Apr
    May
    Jun
    Jul
    Aug
    sep
    Oct
    Nov
    Dec
    Jan
    Feb
    Mar
    SELECT UOM,
    SUM(OPSTK) OPSTK, SUM(OPVAL) OPVAL
    SUM(INQTY) INQTY, SUM(INVAL) INVAL,
    SUM(OUTQTY) OUTQTY, SUM(OUTVAL) OUTVAL,
    SUM(CLSTK) CLSTK, SUM(CL_VAL) CL_VAL
    FROM
    SELECT
    UOM, ITEM_CODE, ITEM_NAME,
    ROUND(OPSTK/CNV/ML,2) OPSTK, ROUND(OPVAL,3)OPVAL,
    ROUND(INQTY/CNV/ML,2) INQTY, ROUND(INVAL,3) INVAL,
    ROUND(OUTQTY/CNV/ML,2) OUTQTY, ROUND(OUTVAL,3)OUTVAL,
    ROUND((NVL(OPSTK,0)+NVL(INQTY,0)-NVL(OUTQTY,0))/CNV/ML,2) CLSTK,
    ROUND((NVL(OPVAL,0)+NVL(INVAL,0)-NVL(OUTVAL,0)),3) CL_VAL
    FROM
    SELECT
    ITEM_UOM_CODE UOM, ITEM_CODE, ITEM_NAME,
    IU_CONV_FACTOR CNV,
    IU_MAX_LOOSE_1 ML
    FROM OM_ITEM,OM_ITEM_UOM
    WHERE ITEM_CODE = IU_ITEM_CODE AND IU_UOM_CODE = ITEM_UOM_CODE
    SELECT
    SL_ITEM_CODE OP_ICODE,
    SUM(DECODE(SL_RCVD_ISSD,'R',1,'I',-1)*SL_QTY_BU) OPSTK,
    ROUND(SUM(DECODE(SL_RCVD_ISSD,'R',1,'I',-1)*SL_VAL_1),2) OPVAL
    FROM OS_STK_LEDGER
    WHERE SL_DT < TO_DATE(:P249_DATE1,'DD-MM-YYYY')
    GROUP BY SL_ITEM_CODE
    SELECT
    SL_ITEM_CODE TX_ICODE,
    SUM(DECODE(SL_RCVD_ISSD,'R',1)*SL_QTY_BU)INQTY,
    SUM(DECODE(SL_RCVD_ISSD,'R',1)*SL_VAL_1) INVAL,
    SUM(DECODE(SL_RCVD_ISSD,'I',1)*SL_QTY_BU)OUTQTY,
    SUM(DECODE(SL_RCVD_ISSD,'I',1)*SL_VAL_1) OUTVAL
    FROM OS_STK_LEDGER
    WHERE SL_DT BETWEEN TO_DATE(:P249_DATE1,'DD-MM-YYYY') AND TO_DATE(:P249_DATE2,'DD-MM-YYYY')
    GROUP BY SL_ITEM_CODE
    WHERE ITEM_CODE = OP_ICODE(+)
    AND ITEM_CODE = TX_ICODE(+)
    AND ITEM_CODE LIKE 'R%'
    --AND   ITEM_CODE LIKE :P249_ITEMCODE
    ORDER BY ITEM_CODE
    GROUP BY UOM
    The below given query gives me the opening and closing balances, for the date range entered by me.
    For ex. if I enter the date in TO_DATE(:P249_DATE1,'DD-MM-YYYY') field as '01-04-2008', then i get the opening balance for the month April. The SL_DT is the date column in the table.
    Kindly guide me for this to solve..

    There seems to be a problem with your query formatting. I've formatted it and the ORDER BY clause is not needed in the In line view. Remove it. I have added new GROUP BY column.
    SELECT UOM,
           SUM(OPSTK) OPSTK, SUM(OPVAL) OPVAL
           SUM(INQTY) INQTY, SUM(INVAL) INVAL,
           SUM(OUTQTY) OUTQTY, SUM(OUTVAL) OUTVAL,
           SUM(CLSTK) CLSTK, SUM(CL_VAL) CL_VAL
    FROM ( SELECT UOM, ITEM_CODE, ITEM_NAME,
                  ROUND(OPSTK/CNV/ML,2) OPSTK, ROUND(OPVAL,3)OPVAL,
                  ROUND(INQTY/CNV/ML,2) INQTY, ROUND(INVAL,3) INVAL,
                  ROUND(OUTQTY/CNV/ML,2) OUTQTY, ROUND(OUTVAL,3)OUTVAL,
                  ROUND((NVL(OPSTK,0)+NVL(INQTY,0)-NVL(OUTQTY,0))/CNV/ML,2) CLSTK,
                  ROUND((NVL(OPVAL,0)+NVL(INVAL,0)-NVL(OUTVAL,0)),3) CL_VAL
           FROM ( SELECT ITEM_UOM_CODE UOM, ITEM_CODE, ITEM_NAME,
                         IU_CONV_FACTOR CNV,
                         IU_MAX_LOOSE_1 ML
                  FROM OM_ITEM,OM_ITEM_UOM
                  WHERE ITEM_CODE = IU_ITEM_CODE AND IU_UOM_CODE = ITEM_UOM_CODE
                 ( SELECT SL_ITEM_CODE OP_ICODE,
                          SUM(DECODE(SL_RCVD_ISSD,'R',1,'I',-1)*SL_QTY_BU) OPSTK,
                          ROUND(SUM(DECODE(SL_RCVD_ISSD,'R',1,'I',-1)*SL_VAL_1),2) OPVAL
                   FROM OS_STK_LEDGER
                   WHERE SL_DT < TO_DATE(:P249_DATE1,'DD-MM-YYYY')
                   GROUP BY SL_ITEM_CODE
                 ( SELECT SL_ITEM_CODE TX_ICODE,
                          SUM(DECODE(SL_RCVD_ISSD,'R',1)*SL_QTY_BU)INQTY,
                          SUM(DECODE(SL_RCVD_ISSD,'R',1)*SL_VAL_1) INVAL,
                          SUM(DECODE(SL_RCVD_ISSD,'I',1)*SL_QTY_BU)OUTQTY,
                          SUM(DECODE(SL_RCVD_ISSD,'I',1)*SL_VAL_1) OUTVAL,
                          trunc(SL_DT, 'MM')
                   FROM OS_STK_LEDGER
                   WHERE SL_DT BETWEEN TO_DATE(:P249_DATE1,'DD-MM-YYYY') AND TO_DATE(:P249_DATE2,'DD-MM-YYYY')
                   GROUP BY SL_ITEM_CODE, trunc(SL_DT, 'MM')
           WHERE ITEM_CODE = OP_ICODE(+)
           AND ITEM_CODE = TX_ICODE(+)
           AND ITEM_CODE LIKE 'R%'
           --AND ITEM_CODE LIKE :P249_ITEMCODE
    GROUP BY UOM;Cheers
    Sarma.

  • Where to find the Opening Balance Of a Profit Center

    Hi,
    Which report can i use to check the opening balance of a profit center which is carried forward from last year for a balance sheet account?

    In period 0, Balance Carried Foward program ( TA 2KES ) is run in PCA. Note that this carried forward balance will only be updated in GLPCT and not GLPCA. Thus, in period 0, the opening balanes are stored. You may create report painter or SAP query to find out these balance.s

  • Initialize the opening balance.

    How can I specify the opening stock date when i Initialize the opening balance in Transaction MCNB, and doed the Initializing the opening balance mean that the first time extract data records into setup table, then can do full update for opening balance?

    Denny,
       we need to load data once for BX. where it is asking for date. are yo talking abt termination date? that should be any future date.
    let me know if i miss some thing.
    Regards,
    Nagesh Ganisetti.

  • Muse Accordion widgit, I need to know how I find the  (Open Closed )  link it seems to have vanished

    Muse Accordion widgit, I need to know how I find the  (Open Closed )  link it seems to have vanished all I can find is ( Expand  behavior and Overlap Items Below.)

    If I got your query right, do you mean you don't have all the options in the Accordion Options panel as pictured below?
    If the above is true, can you try re-inserting the Accordion panel and check if the options then become available for you. Also, please check if you're running the latest version of Muse i.e. 4.1.8 as on today.
    If the problem persists, please try creating a new Muse project and see if you are able to replicate the behaviour on a fresh Muse site as well.
    Thanks,
    Vinayak

  • FBCJ - change the opening balance value

    Hi Guys,
    How can I change the opening balance value in FBCJ transaction?!
    Thanks
    Daniel Dorta

    Hi !!
    You have to options to do here
    1. Reveres the receipt entry which was passed wrongly by some other Tcode
    2. The difference amount found in FBCJ & FBL3N, post in Receipt side of FBCJ & Post the same amount as an expenses from FB01
    This adjustment entry will work as a reversal for the previous entry which was made by mistake
    You problem will be solved
    Regards
    Shamulheq

  • How can i post opening balance b y useing DTW

    Dear friends,
    can any one help me out how can i transfer the opening balance's by useing DTW.
    regards,
    srikanth.

    Dear Srikanth,
    U can use the Journal Entry templates to import Opening Balances through DTW. You can use the opening balance suspense account as the off-setting account in the JE templates.
    For BP opening balanaces also, u can use the same JE template. Just put the customer code in the Account description and follow the regular steps.
    Regards,
    Bharath

Maybe you are looking for

  • PF & Pension Deduction on Basic Arrears

    Dear Consultnats, May I know in which Wagetype, Employer's PF & Pension contribution on Basic Arrears is stored ? I have marked Basic Arrears Wagetype 1ARR for Cumulation Class 11 (EPF Basis). Still the Pay slip shows the Employer PF & Pension basis

  • How to check if the user has only the display authority of a message

    hi, How to check if the user has only the display authority of a message but does not have the change authority for a certain message? Best regards,

  • Rating in exported versions

    I live with "portable library" which is exported JPEG up to 1024 pt- so I can hold above 8000 pictures eaten just something like 3 GB. I do not know if is possible by exporting versions to extra file ( out of Aperture) to have available for import ag

  • 64,000 character limit on UDT user defined field column

    Hey All. We are storing more then 64,000 characters into a UDT user defined field column as it stores a large XML document. How can I retreive this information from the UDT using the DI API? Everytime I try to do this using either the UDT object or S

  • I cannot get Firefox to come up--it tells me that it is unable to load.

    I have been trying to get on Firefox for several days now, and it always gives me error messages that state: Unable to connect -- Firefox can't establish a connection to the server at home.mysearch.com Please help!