Posting period - quarter

Hi,
The user would enter the fiscalyear/period as a variable value and in the report it has to show values for the quarter the posting period belongs.
if the user enters 2, the result should be for 1st quarter
and if entered 7, the result should be for 3rd quarter. Is there any std variable that can do this job? Or else how can i make this work.
Thanks,
Mav

data : w_fiscper type UMC_Y_FISCPER.
data : w_calquarter type UMC_YS_DIMVALS.
CASE I_VAM.
  WHEN 'QTRVAR'.
   IF I_STEP = 2.
      READ TABLE i_t_var_range INTO loc_var_range
           WITH  KEY vnam = 'PERVAR'.
      IF SY-SUBRC = 0.
         W_fiscper = loc_var_Range-low.
call function 'UMC_FISCPER_TO_CALQUARTER'
  exporting
*   I_PERIV                   = 'K4'
    i_fiscper                 = w_fiscper
*   I_CALQUARTER_ICHANM       =
* IMPORTING
   ES_CALQUARTER             = w_calquarter
EXCEPTIONS
   INVALID                   = 1
   OTHERS                    = 2
if sy-subrc = 0.
    loc_range-low = w_calquarter.
    loc_range-low = loc_var_range-low.
    loc_range-sign = 'I'.
    loc_range-opt = 'EQ'.
    APPEND loc_range TO e_t_range.
  endif.
endif.
endif.
You can adapt this.

