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.

Similar Messages

  • 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.

  • 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 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

  • 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

  • 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

  • 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]

  • 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,

  • 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

  • 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

  • Who to cummulate the opening balance in Transformation.

    Hi Guys,
    I am using 0FIAR_O3 DSO, I have an object opening balance in DSO.
    I want to cummulate the (debit amount - credit amount) which i am getting from PSA to DSO into opening balance infoobject witht respect to customer.
    I want to do this in Transformation.
    Please let me know the steps & ABAP code to achive this requirement.
    Points will be awarded.
    Thanks inadvance
    Peter

    hi,
    The steps to be followed are as under:
    1. First upload the intial stock balances by using the movement type 561
    2. Now use T code J1I5 to update RG23 (Part -1) and RG1
    3. Now go to SE11 and make entries in Table J_2IACCBAL through BDC. The data elements to be used are RG23ABED, RG23ASED, RG23AAED, RG23CBED, RG23CSED, RG23CAED, PLABED, PLASED, PLAAED, PLACESS
    4. Pass the GL account entries in FI
    5. Use T Code J1IH to creat excise JV for RG23 Part -2 on Hold entries
    u can also check the below link
    Re: Excise Balance Upload
    regards
    jash
    Edited by: diptasya jash on Apr 30, 2009 10:44 AM

  • To display the opening balances of the customer in detail and A/R invoice open status document

    hi every one
    i want a report
    for the below code i am getting only the documents that are posted from 01/04/2014. But for some customers and vendors i have entered opening balances using J/E so in this report i want to display the detailed split of the BP Account Balance which i have entered in J/E
    SELECT
    T0.[CardName][Customer Name],
    T0.[DocNum][Document Number],
    T0.[DocStatus][Status],
    T0.[DocDate][PostingDate],
    T0.[DocDueDate][DueDate],
    T0.[DocTotal][Total],
    t1.SlpName,
    DATEDIFF(DAY, T0.DocDueDate, GETDATE( )) AS 'Days Over Due'
    FROM dbo.OINV T0 INNER JOIN OSLP T1 ON T0.[SlpCode] = T1.[SlpCode]
    WHERE DocStatus = 'o'

    I'm not sure if this will work but you can have a try good luck
    select TOP 100 convert(nvarchar(10),j.refdate,101) [Posting Date] ,(case j.transtype  when 24 then 'RC'  when 13 then 'IN'  when 14 then 'CN'  when 30 then 'JE'  when 321 then 'JR' else j.transtype end) Origin ,convert(nvarchar(max),j.baseref) [Origin No.] ,j.contraAct [Offset Account] ,convert(nvarchar(max),j.LineMemo) [Details] ,OJ.loctotal [C/D(LC)] ,(j.BalDueDeb - j.BalDueCred) [Balance Due(LC)]
    ,'' [C/D(FC)]
    ,'' [Balance Due(FC)]
    ,j.Debit [Debit(LC)]
    ,j.Credit [Credit(LC)]
    FROM jdt1 j
    left join ORCT R on j.baseref = R.docnum
    left join OINV I on j.baseref = I.docnum
    left join ORIN C on j.baseref = C.docnum
    left join OJDT OJ on j.transid = OJ.transid
    where  j.shortname in (Select CardCode FROM OCRD) and i.DocStatus = 'O'
    order by j.transid DESC
    Note: you can removed the TOP 100 to show all the transactions.
    to show only the invoice transaction you may want to add the filtering for J.TransType = 13
    Regards,
    Jim

  • To load non cumulative cube initialize opening balance in R/3. explain?

    To load non-cumulative cube i have to initialize opening balance in R/3(S278). please elaborate and what is S278 means is it LIS datasource please explain?
    Thank you,
    York

    Dear all,
    The data source 0EC_PCA_1  doesn't consider the opening balances i believe, can any experts help me solve this problem.
    Regards,
    M.M
    Edited by: Magesh Magesh on Jun 26, 2009 2:55 PM

  • Data Migration Opening Balances are not updating in the Report F.08

    Hi,
    We have uploaded the GL balances in 2008 for the year 2007. But they are not updating in the F.08 report when i executed for 2008.
    Why they are not updating in the report. In which table can i check the Data migration values in the system?
    Thansk
    Kishore

    Hi We have uploaded all the values in 2008 with 2008 date. fiscal year is K4.
    F.08 Report for the year 2008 is showing only 2008 accumulated values. But not showing the Opening balances which we have uploaded in 2008 for the before years like 2007.
    Why it is showing like that?
    Thansk
    kishore

  • Carry forwarding the closing  balance as opening balance

    hi,
    i need  to carry forward the closing balance of the 1 month to the opening balance of the next month. how to do this in the query.?

    Hi Enthu,
    I think, you could use data function of a formula.
    You will have to create a RKF for closing balance of previous month.
    Try the SUMCT<Closing balance of prev per> in the opening balance column of this month.
    You can check the link below for further information
    http://help.sap.com/saphelp_nw70/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    However, determining all opening balances by carrying forward closing balances in the query, I think, is not a good idea, since this would mean that you have to run the query from the timepoint the data was first reported. This means querying and reporting a lot of data. I would rather suggest you to have another Cube may be over this DSO and do the carry forward in modeling.
    Hope it helps,
    Best regards,
    Sunmit.

Maybe you are looking for