Variable offset for date - a year ago

I have this sales report with the following columns:
1. Current Day Sales
2. Month to Date Sales (this Year)
3. Month to Date Sales (last Year)
I'm using a range variable for 0CALDAY for column 2 (Month to Date Sales this year).  i'm having problem with column 3.  how is it possible such that the date is automatically assigned to last year's values?  using offset would mean -365, however, this may not work during leap years?
please help

Hi,
Refer the 'Examples for using Variables' in 'Bex Query designer' of sap help..
Examples for Offset Variables
You want to use a query to carry out a comparison of two years.
Year Comparison
You want to compare the costs of a year of your choice with the costs of the previous year.
       1.      In the Query Designer, create a new structure and add a new Selection for each year that you require.
       2.      Only use one key figure (for example revenue) in this example query. Add this key figure to the filter or add it to the selection.
       3.      Use a characteristic value variable for the characteristic Calendar Year (0CALYEAR):
Select the characteristic value variables for Calendar Year and, from the context menu (right mouse click), choose New Variables. The Variables Wizard appears.
If you always want to reference to the current year automatically, use the SAP Exit variable 0CALYEAR (or as appropriate for another time characteristic).
       4.      Move the defined characteristic value variable into the selection.
       5.      Select the characteristic value variable and from the context menu (right mouse click), choose Restrict.
                            a.      Select the characteristic value variable and from the context menu, choose Enter Variable Offsets.
                            b.      Enter –1 as the offset and choose OK.
       6.      Choose OK.
       7.      Enter a description.
Example: Use the name of the key figure, for example, revenue, for the name and use a text variable for the name of the calendar year. See Using Text Variables.
When creating a new text variable, enter Replacement Path as the processing type, and choose calendar year 0CALYEAR as the characteristic with display as key.
       8.      Create a second selection with the same characteristic value variable and do not set an offset here.
Also use a text variable in the description in this case.
       9.      Move the required characteristic into the rows.
   10.      Save the query.
After execution, the query should appear as follows:
Variable screen entry: 2002 (or no entry when using the SAP Exit Variable).
Year Comparison
A characteristic
Revenue 2001
Revenue 2002
Value 1
100.000
  90.000
Value 2
200.000
180.000
Value 3
300.000
400.000
Comparison with Cumulative Previous Year Period
For example: You want to compare the periods 1-8 of a particular year with the same periods for the previous year.
       1.      Create a new structure in the Query Designer and add a new Selection.
       2.      Move a key figure, for example, Revenue, into the selection.
       3.      Use a characteristic value variable for the characteristic Fiscal Year/Period (0FISCPER):
Select the characteristic value variables for Fiscal Year/Period and from the context menu, choose New Variable. The Variables Wizard appears.
Use the SAP Exit variable Current Fiscal Year/Period (0FPER) if you always want to reference to the current year.  If you set the variable as entry-ready in the Variable Editor, after executing the query, the variable screen then appears with which you can change the default values were necessary.
       4.      Move the characteristic value variable, such as OFPER, into the selection.
       5.      Select the characteristic value variable and from the context menu (right mouse click), choose Restrict.
       6.      Under Selection, choose Value Area and choose the tab page Variables.
       7.      Add the characteristic value variable, for example 0FPER, to the selection once again for the second value of the interval.
       8.      Select the characteristic value variable and from the context menu, choose Enter Variable Offsets.
                            a.      As an offset, enter -3 as the from value and 0 as the to value. Choose OK.
                            b.      Choose OK.
       9.      Enter a description, such as Revenue for current year.
   10.      Choose OK.
   11.      Select the selection and from the context menu, choose Copy and then Paste.
   12.      Now select the second selection and from the context menu, choose Edit.
   13.      Select the characteristic value variable and from the context menu (right mouse click), choose Restrict.
   14.      Select the characteristic value variable again and from the context menu (the right hand button), choose Enter Variable Offsets.
                            a.      As an offset, enter -15 as the from value and -12 as the to value. Choose OK.
                            b.      Choose OK.
   15.      Enter a description, for example Revenue for previous year.
Also use a text variable in the description in this case.
   16.      Choose OK.
   17.      Move the required characteristic into the rows.
   18.      Save the query.
After execution, the query should appear as follows:
Variable screen entry: 01. 2002 to 08. 2002
Comparison with Cumulative Previous Year Period
A characteristic
Revenue 01. – 08. 2001
Revenue 01. – 08. 2002
Value 1
100.000
  90.000
