Userexit variables in the report designer

I want to use a query with userexit variables where 1 variable is derived from another variable in the report designer. This does not seem to work, behavious seems to be as follows:
1) when variables are derived from other variables they are filled in step 2 of the variable userexit. Variables filled in step 2 have no effect on the query: everything is selected
2) if the derived variables are mandatory, they even cause a dump saying the variable is empty
3) if variables are filled in step 1 (thus before the selection screen), they do impact the selection. The problem is that step 1 is too early to have access to the other variables.
How can I derive variables from other variables when using the report designer?
Thanks in advance for your answers,
Best Regards,
Filip Ledoux

Hi,
For example if you want use value from variable ZVAR_02 (manual entry) in variable ZVAR_01 (user exit) you can use similar code:
DATA: L_S_RANGE TYPE RSR_S_RANGESID.
  DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
  CASE I_VNAM.
   WHEN 'ZVAR_01'.
    IF I_STEP = 2.
      READ TABLE I_T_VAR_RANGE INTO LOC_VAR_RANGE
           WITH KEY VNAM = 'ZVAR_02'.
      IF SY-SUBRC = 0.
        CLEAR L_S_RANGE.
        L_S_RANGE-LOW      = LOC_VAR_RANGE-LOW.
        L_S_RANGE-SIGN     = 'I'.
        L_S_RANGE-OPT      = 'EQ'.
        APPEND L_S_RANGE TO E_T_RANGE.
        EXIT.
      ENDIF.
    ENDIF.
ENDCASE.
Variable ZVAR_01 shouldn't be ready to input.
Krzys

