Query regarding Opened/Closed GL periods

Hello Gurus,
ive got an issue, when using 0FIGL_C01 Cube.
The query ive created balances on cumulative balance (as key figure) and GL account names (as hierarchy).
Now i want to show the data of cumulative balance regarding closed periods.
I.e. if we have current April month the balance should be 0, but all other in the past January, February, March should be displayed.
How it is possible to do this?
Ive tryed to create a calculated key figure, whith code something like:
IF debit and credit == 0 then Cummulative balance=0 else Cumulative balance.
It works fine but it shows also the postings of current period, which isnt realy closed.
Tried to search the indicators of FI open/closed periods, but the only thing i found is S_ALR_87003642 - Open and Close Posting Periods transaction showing Company code, GL account ranges and from to period data.
What could be the sollution for this? Should i create new DS for the mensioned TC and then to create a multicube or perhaps is a better and faster way in doing it?
Thanks a lot in advice
Laurynas Prikockis

Hi Shrikant,
>
Shrikant Varma wrote:
> Yes, I could consider using belnr selection to reduce the size of the selection. This will again be a selection more
> based on knowledge of application(of course with fine tuning of packet size).
>  But then this approach will not be as efficient and as easy as letting database take control of the iteration of this
> huge dataset - as is intended by the use of cursors with the help of packet size.
>
I'm not sure what you mean here: "let the database contorl the iteration of this huge dataset - with cursors".
Generally speaking you have 2 options when it comes to parallel processing:
Parallelize processes in the ABAP stack. These processes access different, non-overlaping, parts of your restult set
in parallel. Using the BELNR could be an approach to build different, non-overlapping paackages.
Database side parallelization. This is possible for every action that uses multiblock I/O (full table scans and index fast full scans) and for partitioned segments. For non-partitioned segments and single block I/O database side parallelization is not possible.
So, generally speaking, you have 3 options:
1.) parallelize in ABAP and build idependent packages
2.) force the DB to do multiblock I/O (full table scan, index fast full scan) in parallel
3.) partition your table and indexes.
I think (it's just my opinion) for an ERP (not BW / BI) system
- option 3 is not a good option for OLTP systems (several reasons). I see it very, very, very rarely or close to never in OLTP systems
- option 2 may read (much) more data then you would need to read, although a very efficient I/O method would be used (multibock I/O)
- option 1 requires programming in ABAP but will read exactly the data you need to read and can be controlled very well in the ABAP stack (parallel single block I/O will be used)
In alamost all cases (that are similar to your case) i have see option 1 was used.
Kind regards,
Hermann

Similar Messages

  • Opening & Closing Posting Period

    At the time of  opening & Closing posting period ,we get two fields From Account and To Account. Can some body explain theuse of this two fields.Points will be assigned to all reply.

    Hi,
    It denotes the GL account number (From & to GL account number), to be opened or closed.
    Regards,
    Sridevi
    <i><b>* Pls. assign points, if useful</b></i>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/sridevi+pattabiraman">me!</a>

  • Track changes in opening / closing FI period

    Does SAP have a standard report to track the changes made by opening / closing FI periods in a given date range for a particular company code using T Code OB52 and also track who has made the changes.
    If there is no standard report what is the solution to get this

    I would like to know steps or T-CODE for end year closing.
    1) With TC: F.16 we can carry forward the balance to next year.
    2) With TC: OBH2 copy the number ranges to next year
    3) Open next year periods by selecting the Posting Period Variant.
    4) Then test by posting the transaction in F-02
    How about TC : OB52, when we can't run that steps?
    Check List:
    In order to arrive at correct profit or loss for the month following checklist can be followed:
    Month end closing Activities
    1) All the expenses including amortization, prepaid expenses, Preliminary expenses and accruals have been booked.
    2) Complete Bank Reconciliation
    3) Make sure that Sum of Inter company balances is Zero
    4) Suspense Accounts should be cleared regularly.
    5) Ensure that all documents related to MM & SD have been entered in system.
    6) Ensure that all billing documents are released to accounting.
    7) Calculate Overheads on all process Orders (CO43)
    8) Technically complete all process orders which are fully processed (CORM).
    9) Calculate Variance (KKS1)à (Relevant only if Standard cost is calculated).
    10) Settle all process orders which are technically complete (CO88).
    11) Close All settled Process Orders
    12) Close MM period (Transaction Code: MMPV).
    13) Carry out GR/IR clearing (F.13) transaction
    14) Depreciation Run (AFAB) has been carried out for the month
    15) Close FI Posting period after the month end closing activity is over.
    Year end closing Activities
    1) Calculate production work in progress on process orders which are not technically complete.
    2) Carry out Assessment cycle for Cost Centers.
    3) All month end closing Activities should be carried out.
    4) Carry Forward Balances to next year
    (With TC: F.16 we can carry forward the balance to next year.
    With TC: OBH2 copy the number ranges to next year
    Open next year periods by selecting the Posting Period Variant.
    then test by posting the transaction in F-02)
    We donu2019t use TC:OB52 for end year closing?
    I have replied partly to your query. sorry for that. I have sent you the opening new year reords.
    The closing procedure is as follows: -
    1. Carry forward Vendor & Customer Balances: TC: F.07
    2. Assets:
    i) TC: OB 52 - for assets 2 years can be openned at a time.
    ii) check which year is closed: TC: OAAQ
    iii) Close the year 2004: TC: AJAB
    Note: Unless depreciation for all the months is posted for all the assets you cannot close the year.
    iv) Open year 2005: TC: AJRW
    Hope the above clears your doubt.

  • Regarding open and close period

    How to search which period is closed and which period is opened??

    Hi Akshata,
    Attached is the screenshot of OB52 screen. Here you can refer to From period 1 to To period 2. In this example, period is open for 11th period 2010 to 1st period 2011. If you want to close 11th period of 2010 you can change the field "From period 1" to 12 2010.
    http://imageshack.us/photo/my-images/407/ob52.png/
    Please check the account type which you want to be open also. If it is only the Gl Account entries keep the account type "S" and "+" open.
    Warm regards,
    Murukan Arunachalam

  • Authorization for opening & Closing posting periods - OB52

    Hi,
    Is there any way to set authorization for opening & closing of posting periods in OB52?
    My scenario:
    I have 2 company codes - A & B assigned to 2 different posting period variant - say PPA & PPB.
    The user belonging to CoCd A should not be able to open/close posting period of CoCd B and vice versa.
    Is this possible through any authorization settings?
    Request your help on this.
    Regards,
    Sridevi

    Hi Sridevi
    Please go through the following:
    You can assign authorization groups for permitted posting periods. This means that, for example, some posting periods can only be opened for particular users within monthly or annual closing. You can only assign the authorization group at document header level and it only affects period 1. The authorization object is called F_BKPF_BUP (Accounting document: Authorizations for posting periods). Read the corresponding chapter on "User maintenance" in the "Assigning authorizations" topic.
    "User maintenance"
    Due to the modular authorization concept of the system, you can define authorization profiles which are tailored to the workplace of your employees. You can, for example, assign authorization to a workplace in the Accounts Receivable, Accounts Payable or General Ledger Accounting areas.
    By assigning authorizations you define which business-related objects your employees are allowed to process and which editing functions are allowed.
    In the following activities for authorization management, you must carry out the following for employees who are to work with the system:
    Assign authorizations
    The authorizations are assigned by specifying permitted values for the pre-defined objects.
    Define profiles
    In the SAP system, authorizations are grouped together in workplace profiles. Therefore one or more profiles must be allocated to the individual employee in the master record.
    I hope this helps.
    Regards
    Kavitha

  • How to open closed posting periods

    hi,
    can any open tell me how to open the closed posting periods to upload the inventory  , when we upload any inventory after opening the closed period will there be any effect on the G/L accounts as well.
    Thanks
    Regards,
    Murali

    Hi..
    Try OB52
    & MMPV..
    Consult with ur FICO consultant before making any changes...
    Reward if u FINDS THIS AS USEFUL...
    Regds
    MM

  • Open/Closing of periods

    Hi,
    We can open and close posting periods by using TC-OB52 but this job can be done by only authorised persons. If they r not available can enduser can change these periods? If it is true how can they? I just listened that he can change through easy access path. Can anybody tell me the path to do this please.

    Hello Krishna,
    you find a further TC S_ALR_87003642 '"Open and close posting periods" in GL/Environment/Current settings. Depending on the authorizations maybe the enduser is able to change the periods.
    Best regards
      Horst

  • Crystal Query for Opening / Closing Stock

    Hi Experts,
    i need a query in crystal for Opening and Closing total Stock per date..
    i found this querys and need to join them, but o dont now how...
    thanks for any tips..
    Query 1
    =======================
    SELECT  distinct
    T0.[TransType], T0.[DocDate],  T0.[InQty], T0.[OutQty], T0.[Dscription], T0.[CalcPrice], T0.[ItemCode] FROM [dbo].[OINM]  T0 INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode WHERE T0.[DocDate] >= {?DateInicial} and  T0.[DocDate] <= {?DateFinal} and T1.[Canceled] = 'N'
    Query 2
    =========================
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    select @FromDate = min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >={?Data1}
    select @ToDate = max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <={?Data2}
    Select a.Itemcode, max(a.Dscription) as ItemName,
    sum(a.OpeningBalance) as OpeningBalance, sum(a.INq) as 'IN', sum(a.OUT) as OUT,
    ((sum(a.OpeningBalance) + sum(a.INq)) - Sum(a.OUT)) as Closing ,(Select i.InvntryUom from OITM i where i.ItemCode=a.Itemcode) as UOM
    from( Select N1.Itemcode, N1.Dscription, (sum(N1.inqty)-sum(n1.outqty))
    as OpeningBalance, 0 as INq, 0 as OUT
    From dbo.OINM N1

    try this
       Declare @ItmsGrpNam varchar(100)
    Declare @Whse nvarchar(10)
    Declare @Fromdate Datetime
    Declare @Todate DateTime
    select @FromDate = min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >=[%0]
    select @ToDate = max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <=[%1]
    select @Whse = Max(s3.Warehouse) from dbo.OINM S3 Where S3.Warehouse = [%2]
    Select  a.Itemcode, max(a.Dscription) as ItemName,
    (Select i.InvntryUom from OITM i where i.ItemCode=a.Itemcode) as UOM,
    sum(a.OpeningBalance) as OpeningBalance,
    ((sum(a.OpeningBalance) + sum(a.INq)) - Sum(a.OUT)) as Closing
    from( Select  N1.Itemcode, N1.Dscription, (sum(N1.inqty)-sum(n1.outqty))
    as OpeningBalance, 0 as INq, 0 as OUT From dbo.OINM N1 inner join OITM i on i.ItemCode = N1.ItemCode
    inner join OITB b on b.ItmsGrpCod = i.ItmsGrpCod
    Where N1.DocDate < @FromDate and N1.Warehouse = @Whse and  b.ItmsGrpNam = @ItmsGrpNam
    Group By N1.ItemCode,
    N1.Dscription Union All select N1.Itemcode, N1.Dscription, 0 as OpeningBalance,
    sum(N1.inqty) , 0 as OUT From dbo.OINM N1 inner join OITM i on i.ItemCode = N1.ItemCode
    inner join OITB b on b.ItmsGrpCod = i.ItmsGrpCod
    Where N1.DocDate >= @FromDate and N1.DocDate <= @ToDate
    and N1.Inqty >0  and N1.Warehouse = @Whse and  b.ItmsGrpNam = @ItmsGrpNam Group By N1.ItemCode,N1.Dscription
    Union All select  N1.Itemcode, N1.Dscription, 0 as OpeningBalance, 0 , sum(N1.outqty) as OUT
    From dbo.OINM N1 inner join OITM i on i.ItemCode = N1.ItemCode
    inner join OITB b on b.ItmsGrpCod = i.ItmsGrpCod
    Where N1.DocDate >= @FromDate
    and N1.DocDate <=@ToDate and N1.OutQty > 0 and N1.Warehouse = @Whse and  b.ItmsGrpNam = @ItmsGrpNam
    Group By N1.ItemCode,N1.Dscription) a, dbo.OITM I1 ,OITB b1
    where a.ItemCode=I1.ItemCode
    and I1.ItmsGrpCod = b1.ItmsGrpCod
    Group By a.Itemcode ,I1.ItmsGrpCod , b1.ItmsGrpNam 
    Having sum(a.OpeningBalance) + sum(a.INq) + sum(a.OUT) > 0
    Order By a.Itemcode 

  • Query regarding open items

    hi experts,
    can any body tell me in fbl1n if i put the posting date 01.04.2008 to 29.07.2008. on 28.07.2008 i am getting a balance and balnce showing in cleared items but if i didnt put any date i am getting zero balance. whts the reason?????
    regards,
    ankur

    Hi,
    The balance must for the postings happened during those dates, there can be some postings prior to that date (Opening balance) and which when included the total balance must be netting to zero. Please check.
    Regards
    Sridhar

  • Query regarding Open Hub Services

    Hi All,
    I am trying to find out if delta extraction is possible through open hub services to a cube which is running daily full load?
    To make the scenario more clear:
    I have a cube  A which is getting loaded on a daily basis (FULL LOAD) but before loading it's deleting the whole data from the cube & loading fresh full load.....this is to get the updated data...
    Now I want to set up InfoSpoke for this in delta extraction mode, is this possible???
    It would be of a great help if someone can explain how delta mechanism work in open hub services. Any suggestion would be highly appreciated.
    Regards,
    Kironmoy Banerjee

    Can anyone tell me how to extract the master data attached to a field through InfoSpoke?
    Ex: I have a field called OIS_BP in one of my InfoCube, I have created an InfoSpoke where I have mapped this filed, but when it extracts data, it will be like 0IS_BP = 1100022, or1100023, 100024 etc, we can not see he master data assigned to it, I mean we can't see the name or address of BP No. 1100022 or 1100023 or 1100024.
    Can any one tell me how to add the names with these BP in InfoSpoke?
    Regards,
    Kironmoy Banerjee.

  • How to open a closed posting period?

    frnds
    Transaction MIRO
    i am trying to post invoice in one of the closed period, so it not allowing me to post and gives a message that postingperiod is not opened,
    can you please tell me how can i open closed posting period?
    Thanks

    Hi Mathew,
    For FI postings use OB52.  For opening MM postings use MMPI.
    Pls. read through the information regarding MMPI before you proceed further.
    Ram

  • Stock Statement - Opening & Closing Values

    Hi Guys,
    I am using the below query for  opening & Closing Stock Report.
    select a.ItemCode,a.Des, a.WareHouse , (SELECT (sum(t1.inqty - t1.outqty))
    FROM OINM t1 
    WHERE (T1.DocDate < '[%1]') and (t1.itemcode = a.itemcode) and
    (t1.warehouse = a.whs) ) as 'OB',
    a.Price,a.inqty as 'Goods Receipt',a.outqty as 'Goods Issue',
    (SELECT (sum(t1.inqty) - sum(t1.outqty))
    FROM OINM t1  
    WHERE (T1.DocDate <= '[%2]') and
    (t1.itemcode = a.itemcode) and (t1.warehouse = a.whs)) as 'Closing',
    (SELECT (sum (t1.transvalue))
    FROM OINM t1  
    WHERE (T1.DocDate <= '[%2]') and (t1.itemcode = a.itemcode) and
    (t1.warehouse = a.whs)) as 'ClosingValue'
    from (SELECT max(T0.[ItemCode]) as 'ItemCode',
    max(T0.[Dscription]) as 'Des',sum(T0.[InQty]) as 'InQty', sum(T0.[OutQty]) 'OutQty',
    t0.warehouse as 'whs' ,
    (select w1.whsname from owhs w1 where w1.whscode = t0.warehouse) as 'Warehouse',
    avg(T0.[Price]) as 'Price'
    FROM OINM T0 
    inner join oitm o1 on o1.itemcode = t0.itemcode
    inner join oitb o2 on o2.itmsgrpcod = o1.itmsgrpcod 
    WHERE (T0.[DocDate] >= '[%1]' and  T0.[DocDate] <= '[%2]')  and
    (TransType != '10000071'  and Transtype !='67' ) and
    (o2.itmsgrpnam >= '[%3]' and o2.itmsgrpnam <= '[%4]' )
    group by T0.[ItemCode],t0.warehouse)a
    But i need some changes in the Report and  below is the selection criteria,
    Pls somebody help me in achieveing this.
    Report 1:
    Item Group: Group B
    u2022 Column: Goods Issue
    Field to be fetched: Invoice Qty. for the respective FG items
    From Ware House No.: 02
    Fetching type: Cumulative for given date range
    u2022 Column: Goods Receipt
    Field to be fetched: Receipt from Production for FG items
    Receipt Warehouse: 02
    Fetching type: Cumulative for given date range
    Report 2:
    For Item Groups- Accessories, Consumables & Raw materials:
    Column: Goods Issue
    Issue from Warehouse No.: 08 ,33
    Field to be fetched: Issue for Production (BoM qty-Back-flush & Manual issue by system)
    Fetching type: Cumulative for given date range
    Column: Goods Receipt
    Receiving Warehouse No.: 08 ,33
    Field to be fetched: GRPO qty. against respective Purchase Order.
    Fetching type: Cumulative for given date range
    Report 3:
    For Item Group-WIP
    Column: Goods Issue
    Issue from Warehouse No: 04,09,17,18,20,21,23,28,29,30,31,32,34,38,39,44,45,46
    Fields to be fetched: All types of issues ( Issue for prodn. through Prodn.order, GI &
    Inventary Transfer)
    Fetching type: Cumulative for given period.
    Column: Goods Receipt
    Receiving Warehouse Nos:04,09,17,18,20,21,23,28,29,30,31,32,34,38,39,44,45,46
    Fields to be fetched: All types of Receipt (Receipt from Prodn. through Prodn.order, GR )
    Fetching Type: Cumulative for given period.
    Regards,
    Vamsi

    Dear Srini,
    Yes of-course Tally shows OB,and Closing balance at a particular time, SAP B1 Shows them too, but in a different manner.
    1. Suppose , you have given OB to SAP on 01/04/10.(which is actually the closing balance of Tally as on 31/03/10).
        Under trial balance report OB Column is there.
         If you are trying to populate Tally's OB of 01/04/09, You Can't.
    2. Getting the OB at a particular time in SAP, depends how you are maintaining your Posting Periods.
    For Closing balance in SAP, The last column -'Balance' is actually the Closing balance as on the date for you are running Trial Balance Report.
    Hope this will help you.
    Best Regards
    Ashutosh T

  • What t-code do i use to re-open a closed Asset period

    Hi,
    Need t-code to open a closed asset period.  Hope someone can share his expertise.  I would appreciate a detailed procedure that I can follow. 
    Thanks a lot.
    < Search forums first. Locked. >

    Hi,
    Use OAAQ transaction.
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/4f/71eafd448011d189f00000e81ddfac/frameset.htm
    Regards,
    Eli

  • How to open and closed posting period??

    Dear Gurus,
    Pls help me, how to open and closed posting period.when and how we used special period.
    Regrds
    Mahesh

    HI,
    Tcode is ob52
    here we generally provide the following details
    a/c type from a/c to a/c from period year to period year from period year to period
    +                                    1            2007   12         2007      13       2007   16
    + implies it applicable to all account types
    generally we can have maximum 4 special periods and total no of periods(normal+special) should not exceed 16
    generally we use special periods for year end adjustments like tax adjustments
    if it is useful assign me points

  • Re open the closed Posting Periods - Very Urgent

    Dear Experts,
    We have an urgent problem to solve.The company code currently we are configuring uses fiscal year (oct - Sept) and the other company codes in our client site uses (jan -Dec). So by mistake we closed posting periods using MMPV upto 2007 03 but it should be 2006 06(correct me if i am wrong).
    As we are still in baseline configuration we don't have any material document in the current company code. From this forum I got some solution to intialize the posting period using MMPI(which directed me to use SAP Note 487381).
    Now if I do MMPI with the directions mentioned in SAP Note 487381, will i face any problem now & in future.
    Please suggest me and help me as has become hurdle for the test process.
    Thanks in Advance...
    Nagesh Aswartha

    Hi Aswartha
    As you do not have any material documents , pl go ahead and initialize the periods. Should not be a problem.
    I normally do this to avoid errors:
    In MMPV, never give a period. Enter the current date(or first date of the month) in the date field and execute closing program.
    Best regards
    Ramki

Maybe you are looking for