Offsets in variables

Hi,
I created a query using variable 0FPER for 0FISCPER and then created offsets to go to prior month from selection month. The result showed the selection month value for the prior month also.
When I use the text variables, the values for selection month and prior month show the selection month only
When I use 0P_FPER variable, the query cannot be executed with an error message 0FPER cannot have replacement value.
I think this is a SP issue. We are on SP 7 in NW2004S. On the other hand, when I create the same query in 3.1, I get different values for different periods which are correct. The text variables work correctly.
I cannot find any OSS notes for this. Is there any correction instruction for this?
Thanks.
Param

Param :
Yes, i think maybe it´s an sp issue. Try with 11 level, and see this link with the detail of sp and his corrections :
https://websmp207.sap-ag.de/~sapidb/011000358700004483762006E
We have 9 sp level and still it´s not possible work correctly with variables and offsets.
Hope Helps.
Natalia.

Similar Messages

  • Error while offsetting a variable

    Hello Experts
    I want to display the data for last 5 years in my query. So I tried using the SAP exit variable Current Calendar Year (0CYEAR) and the offset it by 5. However, I am getting the following error message for the query "System error in program SAPLRR12 and form REP_ASSIGN_INITIAL_OPT-01"
    Any Help on this is appreciated and points will be assigned.
    Thanks

    Thanks Chetan for your prompt reply. I have assigned points.
    But I would appreciate if you help me clear my understanding of offseting a variable.
    Say if the Current Calendar Year variable returns 2008, then will offseting that variable by 5 return me the data for years 2008, 2007, 2006, 2005 , 2004. Or, will it just return me the data for 2008 - 5 = 2004 only.
    Thanks
    Rishi

  • Offset for variable not working !

    Experts,
    I have to show sales for last 5 months ( in 5 diff. Columns )
    So, i have written CMOD code, where i am converting System date in to Fiscal Year / Period using FM DATE_TO_PERIOD_CONVERT.
    every thing works good, i do get result. but the problem is the Offset for Variable function doesnt support that.
    I was hoping that, Now i can do Offset -1, -2 , -3...till -5 and i will have all 5 Periods.
    But looks like its not working out.
    What other logic i can use.
    !!!!!!!!!!My Variable is Not ready for Input !!!!!!!!!!! So the only way i found is to convert system date to current Period and then off setting it till last 5 months. And i do need to so last 5 months starting current Period -1, -2, -3, -4 and -5
    is there any other way to get current Period ( i guess only from system date ).
    I think in my logic, when i do offset, its not offsetting the Period, but its off setting system date.
    Please help

    Hi Honar,
    I am pretty sure offset should work, in your customer exit, calculate the current period as using the system date, once you get that, create a variable with the same name as you defined in the customer exit and use that variable in five different restricted key figures with each with (Variable, Variable -1, Variable -2, Variable - 3 and Variable - 4). If you have done so and not working, what are you getting in each of the variables, there might be some notes which could address that issue.
    thanks.
    Wond

  • Offset a Variable

    Hello friends
                      Can you tell me how we can offset a variable. For e.g. I have a variable "Latest date" (Customer exit) which gives me the latest date. Now I also want a date in the last week so I just want to offset this variable by 7. Also, can I use both of them i.e the original variable and the offset one simultaneously

    Hi Rishi,
    Offset a variable can be done by right clicking the variable after you have selected it.
    You can use both the variable and the offset variable e.g.:
    restict from offset variable (e.g. current moth - two months ago) to variable (current month)
    Udo

  • 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

  • Query Designer: "Set Offset For Variable" not available

    Hi,
    I want to restrict a character by using a variable with offset, but the needed function is disabled in context menu for different variables (customer exit, single value, multiple values, etc.). I have found a hint here, that this function only works with interval variables. Is this correct?

    Hi,
    1) For Customer Exit Variable: Offset Functionality will not work,
    2) For Manual input  Interval Varable: you can have the Offset, but the offset will work on upper limit only
    Ex: if u execute the quey by giving the interval like 2 - 4; then in the report output u can see only 2, 3 months data means the offset is working on 4 i.e upperlimit,
    3) For Multiple Single Values:  No offset Functionalty
    Thanks,
    Regards
    ReddYA

  • Offset in Variable Replacement Path

    Hi gurus,
    I have a 7.0 BI System.
    I can't able to set an offset in a variable replace from query.
    It's normal? Or I must to set some parameters to make it?
    Thanks in advance.

    Hi,
    What you exactly mean by variable replace - is it
    Formula variable with processing by replacement path  -If yes, then you can set the offset in the replacement path variable. when we create a replacement path variable then we do get the option for setting the offset. Please check that while creating a replacement path variable.
    Thanks
    Dipika

  • "Set offset for Variable" is disabled

    Hi,
    I need to use this option but it is disable (inactive) and I am not able to set offset.
    I am using it for single value variable.
    Please help,
    Thanks

    Hi,
    Can you try create a variable as interval option and offsetoption  will enable.
    Regards
    sivaraju

  • Offset on exit variables on 0FISCPER?

    Hi,
    We are having an IP environment here. A copy function is supposed to roll forward values from one period to the next. Originally I had developed an exit variable pointing to the target period, and I have set up the copy like that:
    From: Target Period -1
    To: Target Period
    Now it seems IP cannot cope with this. If I develop a separate variable for the source period and do like that it works:
    From: Source Period
    To: Target Period
    How can that be? Can I not use an offset for exit variables (type exit, single value, mandatory, no user input allowed), coding in step 1 of the include?
    Many thanks,
    Andreas

    Hi Andreas,
    Why does it seem to you that you cannot use offset in IP? Did you get any error messages - if you did, please post the details. I think you should be able to use offsets to variables, just make sure the variable is created on a standard time characteristic like 0calmonth and is of type 'single value'.

  • Webreporting: Variable offsets

    Hi all,
    i have created a query with a time variable for the characteristic "calendar day"! I am using a range within an sap exit variable "actual calendar month"!
    To get this i restricted a key figure by selecting "range" and use this variable in restriction and offsets. The from offset is "0" and the to offset is "-7" to see the last 7 days. How can i change this offset with command url in web so the user can deside how many days he want the key figure to be restricted??
    Regards,
    M. Erbil

    Hi,
    changing of offset is not possible with the Web API.
    You need to use another approach for this: for example create a formula variable which is input enabled and a user exit variable for calender month. In the user exit use the formula variable to calculate the start month.
    Then you can use the Web API or variable screen for inputing the offset. (formula variable)
    Heike

  • Offset variable

    Hi everybody,
    Can anyone tell about how to create offset variable for sales (steps)?
    Thanks,
    Swetha

    Hi,
    you can achieve this by 0Calmonth info object... but if you want to create variable with offset then steps are:-
    -->Right click on Key Fig.
    >Edit>Drag Date Info object
    -->Right Click on that and Restrict
    -->in Show Select Variable
    -->Click on Create New Variable
    -->Enter Tech name and Description
    -->in Details, select Single and mandatory
    -->Select Value Ranges in stead of Variable
    -->Select that variable in as lower and upper limit
    >transfer it (>)
    -->right click on that and select Set Offset  for Variable
    -->it will prompt two time one for lower and another upper.
    Best Regards
    Obaid

  • How to create a variable in Bex Query Designer

    Hi guys,
    I am writing a query for a travel management report using the SAP Standard cube. I would like to restrict the query so it only shows me the last two months excluding the current month. I have checked BI content in RSA1, but I canu2019t find a relevant SAP standard variable that I can use.
    Can anyone please tell me if I can create my own? And if so, how I can do this.
    Many Thanks
    Forhad.

    lets say u want to display following picture:
    sept$-----august$
    City
    -chicago123$--
    44$
    so in Query designer go to Default values section.
    Bring in Calendar month
    right click calendar month
    and hit Restrict
    now select variable
    use standard sap variable Current Month.
    hit okey
    now select Variable and hit Red button
    Result u restricted current month.
    in columns bring in keyfigure $
    right click and hit edit
    bring in time field calendar month
    right click and hit restrict
    bring in Current month
    right click and select - SET OFFSET FOR VARIABLE
    select -1
    hit okey
    repeat the above process
    and this time select offset = -2
    this way u restricted current month
    but displayed last 2 months for keyfigure values.

  • How to create dummy variable in Webi report in BO 4.0 with Bex query.

    Dear All,
    We have a requirement where we need to overlap multiple tables and based on user selection any one of the table should display in report.
    We are on BO 4.0 and source is BW Bex report, we dont have any Universe.
    To achieve this we plan to have dummy variable with some fix value and use it as report filter & based on selected value in filter the related table should be display.
    We have not found any way to have dummy variable directly in Webi.
    Is their any way we can create dummy variable directly in Webi?
    Thanks v much in advance,
    Regards,

    lets say u want to display following picture:
    sept$-----august$
    City
    -chicago123$--
    44$
    so in Query designer go to Default values section.
    Bring in Calendar month
    right click calendar month
    and hit Restrict
    now select variable
    use standard sap variable Current Month.
    hit okey
    now select Variable and hit Red button
    Result u restricted current month.
    in columns bring in keyfigure $
    right click and hit edit
    bring in time field calendar month
    right click and hit restrict
    bring in Current month
    right click and select - SET OFFSET FOR VARIABLE
    select -1
    hit okey
    repeat the above process
    and this time select offset = -2
    this way u restricted current month
    but displayed last 2 months for keyfigure values.

  • Year to Date using SAP variables

    I've run into a sticking point when trying to create a year to date calculation that works without user entry. The infocube is updated by finance each month (for the previous month) after the final adjustments are made. For this reason, when the query pulls YTD information, it should be cumulating from January 20XX to Current Month - 1.
    The first way that I tried was to use overlapping restrictions: Fiscal Year/Period < Current Fiscal Year/Period AND Fiscal Year = Current Fiscal Year. This worked very well until we reached January. Now the overlapping restrictions return no results since all previous months are not in the current fiscal year.
    I've also attempted using the SAP exit variable 0FYTLFP (Cumulated to Last Fiscal year Period) on Fiscal Year/Period. It is not working, and I assume it is because the last fiscal year period is falling into a different fiscal year. Using it today, the value I get is equal to the value for Jan 2007. The variable seems to first look up the first day of the current fiscal year, saves that as one end of the range, then goes to the previous month to get the other end of the range. I tried offsetting this variable by -1 and the value returned was equal to Dec 2006, but not YTD.
    I'm assuming it must be possible to use the standard SAP delivered objects to create a working YTD calculation that does not require manual entry and cumulates correctly through current period - 1. Does anyone have any suggestions?
    Thanks!

    Dear Adam,
    For Year to Date , We have created a Customer Exit , For working , Create a Variable for 0calday and populate that with from and to value ...to value would be Sy-datum and From value is year starting date. Hope it helps..
    Thanks,
    Krish

  • Using Text Variable in BEx Formula

    Hi Everyone,
    I have two columns in BEx query. First column shows the value based on variable ZFISCPER_M(based on fiscal year/period).
    The other column shows the value for period ZFISCPER_M minus 1 (I have used offset in variable).
    So if my user inputs 009.2009, the first column will show values for 009.2009 and 2nd column will show values for 008.2009.
    In the third column I have formula : 2nd column minus 1st column. I want to use text variable to display column heading. The heading in the 3rd column should be 009.2009.
    Can anyone guide me how to achieve this?
    Regards
    Utpal

    Hi Rakesh,
    My first column shows cumulative balance upto 009.2009; My second column shows the cumulative balance upto 008.2009; In the third column I am trying to display balance for the month - not the cumulative figure. So for the third column my heading should be For the month 009.2009
    But when I substract col 2 - col 1in third column; the text variable finds two different values(009.2009 & 008.2009). Hence it is not displaying any text.
    I hope this makes my question clear.
    Regards
    Utpal

Maybe you are looking for

  • Issue in Updating View

    Hi All, I have created a view as below : Create or replace view test as select employee_id,first_name,last_name,department_id,department_name from (select employee_id,first_name,last_name,d.department_id department_id,d.department_name department_nam

  • E440 CD/DVD Drive Won't Open

    Hello. I bought a Thinkpad Edge E440 and it came yesterday. However the CD/DVD Drive won't open. If it do the paperclip trick, it will, but when I press the button it just makes a few noises and then nothing, if I right click the drive and press ejec

  • Problem with Characteristic cell width

    Hi All, I'm struggling to get the characteristic cell width using the table interface to work correctly. I have coded the following in CHARACTERISTIC_CELL in the table interface : move 'style="width:230px"' to c_cell_td_extend. This appears to work i

  • Pannable ListView in JavaFX 1.3

    So I installed JavaFX 1.3, and my code is compiling just fine, but my items in my listview don't appear to be "pannable"... Can anyone decipher what's going on? Here is my code: ListView {     layoutInfo: LayoutInfo {width: 150 height: 350 }     item

  • Emailed unknown images of a person in an unknown apple store.

    Today I received several emails of Video and Images taken from an iPod in a Apple store from the email address [email protected] Why have I been emailed these?