Similar Messages

  • Calquarter from posting period in reporting level

    Hi Guys,
    We don't have the calquater in cube level.But in reporting
    we need to calculate the calquarter from posting period.
    My requirement is, when user enters the posting period 5 it
    should show the quarter 1 and quarter 2 values. If user
    enters posting period 7 it shoold show the qua1,qua2 and
    qua3 values.
    Can any one suggest me how we can get this?
    Helpful answers will be rewarded with full points.
    Prasad

    Hello,
    Create 4 variables (range) on Posting period for eg. qtr1 , qtr2, qtr3, qtr4 of type Customer Exit. Now Create 4 Restricted Keyfigures for the Key figure u want to display each restricted with posting period by qtr1 , qtr2, qtr3, qtr4.
    Now write the code to fill in these variables depending on the User entry value. so for eg, if user enters 5, then fill
    qtr1 with low value 001 and high value 003 of the same year as input value.
    qtr2 with low value 004 and high value 005 (input value) of the same year.
    as you dont want to show qtr 4 and qtr 5, fill them with some period for which you are sure there would be no values in the cube (may be some period in past or dummy year like 9999). You can then eliminate these columns by suppress zero value columns.
    Similarly write the logic for all 12 periods to fill corresponding Qtr1 to Qtr 4. So in report Restricted KF will show KF value resricted to corresponding Qtr
    Thanks

  • Posting period calculation

    Hi all,
    I have time characterstics Posting period (0fiscper3).........and i have hierarchy on this.......FY QUATERLY.........
    Now my requirement is in report i need two cloumns one with PRESENT QUARTER and one with PREVIOUS QUARTER...........how to achieve it?
    I tried to create a user entry variable for present quarter but for prvious quarter u cannnot specify offset value, as the option is greyed out.
    Please help

    Hi,
    In one cloumn use the variable whcih has current quarter.
    For previous quarter, create a restricted key figure and restrict it on quarter and give offset value -1.
    Hope this helps...

  • Posting Period Range variable - Using Offset

    Hi:
    I need to create queries for each quarter.  Without going through detail, some of my columns in my report I need to use the first two months of the quarter and some of the other columns I need to use the 3 months in each quarter.
    So for example:  We are right now in quarter 1; Jan, Feb, and Mar. Some columns I will be using a range of 1 to 2 and the rest I will be using a range of 1 to 3.  The same type of logic for the other 3 quarters.  I have a posting period variable (Characteristic value) and I was hoping that I was going to be able to use the offset option when I restricted my variable in each column that I only want period 1 and 2.  But when I run the query I don't get any results.  I know that the offset works with "fix" values but it seems not to work with a "range".
    I'm trying to stay way of creating the same queries for each quarter where the difference is only the posting period.
    Does anybody have any idea how I can accomplish this?  Has anybody ever had to do something like this?
    Your thoughts comments will be greatly appreciated!
    Regards,
    Helena

    Hi Arun:
    I know I can restrict the values that I want but I'm trying to avoid in having to create 4 queries..One per quarter.  I'm trying to see if I can just have 1 query and use a range variable which I have already defined as a characteristic value and it's a range.  I use the user exit to populate the initial values depending on the posting period at the time the query runs.  Right now the variable screen will show 1 on the from and a 3 on the to.
    The columns that need all three months are coming out fine in the report.  The issue that I'm encountering is the columns that I only need the two months in this case 1 and 2.  What I did here is still using the same range variable and restrict it with an offset of -1.  When the query  runs, this column comes up with no data.
    How can I get around this?
    Thanks for your help!
    Helena

  • Posting Period Authorization

    SAP Version: SAP B1 8.8 PL 10
    Hi All,
                On 1st of  every month we close the Previous moth Posting Period, so that No user can Add or Update any Documents which belongs to the previous month. But we had to give authorization to few managers to update.
                We tried to achieve this in this way:
                1. Previous month Posting period set to Closing Period
                2. Set Authorization to all users No Authorization for Period Status: Closing Period & Period Status: Unlocked Except Sales in Authorization window.
                3. And Set Posting Periods to NO Authorization in authorization window.
                       By Doing this should make all users who have got NO Authorization to Period Closing should not be allowed to  Update OR Add any Documents which belongs to Previous month.
                       But this is not happening. I am able to cancel the document and add the document in to previous month logging into the user who doesn't have authorizations to do so.
    Is there any other way to Achieve this.
    Cheers,
    Sree.

    Check the solution as follows:
    dministration -> System Initialization -> Posting Periods
       1. The implications of different Posting Period Status.
    When Posting Period status is set as:
    Locked
    any data entry or journal entry will be disabled for all users.
    Unlocked
    data or journal entry can be done by any user in this period provided that General Authorization does not restrict the user from certain actions.The functionality is as the following combination of fields values 'Active'=Yes, 'Locked'=No from the previous versions.
    Unlocked Except Sales
    data and journal entry can be entered within all document types appplications and tools except any Sales document under (Sales - AR). The functionality is as the following combination of fields values 'Active = No, 'Locked'= No from the previous versions. Work under this period status is allowed only for those users who have assigned 'Full Authorization' in General Authorizations form -> General group -> Period Status: Unlocked Except Sales.
    Closing Period
    data and journal entry can be performed within all document types, applications and tools. Work under this period status is allowed only for those users who have assigned 'Full Authorization' in General Authorizations form -> General group -> Period Status: Period Closing.
    NOTE: The Period Indicator set for certain Posting Period does not influence on the possibility of entering data (marketing documents and journal entries).
    NOTE: When you log to a company after its upgrade from previous versions then SAP Business One checks for "Unlocked" and "Unlocked Except Sales" periods whether their 'To Date' are older than Actual System Date. If YES those period statuses are changed to "Period Closing".
    It is also possible to switch on / off this automatic update of periodstatus and also define a delay in days. For more details please refer to the 'Automatic change of period status' section.
       1. Automatic change of period status:
    Period status of just ended posting period (based on actual system date) should be automatically changed from "Unlocked" or "Unlocked Except Sales" to "Period Closing" after the very first log into the system in a new subsequent posting period (based on actual system date) when "Automatic Change of Period Status to 'Closing Period' " checkbox is checked and value in "Date When Automatic Change Is Applied" field equels 1 (what are actually their default settings after upgrade or when new company is created). However, if authorized user would change the period status back to "Unlocked" or "Unlocked Except Sales" from "Period Closing" and the system would be started again e.g. next day or simply in a few seconds later, automatic change would not be applied any more.
    User can decide to disable function of Automatic Change of Period Status by unchecking "Automatic Change of Period Status to 'Closing Period' " checkbox.
    User can also decide to execute automatic change on the second or later day in new period or even the period after by entering a new value in "Date When Automatic Change Is Applied" field on Posting Period. When the value = 1, the change is applied on the first or later day of new period depending on the first login into the system. When the value = 2, the change is applied on the second or later day depending on the first login into the system. Default value for new company and after upgrade is 1.
       1. "Posting Date To" field is disabled.
    When you try to add a new Posting Period, SAP Business One offers the next free year which has not been defined yet. For example, when you have already defined Posting Period for 2006 year and then you want to add a new one, SAP Business One proposes you the next 2007 year (in Administration -> System Initialization -> Posting Periods -> orange arrow callingparticular posting period form -> 'Dates From... To' fields) automatically. Moreover, when you want to add a not annual period (e.g. quarter, month, etc.) then even if the "Posting Date To" field is disabled and has wrong value in process of adding, after the period is created the value of the field "Posting Date To" is recalculated and changed to correct date (usually end of the year).
       1. When any data or journal entry is being created behind some system document (exactly when a user tries to add the document), SAP Business One checks whether the entered date value in 'Posting Date' field fits any defined posting period. If NOT i.e. there is no posting period defined coveringthe entered Posting Date, the following system error message will appear as a pop-up: 'Posting Date deviates from the defined range. To complete the action, define posting period matching the entered Posting Date.'
       2. When deleting Posting Periods (by sub-periods) SAP Business One checks whether there is no data entered within the particular period, additionally SAP Business One checks if at least one very last posting sub-period remains defined in the database. If not, the deletion will not be allowed under any circumstances. As part of this restriction, the following system error message will appear for the user: 'Cannot remove the last period'.
    it is from SAP note 1050246. if not resolve, log a message to SAP support or upgrade the PL version from 10 to 13.
    JimM

  • Posting on 13 posting period

    Hi experts,
    i just closed posting period for the period 2011(jan - dec)
    but my posting periods 13 to 16 is open,
    still some invoices are pending
    i need to enter MIRO transactions on 13 posting period, how it can manage ?
    regards,
    Sanju M S

    Hi
    Expert,
    check this........
    Period management:
    You have 2 kinds of period management: in FI and in MM.
    Accounting needs to open and close financial periods before they can post in them. They usually have one period per month and one extra per quarter, so totalling 16 periods per year. Their periods do not need to coincide with the calendar.
    MM needs to open and close MM periods. These periods reflect periods for statistical reporting. They should coincide with the calendar months. In MM you can only have 3 periods open at any time: the present period/month, the previous period/month and the last period/month of the previous year. The present period should normally be the present month.
    The MM period and the FI period are linked indirectly, but not dependent on each other: when you post a document in MM, the MM period is determined based on the month of the document date. When the material document posting requires a financial posting, the FI period is determined automatically in background in the FI document based on the posting date of the material document.
    When the MM period is not correctly closed, you'll get messages as you have got. When the present MM period is in the past, you just need to use MMPV to close the periods one by one untill you arrive at the present calendar month. When the present MM period is in the future, you need to use trx MMPI to correct the situation (read the OSS note!).
    You can identify whether it concerns an FI or an MM period by the following characteristic: when SAP talks about a period ppp/yyyy (for instance 010/2004) it is talking about FI,

  • Error while running a query-Input for variable 'Posting Period is invalid

    Hi All,
    NOTE: This error is only cropping up when I input 12 in the posting period variable selection. If I put in any other value from 1-11 I am not getting any errors. Any ideas why this might be happening?
    I am getting the following error when I try and run a query - "Input for variable 'Posting Period (Single entry, mandatory)' is invalid" - On further clicking on this error the message displayed is as follows -
    Diagnosis
    Variable Posting Period (Single Value Entry, Mandatory) is used as a lower limit (X) and an upper limit () in an interval selection. This limit has the value #.
    System Response
    Procedure
    Enter a different value for variable Posting Period (Single Value Entry, Mandatory). If the value of the other limit is determined by another variable, you can change its value also.
    Procedure for System Administration

    OK.
    Well, if the variable is not used in any interval selection, then I would say "something happened to it".
    I would make a copy of the query and run it to check if I get the same problem with period 12.
       -> If not, something is wrong in the original query (you can proceed as below, if changes to original are permitted).
    If so, then try removing the variable completely from the query and hardcode restriction to 12.
       -> If problem still persists, I would have to do some thinking.
    If problem is gone, then add the variable again. Check.
       -> If problem is back, then the variable "is sick". Only quick thing to do, is to build an identical variable and use that one.
    If problem also happens with the new variable, then it's time to share this experience with someone else and consider raising an OSS.
    Good luck!
    Jacob
    P.S: what fisc year variant are you using?
    Edited by: Jacob Jansen on Jan 25, 2010 8:36 PM

  • Where we have to open and close posting periods in asset accounting

    hi sap gurus
      can anybody give where we have to open and close posting periods in asset accounting
    thank you
    venkatareddy

    Hi Venkatareddy,
    You make specifications for fiscal years and posting periods in the SAP R/3 System in Customizing for Financial Accounting. This is done in the fiscal year variant in the global parameters of the company code. These settings are, in general, also binding for Asset Accounting. The depreciation periods in Asset Accounting then correspond to the posting periods in Financial Accounting.<b> It is usually not necessary to create a separate fiscal year variant for Asset Accounting.</b>
    The period control in the depreciation key determines the start and end of depreciation when asset transactions are posted . The period control determines the relationship between the calendar period in which the asset transaction is posted and the depreciation period.
    These calendar periods are independent of the posting periods in Financial Accounting. The only restriction is that the beginning of the first calendar period and the end of the last calendar period defined in a period control have to match the start date and final date of the fiscal year in Financial Accounting.
    Kindly let me know if this useful for you

  • How to Open and Close Posting Periods in MM

    Hi,
    I have opened posting periods for 10/2008 first and by mistake even 11/2008 and 12/2008 using MMPV.
    Now when I am trying to do PGI from VL02N, the system says postings are only possible for 11/2008 and 12/2008.
    How to close these two periods and default to 10/2008.
    Please kindly help me to solve this issue.
    Regards,
    Gopi Krishna
    SAP QA Lead

    It is possible to re-open a previously closed period. However, it is NOT advisable to do so because the valuation data of the previous period could be affected.
    In general, it is only safe to reopen a previously closed period when no material postings have been done after the period shifting to the new period.
    If there has already been postings after the period shifting to the new period, reverting the period back will cause database inconsistencies in the history tables.
    If you decide to proceed with this process, you can use the program RMMMINIT, but, please review the documentation of this program first!! and the check the SAP notes 487381 (for the error message that you are receiving) and the 369637 (for an explanation about the inconsistencies that will be generated.
    Steps are as below;
    Go to Transaction Code SE38
    Enter program name RMMMINIT
    Execute or press F8 function button
    Enter your company code (From and To)
    Enter relevant date: Say 01/03/2008 for Mar. 2008 month to be opened as of now
    That means, user can post for the month of Feb 2008 as well as Mar. 2008
    Refer SAP Note No. 487381 for more details.
    As per SAP Notes 487381 ( If the periods are opened in advance in mmpv to again change it to current period the following process should be follow ), Go to Tcode MMPI, then go to menu bar and select system -> user profile->owndata.In that screen , under the parameters tab enter MMPI_READ_NOTE in Parameter ID field and enter, then under short description you will get Initialise period. Next Save.
    Again go to MMPI enter company code, period and year and execute.
    XXXXXXXXXXXXXXXXXX
    Other way of doing it is follow these steps( But try this method in Sand box Only):
    1. Go to OX18, and delete the plants assigned to your CO.Cd and save.
    2. Go to OMSY and change the posting period to the one u want and save.
    3.Go to OX18 and assign the plants you have deleted in step 1.and save.
    regards,
    indranil

  • Two intervals in Open and Close Posting Period (OB52)

    What is the purpose of the two intervals (period 1 and period 2) in Open and Close Posting Periods (transaction OB52)?

    Hi,
    Financial statements cannot be prepared on the last day of the accounting period... to find out the correct profit and to determine the correct financial positing... sometimes you may require to make some adjustment  to accounting records after the closing of the accounting year... like adjustments for expenses payable, income receivable, writting off bad debts ...etc. 
    For posting those transactions....period 2 is maintained ..which are also called as special periods... to make the postings in these periods ...special authorisation is required..... 
    Period 1 is for regular postings ...
    Radha

  • Open and close specific posting periods automatically

    Hi experts,
    I need change periods for specifics posting periods at the end of the month automatically, with batch program. Nobody know a especific bapi or transaction?
    Thanks in advance,

    hi Oscar,
    as far as I know, there is no standard program / FM / BAPI for this. However it is not difficult to develop one...
    ec

  • Open and close posting periods for at ledger level

    Hello,
    We are running on ECC6 with the new ledger. We have activated two ledgers (the leading ledger and a non-leading ledger for group reporting). Our client would like to manage the posting period at ledger level.
    Example: during the month closing, the Leading ledger is closed on the previous month at Day +4, while the non-leading ledger is closed at Day +5.
    Is there a way to open/close period at ledger level only ?
    Thank you.
    Best regards,
    Steven Moulinot

    It is possible to assign a different posting period variant to company code in a non-leading ledgers (the extreme right field) in the foll. node in SPRO.
    Financial Accounting (New) -> Financial Accounting Global Settings (New) -> Ledgers -> Ledger -> Define and Activate Non-Leading Ledgers

  • Open and Close Posting Period (OB52)

    Dear Experts,
    My client wants to close the posting period of the previous month. 
    First I went to transaction OB52 to define an entry From Per. 1 2008 To Per. 12 2009 to open all the posting period for the year.  But when the time passes, do I have to manually change the From Per. back to the current month (e.g From Per.1 2008 changed to From Per. 2 2008 and so on)
    If this is the case, is there any way to make this a automatic function to do this.
    Points will be rewarded.
    Thanks.

    Hi,
    You define posting periods in your fiscal year variants. You can open and close these posting periods for posting. As many periods as you require can be open for posting simultaneously. Special periods can be open for closing postings during the period-end closing.
    You have the following options for opening and closing posting periods:
    - Posting Period Variants: You can specify which company codes are open for posting in a posting period variant. Posting period variants are cross-company code and you have to assign them to your company codes.
    - Account Type: You can differentiate the opening and closing of posting periods by account type. This means that for a specific posting period, postings can be permitted to customer accounts, but not to vendor accounts.
    - Account Interval: You can differentiate the opening and closing of posting periods by account intervals. This means that you only open a posting period for posting to a specific account.
    Path for making the settings for opening and closing posting periods:
    Customizing for Financial Accounting under Financial Accounting Global Settings -> Document -> Posting Periods
    For detailed example for opening and closing posting periods please refer the link below:
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/96/8b300943ce11d189ee0000e81ddfac/frameset.htm
    I hope it will help.
    If helpful, please assign points.
    Regards,
    Manju

  • Open and close posting period

    hi gurus my client wanted to block the posting date from 01.03.2007 to 30.03.2007 and only posting date 31.03.2007 should open is it possible in sap.plz help me.
    thanks and regrds
    dipti

    Hi,
    You can customise in Fiscal year Varient, If you are maintaining V3 then assign posting period days to March as 30 days and create period 13 as special period. Now you are able to block periods 1 to 12 in OB52 and allow user in posting period 13 (special period) i.e for March 31st
    Try it.
    Kedar

  • Open and close Posting Periods. Different societies.

    Hi all.
    We have 2 societies  0001  and 0002.
    In transaction S_ALR_87003642 or OB52 I want that user of society 0001 only can see posting periods of his society ( 0001 ) and the same with society 0002 users.
    How I can do this ???
    thanks a lot.
    Ismael

    Hi,
    This requires bit of ABAP help.
    WE have achieved this scenario successfully based on the information provided below -(found the source on the internet!)
    Goto SE11 copy the view V_T001B to ZV_T001B_000X (000X indicate the Posting Variant)
    In Change mode, tabstrips Selection Conditions Insert line 2 with
    Table     Field Name   Operator   Comparative Value    AND/OR
    T001B   BUKRS           EQ            '000X'                          AND
    Save your entries
    Third Step :-
    Goto SE54, Options Generated Objects -> Create
    Authorizations Group  FC31
    Function Group          Z00F0
    Maintenance Type     One Type
    Overview Screen       65
    Single Screen             0
    Final Step :-
    Goto SE93, Create a new transaction code ZOB52_000X
    Start object - Transaction with parameters (parameter transaction)
    Transaction SM30, Tick Skip initial screen
    Name of screen field       Value
    VIEWNAME                     ZV_T001B_000X
    UPDATE                           X
    Save your entries.
    Now have the ABAPer to have company code on the selection screen.  Based on user selection, invoke the corresponding neww transaction code ZOB52_000X which will only display the 
    Posting Variant that you have define in your table view.
    Hope this solves your problem.
    Regards,
    Sridevi

Maybe you are looking for

  • Null Pointer Exception when trying to access Portlet Context

    I am using the JSR_168_Support.zip, that was downloaded from the BEA site to implement the Portal technology utilizing the JSR_168 standard. I followed the instructions in the INSTALL.TXT file that is included in the zip file on replacing some of the

  • Handling oracle commit erros at Appilcaton level in case of AWT

    Hi All, Incase AWT, All transactions committed successfully in the TimesTen database will be successfully propagated to and committed in the Oracle database. Execution errors on Oracle cause the transaction in the Oracle database to be rolled back BU

  • Set up validity table for inventory management

    Hi all, somebody know if it is necessary reload the infocube 0IC_C03 every time that change the transfer method with the Tx. RSDV? Thanks in advance. Facundo Romero.

  • XML editing from flash, any idea, suggestion

    Hello, I have created for a client a website dynamically loaded with XML formatted content (XML Files), now the client wants to be able to edit the contents of its site (CMS), the site displays several things but more specifically a list of products,

  • Why does the download list keep emptying?

    I have set the preference to empty the download list manually. And it used to work fine until a few weeks ago. But now, every time I close Safari, the download list empties and the download button disappears, until the next time I download something