Similar Messages

  • Query Stripping not working properly when using variable in the report

    We have issue with WEBI document that have query stripping enable.
    Once the query stripping enabled there is no data return in the report.
    We have investigate on the problem, the query stripping function are notable to retrieve objects that indirectly used in the report
    as we have
    many variable in the reports.
    Ex.
    Var1 = object1 + object2
    Var2 = Object3 + Object4
    Var3 = Var1 + Var2
    Var4 = Object1 + Object2 + Object3 + Object4
    If we use only Var3 in the report, the object1,2,3,and 4 will not be
    retrieve.
    But if we are using Var4 in the report, the object1,2,3,and 4 will be
    retrieve properly.
    Please let me know is it a by-design behavior, if yes please share points on it

    Hi Amit,
    Thank you for response, however i already had alook on that VIdeo and it tells us about the basic enabling of query stripping.
    But my question is when we have a Variable in a report which is dependent on the other two variables it gives me #error so is it by design or not.
    Regards,
    Abhinav

  • How to use customer exit variable in the report

    Dear All,
    i want to use a standard customer exit variable in the report properties.
    In the Bex Query Designer right hand bottom you will find two buttons "Properties" and "Task". Click on task you will get different option. Choose properties from there and then select "variable sequence tab".
    I need to add a standard variable there. How can i achieve it?
    Appreciate your early help.

    You need to add variable to corresponding charctertic then you can get that varaible for sorting the sequence....
    If 0CUST is the varaible then you need to assign it 0CUSTOMER then 0CUST will be available for the sequence.
    Edited by: shanthi bhaskar on Apr 2, 2009 5:41 PM

  • How to insert a new field in the Report Designer

    Hi all.
    I have a query and a report, but the query evolve.
    We have a new key figure (inside rows).
    In the report designer, I check the data provider.
    The new key figure is added in the catalog field.
    Now, I would like to insert the new field in the report.
    I add a new row in the report structure but it isnt what I want.
    In this case, I add a second row inside an another keys figures block.
    I want to create a new block for my new key figure
    Thanks for your help
    Céline

    Yes, key figures is in the field catalog.
    But When I do that " Insert a row ", Report designer create a " row 2 " below another key figures.
    And it isn't what I want. I want a new block .
    For exemple in the tab report structure (My new key figure is "Margin")
    I do that
    Group Level 1 : key figures
             Detail Area
                      Sales Amount
                                   row1
                                          cell1
                                          cell2
                      Cost
                                   row1
                                          cell1
                                          cell2
                                   row2 ( the new row added)
                                          cell1
                                          cell2                     
    But I want that:
    Group Level 1 : key figures
             Detail Area
                      Sales Amount
                                   row1
                                          cell1
                                          cell2
                      Cost
                                   row1
                                          cell1
                                          cell2
                     Margin
                                   row1
                                          cell1
                                          cell2                     
    Thanks for your help

  • How to create  some columns dynamically in the report designer depending upon the input selection

    Post Author: ekta
    CA Forum: Crystal Reports
    how  to create  some columns dynamically in the report designer depending upon the input selection 
    how  export  this dynamic  report in (pdf , xls,doc and rtf format)
    report format is as below:
    Element Codes
    1
    16
    14
    11
    19
    10
    2
    3
    Employee nos.
    Employee Name
    Normal
    RDO
    WC
    Breveavement
    LWOP
    Sick
    Carers leave
    AL
    O/T 1.5
    O/T 2.0
    Total Hours
    000004
    PHAN , Hanh Huynh
    68.40
    7.60
    76.00
    000010
    I , Jungue
    68.40
    7.60
    2.00
    5.00
    76.00
    000022
    GARFINKEL , Hersch
    66.30
    7.60
    2.10
    76.00
    In the above report first column and the last columns are fixed and the other columns are dynamic depending upon the input selection:
    if input selection is Normal and RDO then only 2 columns w'd be created and the other 2 fixed columns.
    Can anybody help me how do I design such report....
    Thanks

    Hi Developer life,
    According to your description that you want to dynamically increase and decrease the numbers of the columns in the table, right?
    As Jason A Long mentioned that we can use the matrix to do this and put the year field in the column group, amount fields(Numric  values) in the details,  add  an filter to filter the data base on this column group, but if
    the data in the DB not suitable to add to the matrix directly, you can use the unpivot function to turn the column name of year to a single row and then you can add it in the column group.
    If there are too many columns in the column group, it will fit the page size automatically and display the extra columns in the next page.
    Similar threads with details steps for your reference:
    https://social.technet.microsoft.com/Forums/en-US/339965a1-8cca-41d8-83ef-c2548050799a/ssrs-dataset-column-metadata-dynamic-update?forum=sqlreportings 
    If your still have any problem, please try to provide us more details information, such as the data structure in the DB and the table structure you are currently designing.
    Any question, please feel free to let me know.
    Best Regards
    Vicky Liu

  • How to display a variable in the report?

    hi all
    i want to use one complex sql statement which will return only one value and i need to display it in report. i'm new to OBIEE. i thought of creating a repository variable to hold that value. but im not sure of how to display the variable in the report.
    Any idea?
    Your help is appreciated

    Hi where do you want to show that value in answers i mean in which part of answers, you want to show that?
    see this
    http://bischool.wordpress.com/2009/05/05/presentation-variable-values-in-report-titles-or-using-presentation-variable-in-dashboard-text-object-and-narrative-view-directly/
    also see this to where and how to use variables in answers
    http://shivabizint.wordpress.com/2008/10/02/oracle-bi-ee-variables-overview/

  • Variable in the report agent.

    Hai All,
       I have used a variable in the report agent to run a query in the background. The variable I used already incrementing dates automatically when the report is executed on the web.  Do I need to make anymore other setting in the report agent for this variable or Is it going to be fine.
    Thanks, Vijay.

    Anil, Ravi,
      Thanks for your advise. When I created the variant in the webtemplate the date range is feb1 to feb28. But the Date range for the query changed to march1 to march1.
      After I scheduled the package, when run rsrt with statistics for FEB I see all 0's in the statistics and for march I see some count in the statistics. Will this be okay? When run using the process chain this will take right dates?.
      In the Agent settings, under filtering I am using 'No Filtering'. If I click on 'explicit thru query rslt then there is variant. Do I need to take this route?
    Thanks for your help in this regard, Vijay.
    null

  • Using attributes in the Report Designer

    Hi,
    Does anyone know if it's possible to display attributes of an InfoObject in the Report Designer? I made a query using several attributes of an InfoObject. This works great when I just run the query but as soon as I use the query as a datasource in the Report Designer the attributes are gone.
    Thanks in advance,
    Alex

    Hi
    you can view the attributes in RD.
    which version of RD u r in. previous revisions u r not able to see the Attributes in the RD update ur system to latest revision.
    In the Older versions u can select the attribute, After executing the Query, Click on Filter then select infoobject and Edit. In the Selector u can view ur attributes for the Selected Info object
    Regards
    Veda
    Message was edited by:
            vedaprasuna devallapalli

  • Is it possible to set a "query in change mode" with the Report Designer 7.x

    Hi,
    I have a query set in "change mode"  with an index set as "data can be changed using user entries or planning funcionts".
    If I use this query as a "Data Provider" in the Report Designer, the result is still in "change mode" or a result of the Report Designer is only a static image?
    Thank's,
    Valentina.

    Hi Deepu,
    I had suspected this...
    Thank you very much!
    Regards,
    Valentina.

  • Providing access to Variables in the Query Designer

    Greetings experts and fellow consultants,
    I have a simple question, did a search and did not come up with much of an answer.  Currently, we have a system with a role for BI Power Users in order for them to create ad-hoc queries.  An issue we found was that these power users were not able to view variables within the query designer:
    Under the "Characteristic Restrictions" pane, the variables show up as (Display Not Allowed) under their associated InfoObjects.  This is presenting an issue (understandably) and I would like to provide access for these power users to see the variables.
    My question is, are there any circumstances where I would want to restrict which variables are shown to the power user?  Right now, I plan to allow display access to all variables (via S_RS_COMP+S_RS_COMP1 for those informed on Security).  Just trying to brainstorm on whether there might be scenerios where I would want to hide certain variables.
    Many thanks to all opinions, as always!

    Suresh, in my above post I knew how to enable this.  I just wanted to know in regards to security whether there were any exposures.  Apparently, I could not find any and the changes went through without issue.  The way you enable display of variables in the Query Designer is the following:
    S_RS_COMP:
    RSINFOAREA '*'
    RSINFOCUBE '*'
    RSZCOMPTP 'VAR'
    ACTVT '03'
    S_RS_COMP1:
    RSZCOMPTP 'VAR'
    RSZCOMPID '*'
    RSZOWNER '*'
    ACTVT '03'
    Hope this helps.  Of course, adjust the field values are you see fit but the minimum requirement is that RSZCOMOPTP 'VAR' (Variables) and ACTVT '03' (Display).

  • Where is the report designer feature in the latest version ?

    Hello,
    We have switch from EPM 11.1.2.1 to EPM 11.1.2.3 with Smart View 11.1.2.5.200 and I'm not able to find the Report Designer feature on Smart View ?
    This feature allow us to include several smart slice in the same worksheet and also to use slider for POV
    Oracle removed this feature from Smart View ?
    Thanks!

    Hi,
    This feature is not removed in 11.1.2.5.200
    In Excel After creating the essbase connection > Navigate to Essbase > Query > Query Designer.
    Or Look at the lower right hand corner where you will see the link for Query Designer.
    HTH.
    Please mark as Correct answer if this answered your query.
    Thanks,
    Gowri Ramalingam.

  • Unable to see substituion variable in the reporting studio

    Hi,
    I have added substitution variable to the reporting studio the variable name I gave as var1
    and value as 2009,but I am unable to see the substitution variables in my reporting studio.
    What can be the reason for it?
    Thanks

    Hello,
    you have to quote the value because it doesnt start with a letter.
    Every Value which you had to put in quotes in an Calc Script or Member Formula or so, you have to quote in FR Studio too. Planning accepts the value without quotes, FR Studio doesnt.
    Bye
    Kevin

  • The Report Designer does not support this query drill down colum

    Iam working On BI7 When iam doing report desingner when iam opening query through data provider
    Iam getting thsi error The Report Designer does not support this query drill down colum colum axis may contain one structure only remove additional dimensions
    I modify the cube and i remove some dimensions also My problem is when iam putting characterstics in Colums Iam getting this error When iam removing that charcterstics from colums it was not throuing any error
    Chaitanya

    hi,
    report designer is for front end view design and the designcan be done with restriction to navigation.
    you have dynamic and static report designs with restricted navigations.
    chk the links for document
    http://help.sap.com/saphelp_nw04s/helpdata/en/dd/cea14119eb9f09e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/17/16d941de405f24e10000000a1550b0/frameset.htm
    Ramesh

  • Issue witth the report designer installation

    Hi all,
    i am having a problem while installing the GUI of the BI 7.0 . after installation some time its showing the installation completed with errors and on 3.x functionalities r available i dont find any option to login to the bex report designer its front end is also not installed.
    some time the problem is i am unable to run the query with variable when i run the query its gives the message that the variable is not consistent some thing like this. I dont know what to do.
    regards
    KK

    Add &VARIABLES_CLEAR = FALSE to end of the URL
    or Check in your WAD for the following commands and add this command at the bottom as shown below. 
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_PROPERTIES"/>
             <param name="TEMPLATE_ID" value=""/>
             <param name="VARIABLES_CLEAR" value=""/>

  • How can I display a formula variable in the report?

    Hi,
    I have a requirement to display a formula variable value in the report. When the user runs a report this variable value should be called once and displayed below the report title or in a specified cell. Is it possible something like this could be done? if yes, can someone tell me how can I achieve this functionality. I appreciate your time and effort with points.
    Thanks,
    Rao.

    Hi Bhanu,
    In the query properties you can only see text variables and not the formula variables. If I define my number of working days as text variable and I can display in the report. However, I need to use this variable in some calculation in the report, so it has to be formula variable in order to use in calculations. I appreciate your input with points.
    Thanks,
    Rao.

