Customized variable for Bex

Hi Gurus;
I am using BI 7.0. My client wants a customized variable for 0CALMONTH with 2 dialog boxes in the selection screen saying "From month" and "To Month". When you input months, say; 06.2008 in "From Month" and 08.2008 in "To Month", the output which will come is data from all the months between 06.2008 and 08.2008. The 2 dialog boxes are important in this screen. I know. it can be done through interval option in BI 7.0, but the dialog boxes doesn't appear in the first screen of the Selection Screen (Like in 3.x).Is there a way to fulfill my client's requirement? Please provide me a step - by - step guide if possible.
Regards;
Sumanta

Sumanta,
   Could you please clarify
1 ] whether you are using BEx Analyser or Web queires to execute the report? Does your query has only the custom variable as it selection parmeter?
2] Is your Custom variable(with Interval) for 0CALMONTH is defined as mandatory / optinal ?
  If you are using Web queries and you variable is defined as optional, then there is setting that you need to do on the web template that you are using.
Choose you web template on the properties tab> Choose Web Template parameters>under the behaviour section ,choose check box for Display variable, as the default is off. This means that if you have Custom variables that are optional on you BI query will not be display as selection screen.
Hope this help,
Cheers,
Balaji

Similar Messages

  • How to create a custom variable for a Label?

    i need my label to store a string variable in it, do you know i can create a custom variable for it.
    i mean for example if it's name is "StoredString" i can access it in my code by "label1.StoredString" just like "Label1.text" or something like that.

    Thanks for pvdg42's help.
    Hi soorena12,
    Based on your issue, I suggest you can try the pvdg42's suggestion check your issue in your side.
    If it still could not help you solve this issue, I suggest you can tell me which kind of application you create the label in the VS IDE?
    What language you use to create for your application?
    If you have any update message about your issue, please tell us.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Migrating Customer exit  for BEX variables to BADI's

    Hi All,
    I am new to ABAP In the context of BW.
    I am  using exit RSR00001 to populate variables in BEX reports.
    I want to migrate this customer exit RSR00001 to BADI.
    Can any one please tell me how to migrate the same and how it will fire in place of exit?
    Thanks In Advance
    Dhananjay

    Hi,
    Please have a look at:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f1a7e790-0201-0010-0a8d-f08a4662562d
    Krzys

  • Any more customized program for BEx

    Hello,
    I wonder if there is any way to customized data from BEx Analyzer rathan using variables with processing type-Customer Exit?
    -WJ-

    You can use Excel Formulas and VB Macros to do customization but it works only with workbook and not with queries.
    If you want to do additional customization for your reports then you have to save the query in a Workbook and you have to write the VB Code in the interface.
    Sub SAPBEXonRefresh(queryID As String, resultArea As Range)
    Write your Code here
    End Sub
    You can search in SDN for Code Samples to achieve the results.
    Regs
    Gopi

  • CUSTOMER VARIABLE FOR MONTH

    Hi all,
    i have one requerment. that is in the report i will give date on  selection screen ,based on the date i want to get month only.
    on that month ican use variable offset.. please give me the code if any body have (i_step =2).
    thanks

    Hi.
    You can try the next:
    1. create variable for user date (lets say Z_DATE)
    2. create variable for month (not ready for input, mandatory, customer exit) lets say Z_MON
    3. in [EXIT_SAPLRRS0_001 |http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20f119d9-922d-2c10-88af-8c016638bd90?quicklink=index&overridelayout=true]try to read i_t_var_range table with key Z_DATE
    4. parse this value - take by ABAP only month from the date
    5. set this value (month) = value - 1
    6. assign this value to Z_MON variable.
    Regards.

  • Setup variables for BEx Query

    Dear all,
    I am working on a BEx query. I would like to show MTD and YTD actual & planned expenses. My questions are as follows:
    (1)      how can I set up variables or variants which can look up the system date to calculate the MTD and YTD date? For example, I execute the query without input the date and I would like the query automatically look up the date for YTD  (e.g. 1/1/2009 u2013 2/20/2009) and MTD (2/1/2009 u2013 2/20/2009) for actual expenses?
    (2)     Since the planned data is by year and distribute 12 months equally and not by day, how can I set up variables which can look up the system date to calculate the number of the days from the beginning of the year up to today and beginning of the month update to today so I can calculate the MTD and YTD planned expenses based on the annual budget.
    Thanks

    Thanks Reddy,
    Since my variable for planned data is not date variable anymore, it is a factor = current date / number of days in current month and I used this to multiple by the planned monthly data.  If I used entire month and  the plan data will be overvalue, I can't compare to the MTD actual data since actual date is updated by day.  How can I create a variable for this and use it to caluclate in the BEx Query?
    I believe the function will work but I don't know much about ABAP.  I try to search sample code for the function.  here is what I get but I don't think it is going to work. Can you point out what is missing? I believe I need to put it under 'ZXRSAU01'
    Under CASE I_DATASOURCE
    I put
    WHEN 'ZMTDFACTOR'. #the variable name of the MTD factor
    PERFORM ZMTDFACTOR_EXIT.
    In ZMTDFACTOR_EXIT  and here is the code I get so far
    WHEN 'ZMTDFACOTR'.
        DATA:  SDT TYPE SY-DATUM,
              MON_FACTOR TYPE N,
              ST_CD(2) TYPE N,   
              ST_LD(2) TYPE N.     
                l_date_in  type sy-datum,
                l_date_out type sy-datum.
              SDT = SY-DATUM.
    *current date
              ST_CD = SDT+6(2).
    CONCATENATE l_v_calmonth '01' into l_t_range-low.
    l_date_in = l_t_range-low.
    CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
      EXPORTING
        day_in                  = l_date_in
    IMPORTING
       LAST_DAY_OF_MONTH       = l_date_out
    EXCEPTIONS
       DAY_IN_NOT_VALID        = 1.
    *last date
    ST_LD = l_date_out+6(2).
    *Calculate the factor based on the MTD
    MON_FACTOR = ST_CD / ST_LD.
    How can I send MON_FACTOR to ZMTDFACOTR and back to the query?
    Thanks again.

  • Custom variable for fiscal year/period

    Hi BW Experts,
    My problem is only fiscal year/period is populated
    (fiscal year and posting period is not populated) and I need to have a custom exit ...that if the user enters 006/2007 i need to have a varaible which will contain 001/2006 to 012/2006 ..i.e data for entire year.
    It doesnt matter which year the user enters ...i should fetch data for the entire year
    I am very weak in ABAP programming ..if any body can share their experience..I would appreicate with full points
    Thanks

    Create a customer exit  variable(not ready for input) var1 with interval
    var2 is a ready for input variable that take the value entered by the user.
    IF I_STEP = 2.
    WHEN 'var2'.
          DATA: v_mth_beg TYPE d,
                     v_mth_end TYPE d
          REFRESH e_t_range.
          CLEAR l_s_range.
          LOOP AT i_t_var_range INTO loc_var_range
                   WHERE vnam = 'var1'.
            EXIT.
          ENDLOOP.
          CONCATENATE loc_var_range-low+0(4) '001' INTO v_mth_beg.
          CONCATENATE loc_var_range-low+0(4) '012' INTO v_mth_end
          l_s_range-sign = 'I'.
          l_s_range-opt = 'BT'.
          l_s_range-low = v_mth_beg.
          l_s_range-high = v_mth_end.
          APPEND l_s_range TO e_t_range.
    try this out.Hope it helps.
    Regards,
    Rakesh

  • Custom variables for reporting

    Hello,
    I have a customer who has UCCX 8.5 and was wondering if they can do the following. Call comes in, agent answers the call and when the call is complete, they would like the agent to add an "account code" to the call from within CAD. They then want to use this "account code "for reportings. Is this possible?
    Thanks in advance!                  

    Yes but the agent won't be prompted for it so it would require some training.
    The CallVariables1-10 that are stored to the ccdr table record for the call can be given a friendly name such as Account Code under Desktop Administration. You would also need to add that variable to a Layout List so it is shown in CAD.
    The Script would need to set that Layout List to be used with the Set Enterprise Info step.
    The Workflow Group of the agent (created in CAD Workflow Administrator, assigned in Desktop Administrator) would need to allow users to Modify Enterprise Data.
    The CSQ would need to be configured to place the agent in a Work state. The agent can only modify the Enterprise Data during the Talking or subsequent Work states. Once they go Not Ready or Ready again the record is written.
    With all of that in place the agent could double-click on the Account Code field within the Enterprise Data section of CAD. It will open a small dialog and they can type in the value they want.
    Please remember to rate helpful responses and identify helpful or correct answers.

  • Need Text variable for Bex which take values from another variable

    Hello ,
    I have a requirement to show date values in query description.
    User want to run a query which runs for 5 sept till last sunday.
    I have one exit which provides last week date range ( low= last week monday  & high = last week sunday )
    i have acheieved this by restricting 0calday by range = (5 sept 2011 to exit (above metnioned exist's low) + 6 (offset)
    now the problem is user wants to show this date range in query description .
    ie suppose user is runnig this query today so the query description should be  "5 sept  2011 to 2 oct 2011 "
    This could be possible with text variable  by using replacement path , but i am unable to figure ot the logic .
    Kindly advice .
    Regards,
    CR

    Thanks Sushant ,
    In the Tab "Replacement Path " ..there is a drop down -
    "Replace variable with" what should be choose in this ?
    I have used this selections for genearl tab  -
    General Tab -
    Processing By = Replacement Path

  • User Exit Variable for Bex in CMOD (ABAP Code)

    Hi Experts
      My requirment is to develop a Restricted Keyfigure...
      The restriction is based on 0Calmonth (Calendar Year/Month)
    The sales from beginning of calendar year up to last "closed" month in a Calendar.
    Ex: in June i want to see 01.01.2009 to 31.05.2009 data.
        in October i want to see 01.01.2009 to 30.09.2009 data.
    When user execute the report
        in Jan 2010 i want to see 0 as there is no closed month in that particular year.
        in Fed 2010 i want to see 01.01.2010 to 31.01.2010 data.
    For that purpose i need to create a User Exit variable in CMOD...
    I am struggling to get an idea on how to write a code to meet the requirment
    Please help me with code that i can use in cmod
    Thanks in advance

    Hi,
    Use the following code :
    when' variable name ' .
    DATA : year(4) type n,
    month2(2) type n,
    date_in type sy-datum,
    date_op type sy-datum.
    IF I_STEP = 1.
    CLEAR L_S_RANGE.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'BT'.
    month2 = sy-datum+4(2).
    if month2 = '01'.
    concatenate sy-datum+0(4) '01' '01' into l_s_range-low.
    l_s_range-high = sy-datum.
    else.
    month2 = month2 - 1.
    clear : date_in, date_op.
    concatenate sy-datum+0(4) month2 '01' into date_in.
    CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
      EXPORTING
        DAY_IN                  = date_in
    IMPORTING
       LAST_DAY_OF_MONTH       = date_op
    EXCEPTIONS
       DAY_IN_NOT_VALID        = 1
       OTHERS                  = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    concatenate sy-datum+0(4) '01' '01' into l_s_range-low.
    l_s_range-high = date_op.
    endif.
    APPEND L_S_RANGE TO E_T_RANGE.
    ENDIF.
    I dint know what output do you want if the current month is jan.
    I have put it as 1st jan till current date.
    Modify it if you need.
    Regards,
    Mansi

  • Custom Variables and Scorm Compliance

    In order to implement a special grading scheme for my project, I'm utilizing custom variables for my captivate presentation. How do I ensure that my variable usage is SCORM compliant?

    Mike,
    We do that all the time in my company. We never use the Captivate SCORM publish option but simply publish to a standard SWF.
    We then add JavaScript calls within Captivate to handle the SCORM functions (e.g. navigation, unload page etc.) and build our SCORM manifest in Reload. The JS SCORM support files are the standard apiwrapper.js found on the ADL webpage and a custom JS file that contains some extra functionality for our LMS.
    One of the reasons why we are doing it this way is that 99% of our courses consist of multiple chapters. This way we can easily control the entire course structure in the manifest we build in Reload and avoid using the Aggrevator ;o)  Another reason is that we almost never use the Captivate quizzing features but instead use a custom Flash based quiz in our courses.
    /Michael
    Visit my Captivate blog with tips & tricks, tutorials and Widgets.

  • 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.

  • How to get data for current week and previous week using customer exit in Bex.

    Hi everyone,
    I have a scenario in which I need to display data for current week and previous week (based on "sy_datum" the program has to calculate current week and previous week) in Bex using  Customer exit. I have created one variable in Bex Query Designer and I have written code for the variable in CMOD. But it is not working fine, (I know that we can do the same by using offset value in Bex). Can some one guide me how to achieve my requirement using customer exit.
    Thanks in Advance,
    G S Ramanjaneyulu.

    Hi krishna,
    Thanks for your quick reply, can you have a look at my code,
    case i_vnam.
    WHEN 'ZPWK_CWK'.
    ranges : pre_week for sy-datum.
    data : start_date type DATS,
           end_date TYPE dats .
    ************FM TO GET FIRST DATE OF CURRENT WEEK ************************
    CALL FUNCTION 'BWSO_DATE_GET_FIRST_WEEKDAY'
      EXPORTING
        DATE_IN  = sy-datum
      IMPORTING
        DATE_OUT = start_date.   " WEEK FIRST DATE
    end_date = START_DATE + 6.   " WEEK LAST DATE
    END_DATE   = START_DATE - 1.   " PREVIOUS WEEK END DATE
    START_DATE = START_DATE - 7.   " PREVIOUS WEEK START  DATE
    **********PREVIOUS WEEK DATES IN PRE_WEEK******************
    pre_week-SIGN   = 'I'.
    pre_week-option = 'BT'.
    pre_week-LOW    = START_DATE.
    pre_week-HIGH   = END_DATE.
    APPEND  pre_week.
    CLEAR : START_DATE,END_DATE.
    endcase.
    Regards,
    G S Ramanjaneyulu.

  • 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!!

  • Custom drop down list for the filter for BEX report

    Hi, all:
    I am writing a query for a BEX report that prompts the user to enter a value for a field "GL account".  I would like to have the user select from a limited number of GL options rather than have the whole Chart of accounts show up. Is there a way to make a "custom" drop down list for the filter?
    Thanks!
    Jenny

    You need to make your GL account info object as an authorization object. And in the info object ,for BEx you need to select the option "only authorized values".
    Create an analyis authorization on gl account and assign the restricted set of GL accounts to the user. Asign this analysis authorization to the user.In the query restrict this infoobject with an authorization variable. This would solve your purpose.user would be able to see only a selected set of GL accounts for which he is authorized.

Maybe you are looking for

  • Opening an External Window which shares the same context.

    Hi, I have a requirement where <b>I need to open an external window which shares the same context</b>. (i.e, A window which belongs to the same application in a seperate browser) If I use the following coding <b>it only opens a model window in the sa

  • IBook wakes from sleep if touched or moved

    Hi all, This just started happening recently. If I touch the top of my (closed) sleeping iBook, or move it, the computer wakes from sleep for a second and then goes back to sleep. It will sometimes do this several times in succession. It's as if it's

  • Which table keep the relationship of AO and Usage

    Hello Guru: which table keep the relationship of Architecture view and Usage view. for example, this architecture object was used to create business entity. Please advise and thanks in advance.

  • What are the chances my trade-in phone was stolen by USPS?

    I successfully traded-in one iPhone 5s using the pre-paid USPS envelope from VZW, and got my electronic rebate card. The second trade-in of an iPhone 5s was put in the mail (using another pre-paid envelope from VZW) 2 days later and is no-where to be

  • Embedding Microsoft Office Documents into a PDF

    Hi Everyone, Do any of you know if it's possible to embed Microsoft Word or Excel documents into a PDF as an icon which when clicked will open in the relevant application? Thanks