Value 2
200.000
180.000
Value 3
300.000
400.000
Two text variables replaced with characteristic values were used for the descriptions here. One is filled with the from-value for the column with an offset of 0 and a length of 3, the other filled with the to-value with an offset of 0 and a length of 7. You can find additional information under Example for Variable Replacement.
Comparison of Cumulated Values for Two Years
You may want to compare the cumulated values up to the current period of the current year with those of the previous year.
For this example, use the variable 0FPER (current fiscal year period) and the variable 0P_FPER (your chosen fiscal year period). You use these two variables to set the interval limits.
       1.      In the Query Designer, create a structure with two selections:
¡        1. selection: Cumulative Amount for current year
¡        2. selection: Cumulative amount for previous year
       2.      With the first selection (cumulative amount for current year) , move the time characteristic 0FISCPER into the selection and select it.
       3.      Choose Restrict from the context menu (right mouse click).
       4.      Choose Value Area between as the selection and go to the tab page Variables.
       5.      Double click to choose the variable 0P_FPER as the from value and variable 0FPER as the to value. The result is an interval from the chosen period to the current period.
       6.      Define the second selection (cumulative amount for previous year) and proceed as for the first selection.
¡        Add the variable 0P_FPER as the from value and variable 0FPER as the to value here.
¡        Set an offset of –12 for both the from and the to values:
Select the interval and from the context menu (right click), choose Enter Variable Offsets. Enter –12 for each.
The result is an interval that has been moved 12 periods ahead.
       7.      Add the key figures and additional characteristics for the query.
After executing the query, you get a variable screen for the variable 0P_FPER. You need to enter the start period in the current fiscal year.
You can also suppress this entry by deactivating the indicator Entry-ready in the Variable Editor for the variable 0P_FPER and entering a default value (for example, 001.2001 for 2001). You only have to change this value once per year.
You have now defined a query that compares the cumulative values for two years.
The variables with SAP Exit delivered by SAP have the following behaviors:
Variable 0FPER (current fiscal year period): Displays the values of the current fiscal year period.
Variable 0P_FPER (any fiscal year period): Displays the values of any fiscal year period. You can set the fiscal year period in the variable screen when executing the query in any way you require.
Variable 0FYTCFP (fiscal year up to current fiscal year period): Displays the values of the first period up to the current period of the current fiscal year.
Variable 0FYTLFP (fiscal year up to previous fiscal year period): Displays the values of the first period up to the previous period (current period –1).
You need to use the variables 0FPER and 0P_FPER in the above example for the comparison of cumulative values for two years.  When using the variables 0FYTCFP and 0FYTLFP, only values for one month are displayed for year transitions with an offset of –12.
Regards,
Prema

