Date variable in BEx

Hello everyone.
In my report I have a characteristic type date.
I made two date variables. In general properties I set them "optional".
I restricted characteristic by these variables (from - to).
But on the selection screen one of these variables is obligatory.
What's wrong?

I have activated two variables from business content.
0P_SDO - Start Date (Optional)
0P_EDO - End Date (Optional)
I have restricted (Value Ranges - Between) my characteristic (0DOC_DATE) by these variables.
Result is the same
On the selection screen I have to fill End Date - mandatory.

Similar Messages

  • Not able to access the Date variable in Bex report after SP upgrade

    Hell Experts,
    We have upgraded the support pack to 27 and after that we are not able to access date variable in Bex report.
    We are not able to restrict the Posting date on variable, we are getting the message "Operation failed! No detailed error information from backend available".
    Thanks
    Chetan

    Hi,
    carry out basic checks like RSRV for the field,query ,Infoprovider on which this query is based..
    Check whether there is any in consistent value in the posting date..
    check whether objects are active correctly..
    else serach for SAP note or raise OSS to SAP..
    Thanks and regards
    Kiran

  • Calendar prompt for Date variable from bex

    Hi All,
    I have a Bex query where I have a variable on 0CALDAY
    - Customer exit (i_step = 1 to populate with current date)
    - Single value
    - Mandatory
    I created universe on this query and in webI selection screen i do see the variable prompt.
    I am not able to see the current date populated automatically since exit values are not populated to WebI at runtime.
    My problem is that in WebI selection screen we get list of date values from the info provider instead of Calendar prompt
    where user can enter the values directly.
    I am currently on BO XI 3.1 SP3.
    Is there any specific setting in Universe or bex query which is required to get this Calendar prompt instead of list of values for dates?
    Note: When we were on SP1 the universe created then had same variable from bex and it still shows us Calendar prompt but ever since we upgraded to SP3 for the query splitter functionality we not able to get the calendar prompt for date variable in new universe we create
    Thanks
    Ritesh

    Yep.
    Now tell me how you want to show that Prompt @ WebI report level.
    My problem is that in WebI selection screen we get list of date values from the info provider instead of Calendar prompt
    where user can enter the values directly. Exactly, i didn't get this??
    @Prompt:
    You have flexibility to show options like:
    Mono/Multi: User can select Single value or Multiple.
    BW Variable: Same we have (Single/Multiple)
    Free/Constrained: User can Enter his/her value directly or No change option.
    BW Variable: By defalut you will get this, once you made it to Optional input.
    Persistent/Not_Persistent: Refreshed report has to show last selected value means use Persistent otherwise Not_P.
    By seeing the Prompt syntax , I can say your Variable is after Customer Exit, Correct??
    Workaround for your Problem is:
    <FILTER KEY="ZV_DATE"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Date (Previous Day)','A','Date\LovDate (Previous Day)Base',mono,primary_key)"/></CONDITION></FILTER>
    You have to remove that Date class and objects from prompt syntax. Because of that it showing up LOV's not calendar.
    Like:
    <FILTER KEY="ZV_DATE"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Date (Previous Day)','A',',mono,primary_key)"/></CONDITION></FILTER>
    Why, It should be blank??
    Because Date needs no class\object to show up, by default you will get Calendar on the fly.
    Hope you got my point.
    Thank You!!

  • User exit for Date variable in Bex

    Hi All,
    I have a report based on an ODS which displays employee and its records. 'BegDate' is the only field in the variable selection screen. The requirement is to display all the records for which the 'Begdate' should be less than equal to the given date(in the variable selection screen). Obviously, I need to go with a user exit in background. I want to know -
    1. What should be the properties that has to be set to the date variable ?(I need only one selection box and not two which we generally have for ranges)
    2. Based on the date, how should I fetch the records? I need to fetch it from the active table of my ODS ?
    3. What is the correct syntax? I am getting some different results through my exit. Please specify the exit code clearly.
    Regards,
    Srinivas

    Why do you want to have an exit for this? As far as I understood you have a variable which contains a single date and you want to display all entrys where a given InfoObject has a value less than or equal to the value.
    You can do this the following way.
    Choose Restrict on your InfoObject
    Right at the top there is a box where you can choose Value ranges (or similar, only have the German client at hand)
    Next you get three boxes at the right middle side. Choose Less than or Equal in the top of the three. One of the boxes disappears.
    Press the button with the two squares right besides the lower box.
    In the drop down box at the top you can choose variables. Finally select the standard single value variable you want to use.
    Best regards
    Dirk

  • Date Variable rise Bex break off

    Dear Expert:
        I create a customer Exit variable for a Query, when I open this query in Bex and input the variable: 200903, the system break off, And I Use RSRT check this query, after input 200903, it canot continue, and the system have any erro message feedback.
    the variable code as below:
      When 'Z2V_BOTDATE'. " GET last date of this month from ZVAR_MONTH_N(eg.200903)
      if i_step = 2.
          LOOP AT i_t_var_range INTO loc_var_range
                  WHERE vnam = 'ZVAR_MONTH_N'.
                 CLEAR l_s_range.
               Concatenate l_s_range-low(4) '.' l_s_range-low+4(2) '.' '01' INTO V_DATE.
             call function 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
               Exporting
                 LAST_DAY_OF_MONTH = l_s_range
               importing
                  DAY_IN = V_DATE.
              l_s_range-sign     = 'I'.
              l_s_range-opt      = 'EQ'.
           APPEND l_s_range TO e_t_range.
            EXIT.
          ENDLOOP.
      endif.
    How to slove this problem, thank you!
    Bessie

    Dear Mansi:
        If the variable based on custom defined key figure, not based on 0CALMONTH, 0CALDAY, Is there any impact on the Function module? Thank you for your feedback. I am poor in ABAP.
        I change the code, but problem still in, code as below:
    DATA:      v_date TYPE d.
      When 'Z2V_BOTDATE'. " GET last month from ZVAR_MONTH_N
        if i_step = 2.
          LOOP AT i_t_var_range INTO loc_var_range
                  WHERE vnam = 'ZVAR_MONTH_N'.
            CLEAR l_s_range.
                tmp_y = l_s_range-low(4).
                tmp_w = l_s_range-low+4(2).
            Concatenate l_s_range-low0(4) l_s_range-low4(2) '01' INTO V_DATE.
            call function 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
              EXPORTING
                DAY_IN            = V_DATE
              IMPORTING
                LAST_DAY_OF_MONTH = l_s_range-low.
            l_s_range-sign     = 'I'.
            l_s_range-opt      = 'EQ'.
            APPEND l_s_range TO e_t_range.
          ENDLOOP.
        endif.

  • Date formula variable in BEx output

    Dear All,
    In Bex , I made a formula variable F_CURDATE and used it in formula. I fill it with current date
    l_s_range-low = sy-datum.
    My value in BEx comes 201,40,604. This is 04 Jun 2014.
    Why isn't it coming in date format. I then, used data function [date]'process value as date. The output shows value X.
    How can I show  date in date format in BEx?
    Regards,
    cleo

    Hi Cleo,
    The bit l_s_range-low = sy-datum must be coming from the customer exit code, right?
    And should this code not be used for populating a cust exit variable? How do you populate sy-datum to a formula variable in the query? Pls correct me if i m missing something in your question.
    However if it is a formula variable on 0CALDAY, there are standard SAP variables giving current date.
    Can you not use them in your query as per your requirement?
    Regards,
    Srilakshmi B

  • How can I use a variable in BEx of type date ?

    Hello,
    I have an infoprovider with a key figure of type "date" and I want to display for example all the data where the date is lower than a date entered by the user.
    So I want to create for that a date variable and use it in conditions.
    When I try with "manual entry", I can't get the type "date" : it proposes quantity, amount, number but not date.
    When I try with "customer exit", I can get the type "date" but when I get it on the selection screen, the date is seen as a number so it doesn't work.
    Does anybody have an idea.
    Thanks for your help.
    Regards,
    Vanessa Roulier

    Hi!
    if you are using a cube then there will be at least one time char. I think you can just add 0calday to your cube , even if you are not filling it.
      Once this is available in cube  it can be used in query (free chars) where we can define a variable on this 0calday. But we it will not have any effect on query results as you are not storing anything in your query.
    then in your conditions you create a variable with USEREXIT type. then in your ABAP code you can access the value stored in variable(which is entered by user) and copy it to the USEREXIT variable. Then your condition works because it is having a date type and the value is date.
    I don't see any problem in implementing this scenario.
    with regards
    ashwin

  • Looking for Calendar functionality for a Date Variable

    Hi Experts,
    Currently iam creating a WEBI Report where the source system is SAP BI System. I have a BEx Query with some characteristics at the row level and keyfigures at the column level. I have a Date Interval Variable (Based on 0DATE and optional), where the user will input the From and To date to execute the query. I have created the universe on top of this query, but date inteval variable appears as a character in the form of LOV. When i use this universe and buid the report in WEBI, the User Prompt for date is appearing as List of date values for this date interval variable, where as my requirement is to have date calendar for this date interval variable.
    I did some r&d on top of this, when the date varibale as single value and optional, iam able to get the date calendar, but when i use the Date interval Varibale it takes as a character. I searched the forum, but i didn't find any solution.
    Is it possible to have a date calendar for a date interval variable in BEx?? or its is only for single value date varibale.
    Kindly suggest
    Regards
    Santosh

    Hi,
    you stated it correctly that the calendar shows up in case of a keydate and in case of a single value but not in case of a range.
    in addition the underlying characteristic needs to be type DATS
    Ingo
    Edited by: Ingo Hilgefort on Dec 8, 2009 1:35 PM

  • Creation of Dynamic Date Variables to be used in WebI reports

    What we are trying to achieve is to create 4 optional filters (Current Day, Current Week, Last Week, Last Month) on 4 different dates which will allow the users to use them in WebI reports.
    When using an optional SAP Customer Exit variable in BEx and creating a Universe on top, the filter becomes mandatory (i.e. the whole Universe is filtered by the SAP Exit, irrespective of whether the filter is used in the WebI report). Even if the filter is flagged as optional at the Universe level, it still behaves as mandatory.
    If each filter becomes mandatory then we'll have to create 16 different Universes (for each optional filter and date combination)! This is not feasible.
    I've seen in other posts that MDX Statements are not currently supported for Universes base on BW and SAP Exit should be utilized.
    So with the existing BO version, is it possible to create optional dynamic date variables or is that a product limitation?
    We are on XI3.1 SP3 FP3.1
    Thanks

    Hi Adam,
    In BEx, I would create this query very easily using the "Amount" key figure twice in my results and restricting each with a different SAP standard out-of-the-box delivered variable. For your reference, the variables in BEx are: 0FPER and 0FYTLFP.
    If I expose these variables in my OLE DB for OLAP query, they are not transfered into the universe, but rather act as filters on the entire universe. I've seen in documentation that only "Ready for Input" variables can be transfered as options into the universe which is not something that I have seen mentioned in this thread.
    >> In the BEx Query you have the option to either make the variable "ready for input" or not. The behavior is the same in Bex or in the Universe / Web Intelligence. "Ready for input" means the user can actually provide an input and without the flag the user can not provide an input. Yes those variables are supported in the Universe.
    Why this is a problem: I can't create separate universes based on potential variable periods that users might want to see. Additionally, many financial reports require concurrent use of these measures in the same report. Also, in reality it's not 2 variables, but dozens.
    >> Which is a decision you make already on the BEx query level. if you decide that the variable is not ready for input then the user can change the timeframe in BEx either.
    Also, I don't have a good way to mimic the standard out-of-the-box functionality given with BEx in BO. If I custom create all my variables in the universe, how do I do a lookup from the system date to the fiscal calendar that is stored on the BW server? In other words, how does BO know which date belongs in which period? (the same would be true with factory calendars for a different functional area).
    >> Variable are created in the BEx query and the Universe will leverage those.
    If you want a dynamic date range then EXIT variable as part of the BEx query - ready for input or not - is the solution.
    regards
    Ingo Hilgefort
    The only work around I can see is to require users to enter the current fiscal period and have the BO reports filter based off that user entered value. This is unfortunate as the entire purpose of SAP Exit variables is to avoid having to require user input at report time.

  • How to get the "current date" in the BEx?

    Hi all,
    I need to get the "current date" in my Bex report in order to make a comparison. I know there is a "How to" which shows how to get the current date via a User Exit, but I didn't find it. Could you please help me?
    Thanks

    1. Create a  New Formula in Key Figures structure
    2. Give tech name and description and Select "New variable" option
    3. Next screen will launch Variable Wizard -> create a new variable with replacement path as processing type
    4. in next screene  select the date characteristic that represents the first date to use in the calculation (From Date)
    5. In the next  screen select Key in the Replace Variable with field. Leave all the other options as they are
    6. In the next Currencies and Units screen select Date as the Dimension ID.
    6. Save variable
    repeate the Above steps to create another variable (To Date)
    and now you can use these two new replacement path variables in your new formula.
    Dev

  • Is it possible to create a variable in bex with the last work day?

    Hi Gurus
    Is it possible to create a variable in bex with the last work day?
    Actually end-user every day open queries,
        - Put in selection date day - 1 or
        - put last Friday if the day is Monday or
        - put last Thursday if the day is Monday and Friday is holiday (in a calendar for example 25 the December).
    Please do the needful. It is urgent
    Thanks in advance
    Raj

    Try this logic in a customer exit:
    DATA:  l_s_range TYPE rsr_s_rangesid.
    DATA:  X_PERIOD LIKE T009B-POPER,
               X_YEAR   LIKE T009B-BDATJ.
      CASE I_VNAM.
      WHEN 'ZPREVWORKDAY'.
        DATA: l_DayOfWeek(1) TYPE C,
              l_act_date     TYPE d,
              l_prev_date    TYPE d.
        l_act_date = sy-datum.
        CALL FUNCTION  'DATE_COMPUTE_DAY'
             EXPORTING DATE = l_act_date
             IMPORTING DAY  = l_DayOfWeek.
        CASE l_DayOfWeek.
          WHEN '1'.
            l_prev_date = l_act_date - 3.
          WHEN '2'.
            l_prev_date = l_act_date - 1.
          WHEN '3'.
            l_prev_date = l_act_date - 1.
          WHEN '4'.
            l_prev_date = l_act_date - 1.
          WHEN '5'.
            l_prev_date = l_act_date - 1.
          WHEN '6'.
            l_prev_date = l_act_date - 1.
          WHEN '7'.
            l_prev_date = l_act_date - 2.
        ENDCASE.
        l_s_range-low  = l_prev_date.
        APPEND l_s_range TO e_t_range.
    ENDCASE.
    Edited by: Tyler Blouse on Feb 13, 2008 8:28 PM

  • How to Write a CUstomer Exit for a variable in BEx

    Hi,
    How to write a customer exit variable in bex Query designer
    Do i need developers key for this (If so what type of key do i need so that i can ask basis tean to generate)
    Info Object: ZEXP_DTE (Expiry Date)
    Variable on ZEXP_DTE :
    ZEDTE
    Type: Customer Exit
    Can any one please tell me how to write a code in CMOD from this (Step-by Step)
    Expiry Date > Current Cal Day
    As arun said
    'l_s_range-low = SY-DATUM.
    l_s_range-opt = 'I'.
    l_s_range-sign = 'GT'.
    APPEND l_s_range TO e_t_range.'
    I want to insert the above code for the above customer exit but as i am new to BW as  ABAP please explain me what are the steps involved in CMOD
    Thanks

    Hi,
    To write customer exit for a variable, you require Access key.
    Contact your BASIS to get that.
    Access Key,BASIS?
    To write Customer exit,
    User Exits
    User Exit for Variable
    /thread/809285 [original link is broken]
    Hope these helps u...
    Regards,
    KK.

  • Rectrict list of possible values for variable in Bex

    Hello folks!
    I need to give a user possibility to choose only few value for variable in Bex report. Number of entries in master data is huge. I need to show only 7 possible values in the window with variables.

    Amy,
    You have a tricky requirement but I can only think of one thing but it would require user training. Try the following.
    You can setup a new variable with default values and define it as type multiple single values.
    The user could in the variable screen would then need to take out the ones that are not needed.
    Hope this helps.
    -Sid

  • Date format in BEx

    dear all,
    i have a rather simple but puzzling question on my mind regarding date format in BEx reporting.
    here's the problem... in SU01 the date format for my users are MM/DD/YYYY.
    So for example, a variable in my BEx report, will only accept this value "03/2007" (month/year)
    question is,
    what settings can i make to allow different date formats for both 03/2007 and as well as 03.2007. Note the slash (/) and decimal (.)

    Hi SCHT,
    In SU3 make the properties for date as MM.DD.YYYY and then log-off and retry.
    Bye
    Dinesh

  • Dynamic variable in Bex Broadcaster

    We have a mandatory variable as 'Date' in the report. While creating the variant in Bex Broadcaster for sending mails daily - the date gets saved & remains constant. We need the date to be changed dynamically everyday when the mail is sent.
    I would like to know how should I achieve this. Thanks. Helpful ans will be appreciated.

    Hi,
    You would need to create the Date variable as Customer Exit.
    Populate the Date variable in CMOD by sy-datum or other logic, if u need. This will fix ur issue.
    Steps: 1. Make the Mandatory (existing variable) to Customer Exit
               2. Choose "Variable can be Input-Ready"
               3. Write your code in CMOD for I_STEP = 1 to populate the sy-datum
    If you do this, your existing variable will still be Mandatory, except the default value which will be shown in that is Current Date (Sy-datum). This should resolve your probs.
    Regards,
    Chathia.
    Edited by: Chathia_P on Feb 18, 2010 12:05 PM

Maybe you are looking for

  • [SOLVED] How do I disable enp0s3?

    I am trying to remove unwanted services from boot, specifically enp0s3 which I don't use as I don't have a ethernet card. This is my start up time analysis: $ systemd-analyze blame 24.503s [email protected] 1.625s systemd-logind.service 1.580s al

  • Remove xml namespace in the SOAP channel

    Hi gurus, Maybe my question is simple but unfortunately no ideas in my head how to solve the problem easily. I have a SOAP receiver channel to some external Internet application, send data there and synchronously get the response. The problem is that

  • How 2 get the path of a file

    how 2 get the path of a file Using jsp i have tried getPath...but i'm geting the error The method getPath(String) is undefined for the type HttpServletRequest any idea how 2 get the path of a file

  • Exporting into flash

    Hi, I have a problem with exporting some images from imageready into flash. I have made some post-it notes in Photoshop and export them as swf's through imageready. No matter what i do once they are in Flash and i publish teh file the quality looks t

  • Picking list generation without Warehouse management

    Hi all, I have requirement for my client to generate picking list genereation without wm. so i assigned EK00 condition type, transmission  medium, Language, send time & picking confirmation in shipping point. Also created condition record in VP01SHP