SAP Exit Variable not returning values - 0CMONTH

Hi all -
I'm running a query in our Q system that has a variable restriction of:
LOW: 0CMONTH - 12
HIGH: 0CMONTH - 1
Because today is April 17, 2007, I expect my result range to be April 2006 - March 2007.
I'm currently getting "No Applicable Data Found" when I run the query, and the text elements don't show any restrictions being passed for 0CALMONTH. If I hardcode the restrictions in my query definition to a range of April 2006 - March 2007, then I get a ton of data.
The variable seems to be working fine in the dev system. It's active in both systems, and the change date and user is still set to SAP circa 2002 in both places. I checked the RREX_VARIABLE_EXIT in both systems and they're identical.
Any idea why this variable isn't working?
Thanks!
Adam

Ok, there's no problem with 0CMONTH. This is the result of staring at something for too long. The restriction on the range was 0CMONTH-1 : 0CMONTH-12 so the query interpreted that as 03/2007 - 04/2006, which is an invalid range. I switched the offsets and now it works fine.

Similar Messages

  • Current Workday SAP EXIT variable not aligned with correct work days

    Hello,
    I am trying to use the Current Workday variable within a report so that the data will only be refreshed when the calendar day is Monday - Friday. Users look at this report every day, but when they get the report on Monday we would like for the date to be restricted to the previous Friday, and then switch back to Monday's date when they view the report on Tuesday. In order to do this we have placed the Current Workday variable from the Calendar Date characteristic with an offset of negative 1, but it is showing Sunday's date when they look at the report on Monday.
    My questions are:
    -Does this variable use the factory calendar that can define the work days?
    -If so, which Factory calendar does it use? I have gone to the Tcode SCAL but I can see there are many different factory calendars and I have no idea which calendar this variable pertains to. I have also transferred the global settings for the factory calendar from the source system, and I see no change within the variable.
    -How can I see the program name behind this SAP Exit variable? My thinking is that I could at least look at the code to see if perhaps I can find out the factory calendar ID the variable refers to from there.
    Any help on this would be greatly appreciated! Until this is fixed I have to manually adjust this report every Monday and Tuesday morning!! Not ideal.

    Hi Kelly,
    I am not sure whether this can be done by an SAP Exit variable.
    But you may try this using a Customer exit variable by using the Function module DATE_COMPUTE_DAY.
    The function module "DATE_COMPUTE_DAY" will return the day by 1 to 7 when you input date.
    Monday : System will return value = 1
    Tuesday : System will return value = 2
    Wednesday : System will return value = 3
    Thursday : System will return value = 4
    Friday : System will return value = 5
    Saturday : System will return value = 6
    Sunday : System will return value = 7
    So input sy-datum to this FM and find the number of day. If it is Monday, the number will be 1.
    If output is 1, then offset date by -3 to that of Friday, else offset by -1 to previous day.
    Hope this helps,
    Regards,
    Hari

  • U201CDisplay not allowedu201D for SAP Exit variables

    Hi All
    I collected some SAP Exit variables under a transport request and moved them to the BI DEV system from sand box systemu2026u2026u2026 when we are trying to use these objects in BIDEV in the query designer the variables are displaying as u201CDISPLAY NOT ALLOWEDu201D for all queries where ever these variables are used and we are not able to use them for drag and drop in the query designer
    I searched forum and find one similar thread but no answer
    Please help on this
    Thanks in advance

    Same here. Do you know how you resolved this issue?

  • Error when using SAP Exit Variable for Current Fiscal Period (0FPER)

    Hi Friendz,
    My requirement is to execute a query for the current fiscal period. I am using the SAP Exit Variable 0FPER.
    I placed this variable on char. Fiscal year/period 0FISCPER.
    When I execute the Query, it is returning the error: No value could be determined for variable ZVBSYCUR; Variables Contain Invalid Values.
    Please give inputs on how to use this variable.
    Regards...
    Ganesh

    Hello Dipika,
    I am also getting the same error.
    ERROR: Variable 0FPER could not be replaced.
    Yesterday we created one customer exit. But this should not affect the SAP Exit right? Till yesterday the 0FPER variable was working fine. I tried re-installing from BI content, but still getting the same error. If anybody has a clue please let me know.
    Thanks,
    Harshal

  • How to see the ABAP Code behind SAP Exit Variables.

    Hi Everyone.
    I was wondering if anyone could help me with the steps to see the ABAP Code behind a SAP Exit Variable.
    Sometime back I remember of going to Transaction SE37 - Function Module and give the Variable name,
    Eg: 0F_ADAY, Hit F4 or something like that and was able to see the ABAP Code/Function Module/Exit written for that Variable.same
    But today I tried to do the same thing to see the code for Variable 0P_FVAEX but I was NOT able to see it.
    I think I am missing something.
    Can someone help me recollect what I am missing.
    Thank You for your time
    NOVICE

    Hi bi novice,
    big sorry for the late reply!
    The following variables are defined in function module RREX_VARIABLE_EXIT as case statement:
    '0CMONTH', '0CWEEK', '0CYEAR', '0CQUART', '0DAT', '0CWD', '0FYEAR', '0FPER', '0FYTCFP',
    '0FYTLFP', '0FYTCD', '0CYTCM', '0CYTLM', '0CYTCD', '0LYTCLD', '0CMONTHT', '0CWEEKT', '0CYEART', '0CQUARTT', '0DATT', '0FYEART', '0FPERT'
    Best regards,
    Andreas

  • Where to find code of SAP-exit variables?

    Hi all,
    SAP is delivering SAP-exit variables like 0P_PPER3 (Last fiscal period) and so on.
    I'm wondering where to find the code of these kind of exits.
    As these are not part of enhancement assignment RSR00001 and then in the include ZXRSRU01 where the customer exit variables are maintained.
    Kind regards, Harjan

    Hi,
    These variables are not exactly the variables which use any particular coding. These are variables that use predefined replacement paths to derive the values. Please see the below documentation for same.
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a5702e09411d2acb90000e829fbfe/content.htm

  • Posting data sap exit variables

    hi
    for posting data 4 sap exit variables are uisng
    0p_keyd1 , d2, d3 and 0p_keyd4
    please let me know what is the major deffirences  and where we can use each one , i mean what scenerios?

    Hi
    0P_KEYDT key date of due date
    0P_KEYD2 key date of posting (from key date of due date)
    0P_KEYD3 key date of clearing (from key date of due date)
    0P_KEYD4 key date of posting (posting date)
    0P_KEYD5 key date of clearing (from key date of posting)
    The variables 0P_KEYD2 (key date of posting) and 0P_KEYD3 (key date of clearing) are determined automatically from the value of the variable 0P_KEYDT (key date of net payment) by SAP exit. You do not need to specify a value for the first two variables named above.
    Hope it is clear and helpful

  • How to find out the customer exit and sap exit variables created provider?

    Hi all,
    How to identify what are all the customer exit and sap exit variables are been created for an info provider. is there any tables which allow us to find out.
    thanxs
    haritha

    Hello haritha,
           SAP Exit and Customer Exit variables are created for  Characteristics and not for individual InfoProviders.
    So whenever the characteristic is used in the InfoProvider, by selection the appropriate variable the exit can be called.
    So the same Exit can be in one or more InfoProviders.
    Hope it helps.
    Thanks,
    Chandran

  • Variable required for 0DOC_DATE, same as the SAP exit variable 0P_KEYDT

    Hi Gurus,
    I am currently trying to create a query based upon the InfoProvider -  FIAP: Line Item (0FIAP_C03).
    For the Characteristic Net Due Date (0NETDUEDATE) there is a SAP exit variable called Key Due Date (0P_KEYDT).
    I need to replicate this variable for 0DOC_DATE, which is what I need to use in this query.
    I do not have any knowledge of ABAP therefore could you please advise;
    1) Whether this variable can be replicated for 0DOC_DATE so that it defaults to system date - 1 day
    2) What steps I need to take to create this variable
    3) What is the exact ABAP code that I will need to do this.
    If there is a variable that already exists for 0DOC_DATE that acts in the same way as 0P_KEYDT then please let me know.
    Thanks
    Nate

    Hello,
    1&3) goto CMOD - create e.g. ZBWVARS. Add RSR00001enhancement. Modify ZXRSRU01 include.
    You need developer key to do that.
    CASE i_vnam.
    WHEN 'ZDOC_DATE,'.
        IF i_step EQ '2'.
          CLEAR l_s_range.
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          l_s_range-low = sy-datum - 1.
          APPEND l_s_range TO e_t_range.
        ENDIF.
    ENDCASE.
    2) In Query Designer create customer-exit variable ZDOC_DATE.
    BR
    Ondrej

  • Subject: Where are SAP Exit Variables and how to use them in Bex Query

    I have seen references to variables:  0cyear (Current Year), 0CALYEAR (current year), oCALMONTH (Current month/year).
    Under 0CALMONTH characteristic or 0CALYEAR I do not see any of the variables, so how does
    one use these variable in the query. For example I want to create a restricted key figure:  Duration restricted by Current calendar year (e.g.  2009 if I am in 2009, 2010 if I am in 2010..).

    Thanks a lot. Actally, I was looking in my production system and under varaiables I did not find any SAP Exit variables,
    but in development envrionment I do see some.
    Why will it not show me these variables in production? Is it because:
    1. Some special premssion is required to view this type of variable
    or
    2. THese varaiables were not installed from Business Content
    It is hard for me to beleive, it is permission issue.

  • How to view output of SAP Exit variables

    Hi All,
    I want to view the data of standard SAP Exit variables. For example, for displaying the current date, SAP has provided some variables to use in the report. Can you please guide me where to get all the variables and how to see the output of these variables.
    Thanks.

    Hi,
    1) In Business Content all the variable will available.
    2) If you will proper standard variable in your report, there is no need to check still you need to check then use RSRT tcode, give the report name and execute with EXECUTE+DEBUG option.
    3) for example current calender day data need in report then standard exit variable to you character sticks or depend upon same logic directly use in your key figure, in this case for that key figure value always current day date.
    4) it may helps you and elaborate your idea and explore your issue for further discussion.
    Thanks & Regards,
    Srinu.Raport

  • How to Find Code for SAP Exit variables.....

    Gurus:
    The SAP Business Content Query "0FIAR_C03_Q0005" uses several BC variables of 'SAP Exit' type for determining "Date" values. I would like to see the code used in these variables. Can anyone please suggest how I can find it?
    For examople, the variable on Posting Date is "0P_KEYD2". What is the ABAP code for this? Please give me the Steps..!
    Thanks in Advance......PB

    Generally SAP doesn't give access to the code behind SAP exit variables, but you can find what the variable is doing using help documentation. Here is some info i saw on SAP help for your variable
    0CWD Current workday
    0DAT Current calendar day
    0P_KEYDT Key date of due date
    0P_KEYD2 Key date of posting (from key date of due date)
    0P_KEYD3 Key date of clearing (from key date of due date)
    0P_KEYD4 Key date of posting (posting date)
    0P_KEYD5 Key date of clearing (from key date of posting)

  • The LOV modal window could not return value to the base page

    when practicing the "create1" task in tutorial, met an issue.
    when create an employee, manageName is a messageLovInput and managerID is a messageTextInput.
    The issue is the LOV modal window could not return value to the mangerName, but can return to managerID .
    If I remove the data boud porperties of the managerName (the bc4j porperties of view name-EmpFullVO and view attribute-MgrName), the lov works fine.
    What is the reason?

    James I would suggest to read the LOV topic in OAF developers' guide. Lov mappings are responsible for bringing pop up values to base page in LOV.
    --Mukul                                                                                                                                                                                                                                                                                                                                                   

  • BEx SAP-Exit Variables

    Where do I find documentation on BEx SAP-Exit Variables. What the Exit does and so on?

    Try this link.
    http://help.sap.com/saphelp_nw70/helpdata/en/36/df22419e2ab167e10000000a155106/frameset.htm
    The variables are documented as per BI Content.
    -Saket

  • SAP Exit Variables changes using FM RREX_VARIABLE_EXIT

    Hi BW Group:
                I am trying to made some modifications on Dates fields and for that I created variables as SAP Exit.
    In the code of the standard FM RREX_VARIABLE_EXIT appear a part to include the code for the new variables as RSVAREXIT_XXX_YYY.
    Does any one in the group use a SAP Exit variable before? Do you need to code in this FM?
    Thanks in advance.
                      Norge

    Hi,
      Please chk this URL , hope it may help u .
    http://help.sap.com/saphelp_bw21c/helpdata/en/f1/0a56a7e09411d2acb90000e829fbfe/content.htm

Maybe you are looking for