Maybe you are looking for

  • Creat new table from multiple tables in same DB?

    Trying to create a new table bringing in all the records from 3 old tables. All three old tables have common foreign key fields. I'm not sure how the syntax would look like, but something like: <cfquery name="qCreateTable" datasource="somedb"> CREATE

  • Several konqueror 4.1 problems

    Hi all, I am using KDEmod4, and come across several problems with konqueror as listed below: 1. I cannot change the font settings. After I made the change and click OK, then come back to font settings page again, it always has been reverted to the de

  • SuperDrive making noise or lagging

    Hello, My SuperDrive is slow at reading/playing DVDs and/or makes "reading" noises. The playback is choppy and pixelated. I have never experienced this before. All playback was pristine and crisp until recently. I have not installed or done any upgra

  • 10.2.1.2102 - Issues

    The 'contacts' area is a mess and doesn't seem to be recovering as you suggest it will, given a few days - I've never heard of anything like that, ever before.  Is this reality? I have a few contacts with pictures which should be displayed at the top

  • SOLVED Symbol lookup error: /usr/lib/libpangocairo-1.0.so.0:

    Hi: It is my first post on archlinux forums. I have a problem with libpango. When I start openbox session (With slim or startx it's the same), give me the error: Symbol lookup error: /usr/lib/libpangocairo-1.0.so.0: undefined symbol: g_object_replace