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

Similar Messages

  • How to close and open posting periods

    hi Guru,\
    i need help in posting periods.
    how to open & close posting periods ?
    Thanks

    Hi,
    Use tcode S_ALR_87003642. On this Tcode, you will identify which period to close/open and in what account will this appy, (Asset, GL, customer, vendor, etc)
    Hope this helps you.
    Thanks,
    Rod

  • Error during GI due to posting period

    Hi ,
    I am getting an error during goods issue which says posting period not open.I guess that we have had deliveries that were created and in process while crossing over from one financial period to another quite frequently before, but we were still able to goods issue them in the next period. Can anyone tell me why this error happens and if there is any work around for this?
    Thanks,
    Hari.

    Hi
    Use T.code OMSY to see whether posting periods in MM are open.
    Use MMPI--To initialise posting periods in MM
    Use MMPV--to close posting periods in MM
    Use OB52 to see the open and close Posting periods
    make sure that the FI posting periods are in sync with the MM posting periods.
    Regards
    Aravind
    ASSIGN POINTS IF USEFUL

  • BADI / EXIT for KO88 and KO8G to populate a warning if posting period blank

    Hi,
    Need is to have a user exit to populate a warning message if posting period is blank when executing these transactions KO88 and KO8G
    . Can u tell me the BADI or exit for the same?
    Regards

    Hi ,
         We can also adress this by making the posting period field mandatory using Transaction Variants ,SHD0 for KO88 , KO8G Tcodes ..
    Example : Enter tcode SHDO , enter tcode as KO88 and Transaction variant as ZKO88 and click create this takes u to KO88 here enter required data and click enter gives u scree variant of K088 Initial screen here you can make the posting period field as required and save it in a separate package created in se80 , so that u can transport ..
    similarly for KO8G
    regrds
    pushpa

  • Posting periods issue though I updated in MMPV

    Hi experts,
    I created scheduline agreement and trying to do the PGI , system thrown an error saying 'posting periods possible only 9/2009 and 8/2009'. after this I closed the periods till sep09  in T.code MMPV, still the same error. is there anything else that I have to configure or check to resolve this issue. your help is neede.
    Thanks,
    Kanna.

    Hi,
    This is how you need to do it.
    Go to Tx: OMSY or MMRV & check the current period against your company code.
    Theory behind Posting Periods in SAP
    Posting periods are calculated using a Config: Setting called u201CFiscal Year Variantu201D attached to the Company code. u201CFiscal Year Variantu201D is the deciding factor for the company code, whether to follow the calendar year or any other calculation method.
    Eg: Fiscal year can be start from July & goes to the next year June for some companies.
    Therefore what you see in the OMSY might not be the actual calendar month that SAP is referring.
    (Eg: 01 means Jan, 02 means Feb, 03 means March, etc is not always the case)
    So first you have to check the Fiscal Year attached to your company code.
    Go to below path to check Fiscal Year attached to your company code.
    IMG -> Financial Accounting (New) -> FinanciaI Accounting Basic Settings (New) -> GIobaI Parameters for Company Code -> Enter GIobaI Parameters ->
    Go in to your company & Check the Fiscal Year Variant field. There you can identify whether it equals to the calendar year or not. If its not clear, take that Fiscal year variant 7 go to below IMG path;
    IMG -> Financial Accounting (New) -> FinanciaI Accounting Basic Settings (New) -> Ledgers -> FiscaI Year and Posting Periods -> Maintain FiscaI Year Variant (Maintain Shortened Fisc. Year)
    Go in to the node.
    Select the Fiscal year & double click on Periods node.
    If Fiscal Year is same as calendar year, then you should have that u201CCalendar Yru201D tick box ticked.
    Now check what's the SAP Fiscal month relevant to your calendar month.
    The go to MMPV & open that relevant Fiscal month accordingly.
    Then you should be able to post.
    Hope this helps you !
    Best regards,
    Anupa

  • Variable Exit for YTD using posting period

    Hi Friends,
    I need to calculate the YTD amount per user entry, i.e., when user enters the posting period value as 5 the Actual value should calculate the amount for posting period 5 and Actual YTD value should calculate the amount from Period 1 - 5.
    I'm getting the same amount as period 1 for YTD as well....I created a two variables for YTD , one is with single value optional with default value as 1 not ready for input and another variable as customer exit with single value. In the exit I'm reading the user entry value as my 2nd variable value. Then I'm using these two variables as range in RKF with key figure and value type.... i.e,
      WHEN 'ZTEST'.
    data:      zper     TYPE t009b-poper
        if I_STEP = 2.
          READ TABLE I_T_VAR_RANGE INTO ZPER WITH KEY VNAM = '0P_PER3'. " this is the mandatory user entry for Actual value
         l_s_range-sign = 'I'.
         l_s_range-opt  = 'EQ'.
         l_s_range-low   = zper.
          append l_s_range to e_t_range.
    ENDIF.
    Thanks
    sam

    I used the range and when I use RSRT to test the query , I'm getting the exact variable values in the result example if I give the input as year = 2010 and Posting period = 3 - 6
    I'm getting the variale values for input as 3-6 and variable values for Actual YTD as 1-6 but the Actual YTD value is showing the same value as Actual.
    I have the cost element heirarcy as the row item. I'm not sure If we are allowed to use heirarchies in the rows when we are using the above logic for YTD?  Also when I drill down by posting period I could see all the values in Actual YTD but when I removed drill down it is only showing the value for 3-6 just as Actual....Please advice
    My Key figure in the RKF is a cumulated balance...Does it causes the YTD values and Actual values same?
    Example result below for Period input 10:
    Posting period Actual        Actual YTD
    1xxxxxxxxxx     xxxxxxxxxx     210,587,416 USD
    2xxxxxxxxxx     xxxxxxxxxx     172,717,190 USD
    3xxxxxxxxxx     xxxxxxxxxx     178,563,365 USD
    4xxxxxxxxxx     xxxxxxxxxx     160,894,981 USD
    5xxxxxxxxxx     xxxxxxxxxx     145,730,654 USD
    6xxxxxxxxxx     xxxxxxxxxx     109,796,716 USD
    7xxxxxxxxxx     xxxxxxxxxx     108,377,441 USD
    8xxxxxxxxxx     xxxxxxxxxx     95,732,276 USD
    9xxxxxxxxxx  xxxxxxxxxx     88,925,649 USD
    10xxxxxxxxx     107,755,724      107,755,724 USD
    Overall Result     107,755,724      107,755,724 USD 
    thanks

  • Special Periods and Variable Offset

    Our fiscal year variant includes 12 periods and one special period (Period 13).  I created a rolling 12 month query which uses variable offsets to define each column.  If the user enters 3/2006, I would expect to see the next columns to show 2/2006, 1/2006, 13/2005, 12/2005....
    Instead the query ignores the special period and jumps directly from 1/2006 to 12/2005 - therefore the postings for Period 13, 2005 are not displayed.  From what I've found so far this is standard SAP BW functionality, but has anybody had any luck getting around this?
    Thank you.

    Jeff,
    If I enter 13/2005 into the leading column variable, I can see that there are transactions posted to Period 13 which are not included in the results of Period 12.  We have another query where the user can enter a period range using an interval variable for 0FISCPER (i.e. from Period 10/2005 to Period 2/2006) and it brings back results for Period 13/2005.  However this other query that uses the variable offset to define the rolling periods does not return the Period 13 results.  I thought about adding Period 13/2005 to Table T009B, but I would prefer not to set this up in BW without doing the same in R/3, and I'm not quite sure about the implications of adding an extra (not special) period to the Fiscal Year variant in R/3.
    Sven,
    I use 0FISCPER for posting period, and I created a structure for the twelve periods.  There is a variable (0P_FPER) for current posting period in the first column, and the rest of the columns use offsets to go back the 12 months.  For example the second column is (0P_FPER - 1), the third column is (0P_FPER - 2), etc.  It seems that my problem is related to the fact that the offset ignores the special periods, while the fiscal period interval variable recognizes these periods.
    Thanks very much to both of you for your replies!
    Janet

  • 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

  • Error that "specify a value for variable posting period (single value entry

    hi
    My query is running testing fine in RSECADMIN under some username..but when i try and open it using analyzer (under same username) it gives me error that "specify a value for variable posting period (single value entry, mandatry)" it does'nt even asks to enter variable values and gives this error message.
    However the same query appears to be working fine under different username.
    plz advise.

    Hi Abhinav,
    Just do one thing compare the Roles of two different users for which Query is getting executed and not.
    Check the Object S_RFC.
    Compare the Objects detail for Both the Users.
    Please Assign points if useful.
    Regards,
    Rajdeep.

  • If current period is closed, use next period for posting...

    Hello Experts,
    I am currently developing a report that posts via F-02. Now, my functional said
    that if before posting, I need to check if the current period is open.If yes, then
    proceed posting. If not, then get the next period and use it for posting.
    For example, period 12 is closed, then I need to use period 13. Can you guys help
    me in the logic?
    Thanks and take care!

    Hi,
    Check with your FI consultant as which table to use to determine the posting period is closed or not. It is customizing table.
    Regards,
    Atish

  • Error in query when using offset in variable

    Hi,
    I have a query in which I use av variable (0CWEEK) for the current week. The query works fine with this varable. But when I use an offset of for example minus 1, the query displays an error:
    (A299(BRAIN)) Terminate: System error in program SAPLRRI2 and form REP_ASSIGN_INITIAL_OPT-01
    We use offset of 0CALWEEK in other info cubes, and there are no problems with that.
    In this case we have implemented 0CALWEEK in a DSO. Perhaps this somehow causes the problem? On the other hand the variable works fine in the DSO, as long as we don't use offset.
    So - why is there a error, and how to solve it?
    BR,
    Niclas

    Managed to solve the problem. The reason was that there was no column (or row) with the variable without offset. I.e. there needs to be a column for the actual week in the query as well, not only week with offset. In this case I didn't want the actual week, only an offset to it. So I just hid the column with the actual week from presentation.
    /Niclas

  • Posting period 011 2013 is not open while posting the document using F-02 getting the error

    Hi SAP Captains,
    Pls help me here.
    While posting the document using T-code F-02 getting the error "Posting period 011 2013 is not open.
    Please help me how to do, can you provide step by step.
    Rgds..Suresh

    Hi Suresh,
    You can search google and will get number of posts on this. This will lead to duplication of similar posts on forum.
    The message says "FI posting period is closed for 11th period of 2013". In which period you are trying to post the transaction?
    If it is past, open the FI posting periods in OB52.
    BR, Srinivas Salpala

  • Using offset for global variables in FOX

    Dear all,
    I'm using global variables (i.e. defined in planning area)in my FOX formulas by using VARV-command.
    I'm doing this for fiscal year, which has default value current year. However I'd like to use this variable also for next year thus creating the following code:
    DATA CURYEAR TYPE 0FISCYEAR.
    DATA NEXTYEAR TYPE 0FISCYEAR.
    CURYEAR = VARV(Z021VA01).
    NEXTYEAR = CURYEAR+1.
    This gives a syntax error. Anabody any idea how I can use offset in the FOX for my variables?
    Thanks in advance!
    Kind regards, Harjan

    Harjan,
    Use TMVL function to get the offsets.
    DATA CURYEAR TYPE 0FISCYEAR.
    DATA NEXTYEAR TYPE 0FISCYEAR.
    CURYEAR = VARV(Z021VA01).
    NEXTYEAR = TMVL(CURYEAR, +1).
    hope it helps.

  • Can we use OFFSETs in Hierarchy Node Variable in BEx ???

    Hi all,
      I have the need of using the OFFSETs in Hierarchy Node Variables. Can we use OFFSETs in Hierarchy Node Variable, PLEASE ???
        Thanks in advance.
    Regards,
    Venkat.

    I havent had such scenario - but I dont think you can do a offset on a hierarchy variable.

  • System error in Program SAPLRR12 .To use posting period as denominator?

    Hi Gurus,
    In a BEx report based on 0PCA_C01 cube I have to display a col which is formula based as (weighted avg cap empl / number of months). I am using the posting period as the divisor . The coversion of posting period to number is giving error" System error in Program SAPLRR12 and form REP_CUID_WGR_L-03-... ". Is there any alternative of cexit where we can derive the month count from the period.
    Please give some idea on how to derive the posting period as number
    I am in BW 3.16.
    Roy

    Hi Dipika
    Thanks for the reply.
    But I dont think that note is applicable for this error as this error pops as soon as the selection screen is past and before the report is displayed.
    This is not happening with all the users though.
    Its a random problem only.
    Thanks
    Phani.

Maybe you are looking for