Similar Messages

  • Problem with variable offset for 0CALMONTH

    Hello Community,
    I have a problem with using variables offset for time characteristic 0CALMONTH
    Let's say my current query looks like this:
    ...................01.2006..........02.2006..........03.2006   (0CALMONTH)
    Sales ..............100..................125................200   (Keyfigure)
    What I want do now is to add a previous year comparison. So that it should look this way:
    ...................01.2006..........02.2006..........03.2006   (0CALMONTH)
    Sales ..............100..................125................200   (selected months)
    LY_Sales...........50..................100................100   (selected months - 12)
    (LY_Sales should show figures of 01.2005, 02.2005 and 03.2006 in this example)
    I used new selection for LY_Sales with variable offset for 0CALMONTH -12 but that didn't work. Figures in second line are zero. The desired figures would show up (if I expand the selected time intervall wide enough) in 01.2005, 02.2005 and 03.2005 but that's of course not what I want.
    Please help if you can!
    Regards,
    Ulrich

    Hi,
    We can get an an other way by using CELL editor caoncept.
    First create teh query like this:
    ...................01.2006..........02.2006........12.2006.....01.2005...02.20005...12.2005  Sales ..............100................125..............200.............50...........100.........100 
    Sales ..............100................125..............200.............50...........100.........100
    Then hide the 2005 years' kf:
    ...................01.2006..........02.2006........12.2006
      Sales ..............100................125..............200 
    Sales ..............100................125..............200
    Though the call editor concept overwrite the second rows(selection) content with hidden columns of second row(selection) one by one .i.e first cell of 2nd row will be overwritten by 13 th cell of second column.similarly second cell of 2nd row will be overwritten by 14 th cell of second column........
    First row(selection) : Cal year Charactertic with restriction 2006.
    second row(selection) : Cal year Charactertic with restriction 2005.
    With rgds,
    Anil Kumar Sharma .P

  • Variable Offset for Customer Exit??

    Hi,
    is it possible to have a variable offset for customer exit time variables?
    E.g. I have a variable current month but can I also create a one-year offset of that?
    In our system that doesn't work (but also the current month variable doesn't work...)
    thanks
    Sabine

    Hi,
    As it is mentioned by Mr.Voodi,it definately works.
    You only has given the answer for your problem .i.e you need to make sure the Customer exit variable is working proper.So take a look on the code used for it.
    With rgds,
    Anil Kumar Sharma .P

  • I bye Element 11 for over one years ago, have the DVD with serienumber. Have now an solidstate disk in my DVD port. So I will download Element 11 from you homesite do you have the link?

    I bye Element 11 for over one years ago, have the DVD with serienumber. Have now an solidstate disk in my DVD port. So I will download Element 11 from you homesite do you have the link?
    MVh
    Ulf Garpnell 

    PSE 10, 11, 12 - http://helpx.adobe.com/photoshop-elements/kb/photoshop-elements-10-11-downloads.html
    PE 10, 11, 12 - http://helpx.adobe.com/premiere-elements/kb/premiere-elements-10-11-downloads.html

  • Hello. I have a problem with the iphone. I had the misfortune of Smader it for a half years ago. but now all my pictures away. and I think it is a security various measures. what should I do?

    hello. I have a problem with the iphone. I had the misfortune of Smader it for a half years ago. but now all my pictures away. and I think it is a security various measures. what should I do?

    ckuan wrote:
    iCloud pushes all your photos to the My Photo Stream album on your devices and computers, and manages them efficiently, so you don’t run out of storage space.
    Your iOS devices keep a rolling collection of your last 1000 photos in the My Photo Stream album. From there, you can browse your recent photos or move the ones you like to your Camera Roll or another album to keep them on your device forever.
    (Here's that part I'm bolding for you to reference): Because your Mac and PC have more storage than your iOS devices, you can choose to have all of your My Photo Stream photos automatically downloaded. In iPhoto or Aperture preferences on your Mac, select Photos (or Photo Stream) > My Photo Stream > Automatic Import. All of your photo stream photos will be imported into your Events, Projects, Photos, Faces, and Places folders in iPhoto or Aperture. On your PC with My Photo Stream enabled in the Control Panel, all of your photos will be imported into C:\\Users\<user name>\Pictures\iCloud Photos\My Photo Stream. For iCloud Control Panel 2.0 to 2.1.2 users, the path isC:\\Users\<user name>\Pictures\Photo Stream\My Photo Stream .
    Exactly.  It keeps a collection of the most recent 1000 photos in your Photostream Album on your iOS device.  That's the limit of the displayed images on an iOS device.  Not the upper limit of storage.  It's like the call history.  You can have more than 100 calls, but only the most recent 100 calls show on the device. You can still get your entire call history from your wireless carrier.  And you can still download all of your Photostream photos from Photostream using iCloud Control panel on a PC, or the iCloud option in System Preferences on a Mac.
    iCloud: My Photo Stream and iCloud Photo Sharing limits
    http://support.apple.com/kb/HT4858
    http://help.apple.com/icloud/#/mmc0cd7e99
    My Photo Stream upload limits
    The My Photo Stream limits below are established based on anticipated upload patterns. Currently, My Photo Stream upload limits are as follows:
    Uploads to My Photo Stream per hour: 1000 photos
    Uploads to My Photo Stream per day: 10,000 photos
    Uploads to My Photo Stream per month: 25,000 photos
    If you exceed one of these limits, your uploads to My Photo Stream will be paused temporarily and you may see a notification message on your device. Your uploads will resume automatically after you no longer exceed one of the limits, such as in the following hour or on the following day.
    You can upload 10,000 photos in a single DAY.

  • Hello. the problem is that since i got my blackberry for about a year ago it always crash.

    hello. the problem is that since i got my blackberry for about a year ago it always crash. sometimes it just switch off in middle of talking, sometimes all the memory deletes autometicly. i will be really happy if you will be able to help me.i think its just a faulty phone. thanks any way.
    Message Edited by MichelleK on 06-17-2009 08:41 AM

    Hi and Welcome to the Forums!
    To provide help, we need to know some specifics:
    What specific BB Model is it?
    What OS level is the BB running?
    Are you running any additional add-on applications?
    Do you properly close applications when not in use?
    How long can you go between crashes?
    That should be enough to get us going to help you.
    Cheers!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Variable Offset for Fiscal Year Not Working

    Hello,
    My fiscal year variable offsets are not working. I have an input-ready query setup with 3 restricted key figures.
    1) Restricted by FY Variable 0P_FYEAR, 0VTYPE = 20, KF = 0QUANTITY
    2) Restricted by FY Variable 0P_FYEAR (variable offset -1), 0VTYPE = 20, KF =0QUANTITY
    3) Restricted by FY Variable 0P_FYEAR (Variable offset -2), 0VTYPE = 10, KF= 0QUANTITY
    I have in my filter selections Fiscal Year Variant = K4
    Rows have 0STKEYFIG
    Columns have 0FISCPER3 (Posting Period) and the 3 Restricted Key Figures.
    When I run the query, the offsets are not being accepted.  Only the selected FY variable.  The first and second restricted kfs show 2009 data and not 2009, 2008 as it should.  Has anyone else had issues with this?  I am not using 0FISCPER but 0FISCPER3 but I am not sure how that would make a differnce.
    I have created new variables, tried to do positive offsets, tried to include and exclude values int the filter to no avail.
    Thanks,
    Cherie

    I kept my variable offsets in the restricted key figure and they aren't working.  When I just put fiscal year in the column and put the 0P_FYEAR and 0P_FYEAR-1 I get the 2 columns and the offsets filter through just fine.  It seems to only be messing up when they are in the restricted key figures themselves.

  • Variable Offsets for Weeks

    We have a custom created infoobject for fiscal week, which is basically week number within fiscal variant, fiscal year, and fiscal period. So fiscal period 1 contains weeks 1-4, period 2 contains weeks 5-8, etc.
    Our problem is in the use of variable offsets in query definitions. If we use 0FISCPER, BEx knows that the "-1 offset" for 2005001 is 2004012, not 2004999. Similarly, for 0CALWEEK, the week before 200501 is 200452, not 200499. So for our custom infoobject, how do tell BEx that the fiscal week before 200501 is 200452? Anyone know how we can set this up?
    Thanks in advance for any info you can provide.
    Rachel McGregor

    Yes, we figured we would probably need to do something in the user exit. We did not create the infoobject with reference to anything else since we added some custom attributes.
    What exactly should we do in the user exit? We want to create a structure with a whole bunch of selections for week number, week number-1, week number-2, week number-3, etc. all the way back to week number-104 (i.e. we want 2 years' worth), with a single prompt to the user for week number.
    Any suggestions?
    Rachel

  • Sql queries for date and year

    Hi Friends,
    I Have a view named - item_sales with 4 column
    Item code
    Item name
    Transaction_YYYYMM (Date stored in YYYYMM format )
    QTY_RECEIVED
    QTY_SOLD
    Sample data is
    ITEM_CODE ITEM NAME  TRANSACTION_YYYMM     QTY_RECD    QTY_SOLD
    AX             TSHIRT                201307                             3000               2000
    AX             TSHIRT                201308                             2000               500
    AX             TSHIRT                201309                             1000              3000
    CX             XLSHIRT              201307                              3000             2000
    CX             XLSHIRT              201308                              3000             2500
    CX             XLSHIRT             201309                               3000             2500
    EVERY MONTH END I WILL RUN THIS QUERY TO FIND OUT THE BELOW DETAILS
    1. TO FIND ITEM_NAME WISE  -  QTY_RECEIVED AND QTY_SOLD ( FOR CURRENT MONTH - EXAMPLE SEP )
    2. TO FIND ITEM_NAME WISE  -  QTY_RECEIVED AND QTY_SOLD   (FOR CURRENT YEAR EXAMPLE FROM JAN TO SEP )
    OUTPUT FOR SEPTEMBER MONTH LOOK LIKE THIS
                                                            SEP-MONTH                              JAN TO SEP
    ITEM_CODE   ITEM_NAME    QTY_RECEIVED  QTY_SOLD      QTY_RECEIVED  QTY_SOLD
    AX                TSHIRT                   1000                 3000                 6000                 5500
    CX                XLSHIRT                  3000                2000                 9000                 7000
    Pls advise me how to write queries for this
    Rdk

    Just FYI, you *can* edit your own posts, you know
    Rdk wrote:
    Transaction_YYYYMM (Date stored in YYYYMM format )
    First "problem". Don't store dates as string. Store them as dates. It will save you so much headache don't the road you won't believe it.
    True, this is a view, so maybe not as critical - assuming the underlying *DATA* is actually a date.
    1. TO FIND ITEM_NAME WISE  -  QTY_RECEIVED AND QTY_SOLD ( FOR CURRENT MONTH - EXAMPLE SEP )
    2. TO FIND ITEM_NAME WISE  -  QTY_RECEIVED AND QTY_SOLD   (FOR CURRENT YEAR EXAMPLE FROM JAN TO SEP )
    So yeah, based on these requirements, I'd recommend you make that column a DATE, not a string. Dates are easier to parse for date-related logic - such as month by month as you need here.
    Using that, here's one way to do it:
    with w_data as (
          select 'AX' item_code, 'TSHIRT ' item_name, to_date('20130701','yyyymmdd') trans_dt, 3000 qty_recd, 2000 qty_sold from dual union all
          select 'AX'          , 'TSHIRT '          , to_date('20130801','yyyymmdd')         , 2000         , 500           from dual union all
          select 'AX'          , 'TSHIRT '          , to_date('20130901','yyyymmdd')         , 1000         , 3000          from dual union all
          select 'CX'          , 'XLSHIRT'          , to_date('20130701','yyyymmdd')         , 3000         , 2000          from dual union all
          select 'CX'          , 'XLSHIRT'          , to_date('20130801','yyyymmdd')         , 3000         , 2500          from dual union all
          select 'CX'          , 'XLSHIRT'          , to_date('20130901','yyyymmdd')         , 3000         , 2500          from dual
       w_base as (
          select item_code, item_name, trans_dt, qty_recd, qty_sold,
                 sum(qty_recd) over (partition by item_code, trunc(trans_dt, 'MM')) mm_recd,
                 sum(qty_sold) over (partition by item_code, trunc(trans_dt, 'MM')) mm_sold,
                 sum(qty_recd) over (partition by item_code, trunc(trans_dt, 'YY')) yy_recd,
                 sum(qty_sold) over (partition by item_code, trunc(trans_dt, 'YY')) yy_sold,
                 row_number() over (partition by item_code order by trans_dt desc) rnum
            from w_data d
    Select item_code, item_name, mm_recd, mm_sold, yy_recd, yy_sold
      from w_base
    where rnum = 1
    IT ITEM_NA    MM_RECD    MM_SOLD    YY_RECD    YY_SOLD
    AX TSHIRT        1000       3000       6000       5500
    CX XLSHIRT       3000       2500       9000       7000

  • Variable Required For Date Difference In Ac Create Date

    Respected All;
    I am stuck in a variable for couple of weeks.
    Please help me to get the difference in dates coming under the Ac Create Date Column for respective Request Id's.
    I want the result in the Delay Column (Variable Required for the result of delay).
    For eg:-
    A
    B
    C
    D
    E
    F
    G
    Request Id
    Ac Create Date
    Act Role Proper Name
    Delay Simplified(Variable Required
    Result In Delay
    Act Activity Name
    1
    000000000560492
    7/9/2014
    Debt Recovery - Archive
    =Ac Create Date C2 - Ac Create Date C1
    5
    Resolved
    2
    7/14/2014
    Call Centre - Back Office
    =Ac Create Date C3 - Ac Create Date C2
    1
    Forward
    3
    7/15/2014
    OWN Shop - AL Rayyan
    =Ac Create Date C4 - Ac Create Date C3
    7
    Resolved
    4
    7/22/2014
    Call Centre - Back Office
    = Ac Create Date C5 - Ac Create Date C4
    0
    Customer Feedback
    5
    7/22/2014
    Call Centre - Back Office
    "NA"
    NA
    Closed FC
    6
    000000000561010
    7/1/2014
    Call Centre - Back Office
    =Ac Create Date C7 - Ac Create Date C6
    1
    Forward
    7
    7/2/2014
    FOLLOW UP TEAM
    =Ac Create Date C8 - Ac Create Date C7
    0
    Resolved
    8
    7/2/2014
    Call Centre - Back Office
    =Ac Create Date C9 - Ac Create Date C8
    1
    Forward
    9
    7/3/2014
    R_RO
    =Ac Create Date C10 - Ac Create Date C9
    12
    Return - Wrong Assignment
    10
    7/15/2014
    Call Centre - Back Office
    =Ac Create Date C11 - Ac Create Date C10
    1
    Forward
    11
    7/16/2014
    IT CRM & Provisioning
    =Ac Create Date C12 - Ac Create Date C11
    0
    Reassignment
    12
    7/16/2014
    IT CRM & Provisioning
    =Ac Create Date C13 - Ac Create Date C12
    1
    Follow Up
    13
    7/17/2014
    IT CRM & Provisioning
    =Ac Create Date C14 - Ac Create Date C13
    0
    Reassignment
    14
    7/17/2014
    IT_Comptel
    =Ac Create Date C15 - Ac Create Date C14
    3
    Resolved
    15
    7/20/2014
    Call Centre - Back Office
    =Ac Create Date C16 - Ac Create Date C15
    0
    Recategorization
    16
    7/20/2014
    Fiber Call Center-Back Office
    =Ac Create Date C17 - Ac Create Date C16
    0
    Forward
    17
    7/20/2014
    IT CRM & Provisioning
    =Ac Create Date C18 - Ac Create Date C17
    1
    Resolved
    18
    7/21/2014
    Fiber Call Center-Back Office
    =Ac Create Date C19 - Ac Create Date C18
    0
    Resolved
    19
    7/21/2014
    Fiber Call Center-Back Office
    =Ac Create Date C20 - Ac Create Date C19
    0
    Customer Feedback
    20
    7/21/2014
    Fiber Call Center-Back Office
    "NA"
    NA
    Closed
    I have used Delay =DaysBetween([Ac Create Date];Previous([Ac Create Date]))
    but however I'm not getting the results required..
    Can someone please help me out with the variable.. For better understanding of the question kindly copy paste the table in excel and check it out, but please please help me out !!!
    Thanks In Advance

    Hi Fahad,
    Try Below-
    Create variable-
    V_NextDate=If RelativeValue([Request Id];([Request Id];[Ac Create Date];[Act Activity Name];[Act Role Proper Name]);1)=[Request Id] Then ToDate((RelativeValue([Ac Create Date];([Request Id];[Ac Create Date];[Act Activity Name];[Act Role Proper Name]);1));"MM/dd/yyyy")
    In Delays column put below
    =If IsNull(DaysBetween([Ac Create Date];[V_NextDate])) Then "NA" Else DaysBetween([Ac Create Date];[V_NextDate])
    See sceenshot

  • New mail when opened shows different mail for over one year ago!!

    When a new message arrives, opening it shows a message from over one year ago! I even forwarded a corrupted message to another account and it was the same old message. However, on MobileMe and my IPhone, the new message is correct.
    What's going on?

    Hi kristaleigh04
    -- What is the OS that you're using?
    -- Did you try to Serialize the product when it pops up 30 days trial message?
    you are also welcome to contact our support team at http://adobe.ly/yxj0t6

  • How to use the same variable value for data entry and the planning sequence

    Hi,
    the scenario is the following:
    Using the WAD template a user enters cost center plan data. The cost center is selected by the chosen value for the variable "V1".
    Afterwards he shall push a button which starts a planning sequence (including saving the data and further functions). This planning sequence uses a filter that also contains the variable "V1".
    What or where has it to be defined that the planning sequence uses automatically the same value for the variable "V1" as selected for the data entry?

    You have to define in the planning function. The planning sequence is only a sequence and it read the planning functions underneath it.
    Ravi Thothadri

  • Variable offset for calday is not working - urgent

    Dear experts,
    I need to create RKF on PO count by 0calday. I need PO count for last 3 cal days in columns.
    I have a standard variable on 0calday, characteristic type, single value, mandatory.
    I have created 3 RKF -having offesets:  0calday, 0calday-1, 0calday-2.
    I can see three columns with date headers correcly.
    But I see only data in 0calday column. I have data for previous 2 days, but those columns are not showing any data.
    Please help me in fixing it.
    Regards
    Lisa

    When I am trying to change variable during navigation: I am getting following error
    Diagnosis
    The Can be changed in query navigation property has been set for variable Z_OD, characteristic 0CALDAY. However, the variable is used in the query in such a way, that the system is unable to apply this change-option.
    This can, for example, occur under the following conditions:
    Characteristic 0CALDAY is filtered by additional restrictions (the restrictions must be joined using an OR-connection)
    A second characteristic, which is restricted by a variable, is compounded to charcteristic 0CALDAY.
    Variable Z_OD is a hierarchy node variable, but the hierarchy has not been determined uniquely.
    A variable can be changed during query navigation only if it is used exclusively in a drilldown-characteristic, and there are no further restrictions to the characteristic other than this variable. There must be no additional characteristics with variables compounded to the characteristic you are working with. For variables for hierarchy nodes, the hierarchy must be determined uniquely and agree with the set display hierarchy.
    Also, if the characteristic value is moved, for example (Z_OD - 1), the variable is no longer able to be changed when navigating queries.
    System Response
    The entry Z_OD Can be changed during query navigation is not applied.
    Procedure
    Check the query definition.

  • Variable Code for Date

    Requirement: I have Posting Date for all Objects Now i want to create the <b>Variable “PSTVAR”</b>such that the variable will populate <b>only the entries with
    User Input Posting Date(During Report Execution) >=greater than equal to Posting Date(OPSTDATE). .</b>
    <b>Example</b> POSTING DATE = 03032007
    POSTING DATE = 01012006
    IF USER INPUT DATE = 01012007
    Then only POSTING DATE = 03032007 will show up in report
    write the code in <b>customer exit cmod in BI</b> if CAN CORRECT THE CODE WOULD BE GREAT
    Data: l_s_var_range Type rrangeexit.
    L_d_PSTDATE Type /bio/oipstdate.
    L_d_PSTDATE Type /bio/oipstdate.
    IF I_STEP=2.
    READ TABLE I_t_var_range INTO l_s_var_range WITH KEY VNAM = ‘PSTVAR’.
    If L_d_PSTDATE >= PSTVAR’
    L_d_PSTDATE=l_s_var_range-low(0)
    Please help me modify the above code with logic or with some extra line of code to solve my requirement. Appreciate all of you for help in advance
    Thanks
    Soniya Kapoor

    This can be done without any coding.
    If you are using the Web, there is a Boolean operator dropdown for each variable. Enter "1/1/2007" for the Posting Date variable value (in your example), then change the operator to ">=". (There is probably even a way to default to this.)
    If you are using Excel, enter "1/1/2007" for the Posting Date variable value, then right click and choose "Options" and ">=".
    Hope this helps...
    Bob

  • Variable binding for Date type over ODBC

    Hi I'm trying to parameterize a DATE variable over ODBC. Over JDBC I have no problem doing so in Java but on the ODBC (C-code) I had problem figuring out how to deal with the expression, *{ts '2009-02-23 09:02:10'}.* But eventually based on SQL tracing on the DB side, I found that it gets translated to to_date('2009-02-23 09:02:10', 'YYYY-MM-DD HH24:MI:SS'). So now I can attempt to parameterize. But that's the side story.
    My question is, do I gain any performance by doing the following (cut and paste from SQL trace)
    SELECT ROWID, reservation_id, job_type, job_start
    FROM reservation_job_queue
    WHERE job_start &lt;= to_date(:1, 'YYYY-MM-DD HH24:MI:SS')
    ORDER BY job_start
    as compared to the original
    SELECT ROWID, reservation_id, job_type, job_start
    FROM reservation_job_queue
    WHERE job_start &lt;= to_date('2009-02-23 09:02:10', 'YYYY-MM-DD HH24:MI:SS')
    ORDER BY job_start
    Thanks!
    Edited by: pidge66 on Feb 23, 2009 6:27 AM
    Edited by: pidge66 on Feb 23, 2009 6:30 AM

    If I understand you correctly, you want to be able to enter some arbitrary dates in the where-clause of your application.
    Thus, to use the first form with a bind variable is key for performance of your application.
    And yes, you will gain a lot of performance when using to_date(:1, 'YYYY-MM-DD HH24:MI:SS') instead of to_date('2009-02-23 09:02:10', 'YYYY-MM-DD HH24:MI:SS').
    Why not using bind variables is evil you can read best over at AskTom

Maybe you are looking for