Dynamic field selection by variable input in bex report

Hi Frineds,
          I have created  variable on characteristic  ( 0CURTYPE )  which mainly have two values 'A' and ' B' .Based on my variable input in Bex I have to dynamical select key figuers  Example .
0CURTYPE    KeyfigA  KeyFigB  
A                    123 Rs   144 $
B                     124 Rs   145 $
        In above example is user select A I have to display KeyfigA   if I select B then i should display Keyfig B in Bex report .
I know that by using user exit in report we can do but I would like to try with out Exit .
Thanks ,
Kumar.

Your formula variable allowed to be of type either number or amount or date or quantity which are all numeric(currency type/type tab) .But your reference characteristics is a letter.So there is an inconsistency here and you can not make equal your formula variable and 0currtype's variable.
Have a look at Akshata's post in this thread :How to create formula variables in sap bi?
Therefore this model does not work and I can not see any other way apart from a very simple user exit which says if 0currype=A, then formula variable=0 else if 0currtype=B then formula variable=1.After that you can use your formula variable in your formula since the letters are now converted to numbers.
By the way it mustn't ask two things in the selection screen.Since your formula variable takes the values of 0currtype's variable automatically.Did you create the formula variable with replacement path(general tab) referencing to 0currtype?Just create a formula, enter this formula,right click create formula variable,go to general tab then replacement path then reference to 0currtype.But as I told, you nevertheless can not achieve it, just explaining it.
Regards,
Sunny

Similar Messages

  • Selection Options feature for variable input in BEx in 7.0 version

    Hi All,
    We are currently in EHP1 BI 701 software version. We have queries in both 3.x and 7.0 version. The variable screen that we get when we execute the report in 3.x and 7.0 is different.
    We have selection options in 3.x (We can copy and paste values (non sequential) from an excel sheet for example during variable input) but I'm not seeing the same in 7.0 queries.
    Please suggest if it's a configuration/software issue or i'm missing something here.
    Regards,
    Vivek

    Hi,
    I would like to inform you that you will not get the same button as in 3.x . But when you open the F4 screen and then you have
    to click on the More Button.
    Two ways you can copies:
    To past from clipboard follow these steps:
    1. Click on the u201CMore >>u201D button.
    2. Click on the right box to set the focus.
    3. Ctrl + V.
    To import from a txt file follow these steps:
    1. Click on the u201CMore >>u201D button.
    2. Right click on the right box and choose u201CUpload selectionsu201D option.
    3. Select the txt you want to import.
    All the values will be copied on the Right Pane.
    Thanks,
    Venkat

  • Issue with Variable Personalisation in Bex Report

    Hi Gurus,
    I'm facing a typical problem with Variable presonalisation in the Report.
    I've executed a BEX Report and filtered data on some characteristics and used SAVE AS Button on the Portal to save the resultset. When I'm trying to use the variants, again say after  2 or 3 days i couldn't find updated data for particular variants upon using the same variants rather its refelecting the old data. Further more when I execute the report and try filtering on the same criteria altogether, I'm able to see updated result set.
    Is there any setting to be enabled when we personalise variants or variants are dependent on the data or the date on which they are created. Not sure why the reports are behaving this way. Or Do I need to create variants time and again.
    Any pointers would be of great help.
    Regard,
    Yaseen

    Hello,
    In the BEx report, when you get the variable selection screen there input your selection and at the bottom you have the option of saving them as a variant.
    Now in future when you run the report simply use this variant and execute the report. It should work fine.
    Also remember date selection can be tricky. If you input todays date in the variant, it wil consider the same date in further references. So do a check on that too.
    Regards,
    Shashank

  • Variable input in Webi Report

    Hello Experts,
    I have a requirement to create a Webi report which has 3 key figure columns.
    While executing report It should ask for input variable fiscal year/period.
    Now 1st key figure colum should show Amount for the fiscal year/period I entered as an input variable.
    2nd column should show Amount for previous YTD for the fiscal year I entered.
    For Ex. if I enter 04.2009 it should show amount for 01.2009 - 04.2009 and if I enter 04.2008 then it should show amount for 01.2008-04.2008.(based on the variable input I provide)
    3rd column should provide the Amount <= ficsal period I enter as an input.
    Can anyone guide how would I achieve this?
    Regards,
    Nirav Shah

    Hi Nirav,
    what is the granularity of the time dimension of your data in your report? Generally you make sure that you fetch all required in your report and then use formulas (applying the if operator on the time field of your data and the value returned from your prompt) to calculate the desired key figures.
    Regards,
    Stratos

  • Variable Input display in report

    Hi Experts,
    I've a requirement where I need to display the inputs given in the Variable input screen in the report.
    Please help me hoe can I achieve this.
    Thanks in advance.

    Hi,
    Issue dicussed already.
    Very nice how tos from Surendra Kumar Reddy Koduru
    Derive texts from input varaibles
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20f119d9-922d-2c10-88af-8c016638bd90?QuickLink=index&overridelayout=true&43581033152850
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/13221
    Hope this helps
    Joe

  • Dynamic Field selection

    HI All,
    I am looking for experts advise here. My requirement is like this. I have 8 checkboxes in the selection screen. Based on the selected chekbox it has to pick the corresponding field table values. The selection of values I have completed but displaying them in a excel sheet is a challange here.
    I have to display the record in the excel download(This I can Do through WS_DOWNLOAD). But the question is If I choose Check box A only thos fields needs to be displayed and if checkbox B only those fields needs to be displayed in excel. If both the checkboxes checked then all the fields needs to be displayed in the excel.
    Could any one advise me how to achieve this functionality. Actually I picked the values corresponding to the checkbox and it is available in the different internal tables.
    Chckbox 1 - itab1, chckbox 2 -itab2,chckbox3-tab3......
    Regards
    Ram.

    DATA: ls_fcat      TYPE lvc_s_fcat.
      DATA: lt_fcat      TYPE lvc_t_fcat.
      FIELD-SYMBOLS:
                     <fs_dyn_table> TYPE STANDARD TABLE,
                     <fs_dyn_wa>    TYPE ANY,
                     <fs_final>    TYPE ANY,
                     <fs_val>       TYPE ANY.
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
         EXPORTING
    *   I_BUFFER_ACTIVE              =
           i_structure_name             = iv_struc_name   " THIS IS YOUR STRUCTURE FOR 8 CHECK BOX
    *   I_CLIENT_NEVER_DISPLAY       = 'X'
    *   I_BYPASSING_BUFFER           =
    *   I_INTERNAL_TABNAME           =
          CHANGING
            ct_fieldcat                  = lt_struc_fld
         EXCEPTIONS
           inconsistent_interface       = 1
           program_error                = 2
           OTHERS                       = 3
        IF sy-subrc <> 0.
          ev_failed = abap_true.
          EXIT.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    * Count the columns,  create fcat
        LOOP AT lt_struc_fld INTO ls_struc_fld.
    " DEFINE THE PROPERTIES OF THE FIELDCAT
    " ONLY APPEND, IF THE USER HAS SELECTED THE CHECK BOX
          ls_fcat-dd_outlen = ls_struc_fld-intlen.
          ls_fcat-decimals = ls_struc_fld-decimals.
          ls_fcat-datatype = ls_struc_fld-datatype.
          ls_fcat-fieldname = ls_struc_fld-fieldname.
          APPEND ls_fcat TO lt_fcat.
        ENDLOOP.
      ENDIF.
    * Create a dynamic internal table
      CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = lt_fcat
        IMPORTING
          ep_table        = lt_dy_table.
    * Create dynamic work area and assign to FS
      ASSIGN lt_dy_table->* TO <fs_dyn_table>.
      CREATE DATA lt_dy_line LIKE LINE OF <fs_dyn_table>.
      ASSIGN lt_dy_line->* TO <fs_dyn_wa>.
    "NOW GET THE DATA FROM THE TABLE TO YOUR INTERNAL TABLE
    *SELECT * UP TO 4 ROWS
    *  FROM mara
    *  INTO TABLE <fs_tab>.

  • Dynamic field selection in internal table

    hello,
           I want to display the fields in the internal table dynamically.
    In myReport i am  giving plant as the input. On the basis of plant i want to dislpay work centres as the heading and for the particular plant i want to display the pieces for the confirmed operation of the particular work centre.
    workcentre1 workcentre2 workcenter3 ...........workcentren
       12               10             9               ............  4
    in my report i have to include these fields with my earlier fields
    Please help.

    hello,
           I want to display the fields in the internal table dynamically.
    In myReport i am  giving plant as the input. On the basis of plant i want to dislpay work centres as the heading and for the particular plant i want to display the pieces for the confirmed operation of the particular work centre.
    workcentre1 workcentre2 workcenter3 ...........workcentren
       12               10             9               ............  4
    in my report i have to include these fields with my earlier fields
    Please help.

  • Dynamic field Select from table

    Hi,
    I have to select certain field from table. The field which I have to select I do not know.
    It will come dynamically from program.
    Plz help me what is correct statement to execute.
    Thanks.
    S Sahoo

    Hi Sahoo,
    Pllease follow below steps.
    1, Create internal table with field Fieldname TYPE FIELDNAME (Say ITAB)
    2. Append Fields (thats you want to select) to internal table [at run time]
    3. Use
    SELECT (ITAB)
                  into table <table>
                  from <DB>
                  where <cond>
    Hope this helps,
    Nag

  • Field selection on variable screen

    Hi All,
    I have a requirement in my report.
    Selection screen would need to show:
    Material Group      - either this or the GL field must be completed
    GL account      - either this or the MG field must be completed
    How do you I go about to do this?
    Thanks.

    Hi Arun,
    my requirement is the user should be able to enter either of the fields. But if he enters one, say for eg.material group, then he should not be able to enter the GL account and vice versa.
    Is there anything we can do so that if the user enters one field then the other field should be unhighlighted or something..

  • Variable in ''Name of Variable(Input Only Using F4).' for variant attribute

    Hi All,
    I Have a small problem with saving variant.
    I am trying to save the Variant.In the varaint Attributes we have a field 'Name of Variable(Input Only Using F4).
    I  have created the PID 'XUS' in SU3.But i am not able to to view the variable in ''Name of Variable(Input Only Using F4).'.
    Anybody please let me know how to make it.
    Thanks,

    Please follow the below steps to restrict the user to access 2 company codes,
    1)Mark the IO(Company code) Authorization relavent and activate it.In the IO Business Explorer tab check the Authorization relavent check box.
    2)Go to T-code RSECADMIN -Under Maintainance -Enter the name of Authorization Object an click on create Authorization.Insert the IO and also SAP recomended Objects 1.0TCAACTVT, 2.0TCAIPROV and 3.0TCAVALID.
    Maintain the values for these objects.Select the company code and click on details.
    3)T-code RSU01-Enter the name of the user to be assigned with the authorization object and click the change button.The select the relevant authorization object and save.
    4)Create Authorisation Variable in Query Designer Create an Authorization Variable - Variable with Processing by Authorisation in Query Designer as Below for Sales Organisation
    Note : Also include all Authorisation Relevant Objects which are used in that infoprovider in addition to the above additional 3 objects otherwise you may get "No Authorisation" error when you execute the query.
    Note : 0BI_ALL is the authorization object to access all the info objects which are   authorization relevant.
    Reagrds,
    Ramitha

  • Passing variables to a BEx query dynamically

    Hi All,
    We have a requirement to pass values for variables dynamically to a Bex 7x query because we do not want to prompt any variable screen to the user. I tried few steps as suggested in SAPBEXsetVariables range but still have some questions unanswered. So request your thoughts on the same.
    Below procedure has been followed.
    1. Open Bex Analyzer
    2. Navigate to Bex Analyzer (menu) -> Design Toolbar -> Insert Button. This will switch on the Design Mode.
    3. Click on the button, select "Workbook-Specific Command" and click on next (Data provider need not be worried about at this point as it can be changed later also).
    4. Select "Process Variables" and click on Finish.
    5. One more window with an heading "Properties of Button" will be shown with fields like "Name of Button", "Range", "Button Text", "Command Range" and few other.
    6. On the right side of this window, list of Static Parameters can be created.
    7. As an example, i created below parameters
    CMD                         0          PROCESS_VARIABLES
    DATA_PROVIDER      0          DP_1
    and created a range having below details and provided this range in "Command Range" field (in button properties)
    VAR_NAME                     0         #NAME1#              
    VAR_VALUE_EXT            0          #VALUE#
    VAR_NAME_1                 0          #NAME2#
    VAR_VALUE_EXT_1         0          #VALUE2#
    8. This DID NOT WORK for me. Actually nothing was happening when the button was pressed.
    After some investigation, i figured out that i need to have one command like below
    CMD          
              1     
    SHOW_VARIABLE_SCREEN
    Without this neither the variable screen was shown nor it read the parameter values from the excel range provided.
    Once this was done, the input screen was shown and with the values that i provided in my excel range.
    Here are my questions. Pls provide your valuable inputs.
    1. Why am i forced to have a command for "SHOW_VARIABLE_SCREEN"? Is this mandatory? problem with this is that user will always be shown a input screen which we don't want (in fact the very reason for this exercise is not to show the parameter screen but to supply values to it from the back end). Is there some setting that i need to do to get rid of this?
    2. The setup can read values for only  2 parameters. i mean when there is an additional variable, the program is not reading the 3rd parameter values (of course i updated the "command range").
    VAR_NAME                     0         #NAME1#              
    VAR_VALUE_EXT            0          #VALUE#
    VAR_NAME_1                 0          #NAME2#
    VAR_VALUE_EXT_1         0          #VALUE2#
    VAR_NAME_2                 0          #NAME3#
    VAR_VALUE_EXT_2         0          #VALUE3#
    Thank you. Looking for a sooner response.
    Lohith

    Hi All,
    I figured out the mistake that i have done. Looks like the order of the commands is very important.
    In my case, i had something like below
    CMD                         0          PROCESS_VARIABLES
    DATA_PROVIDER      0          DP_1
    SUBCMD                   0          VAR_SUBMIT
    I should not have the PROCESS_VARIABLES as my first command. Instead should have DP_1 or the SUBCMD as first argument. So below order worked for me.
    DATA_PROVIDER      0          DP_1
    SUBCMD                   0          VAR_SUBMIT
    CMD                         0          PROCESS_VARIABLES
    So, i don't need to have "SHOW_VARIABLE_SCREEN" command as i don't want to show the screen.
    But my second question is still unanswered. Can you through some light on it?
    2. The setup can read values for only  2 parameters. i mean when there is an additional variable, the program is not reading the 3rd parameter values (of course i updated the "command range").
    VAR_NAME                     0         #NAME1#              
    VAR_VALUE_EXT            0          #VALUE#
    VAR_NAME_1                 0          #NAME2#
    VAR_VALUE_EXT_1         0          #VALUE2#
    VAR_NAME_2                 0          #NAME3#
    VAR_VALUE_EXT_2         0          #VALUE3#
    Lohith

  • Restriction of f4 help of a bex variable based on another variable input

    Hi,
    Could you please let me know if there is any possibility to restriction of f4 help of a bex variable based on another variable input.
    eg: when i select particular company code in one variable, i need to restrict the f4 help for another variables eg: pur. group based on selected company code.
    Regards
    Kasi

    Hi,
    Try using replacement path option in bex with replace variable with variable selction.
    Thanks.

  • How can i create a dynamic structure based on my input from a select-option

    Hello,
    This is to develop a custom report in FI for G/L Balance based on company code.
    I have an input select-option for Company code.
    Based on the range of company code my output layout should be modified.
    I am not very much sure to create a dynamic internal based on the input from a select-option.
    Can any one please let me know how can i do this.
    I would appreciate for anyone who turns up quickly.
    Thank you,
    With regs,
    Anitha Joss.

    See the following program, it builds a dynamic internal table based on the company codes from the select option. 
    report zrich_0001 .
    type-pools: slis.
    field-symbols: <dyn_table> type standard table,
                   <dyn_wa>.
    data: alv_fldcat type slis_t_fieldcat_alv,
          it_fldcat type lvc_t_fcat.
    data: it001 type table of t001 with header line.
    selection-screen begin of block b1 with frame title text-001.
    select-options: s_bukrs for it001-bukrs.
    selection-screen end of block b1.
    start-of-selection.
      select * into table it001 from t001
                     where bukrs in s_bukrs.
      perform build_dyn_itab.
    *  Build_dyn_itab
    form build_dyn_itab.
      data: index(3) type c.
      data: new_table type ref to data,
            new_line  type ref to data,
            wa_it_fldcat type lvc_s_fcat.
      clear wa_it_fldcat.
      wa_it_fldcat-fieldname = 'PERIOD' .
      wa_it_fldcat-datatype = 'CHAR'.
      wa_it_fldcat-intlen = 6.
      append wa_it_fldcat to it_fldcat .
      loop at it001.
        clear wa_it_fldcat.
        wa_it_fldcat-fieldname = it001-bukrs .
        wa_it_fldcat-datatype = 'CHAR'.
        wa_it_fldcat-intlen = 4.
        append wa_it_fldcat to it_fldcat .
      endloop.
    * Create dynamic internal table and assign to FS
      call method cl_alv_table_create=>create_dynamic_table
                   exporting
                      it_fieldcatalog = it_fldcat
                   importing
                      ep_table        = new_table.
      assign new_table->* to <dyn_table>.
    * Create dynamic work area and assign to FS
      create data new_line like line of <dyn_table>.
      assign new_line->* to <dyn_wa>.
    endform.
    Regards,
    Rich Heilman

  • WEB Application / Dynamic variable input / Prompts

    I've defined a variable on characteristic Currency with the following definition:
    Processing by              : User Entry/ Default Value
    Variable represents        : Single Value
    Variable entry is          : Optional
    Ready for input            : yes
    Can be changed in query nav: yes
    Default Value              : EUR
    This variable ist used in "Currency Translation" as "Target currency" (variables entry: yes)
    The query is used in a Web-Report that performs the following command by selecting currencies from a checkbox:
    url=SAP_BW_URL_Get() +"&CMD=PROCESS_VARIABLES&SUBCMD=VAR_SUBMIT&VAR_NAME_1=SL_CURR&VAR_VALUE_EXT_1=";
    url=url+value;
    (value is the code of the selected currency)
    Everything works pretty good, but opening the web-report I get a prompt window for the variable. How can I avoid this ?
    Changing the variable property <Ready for input : no> causes the effect that the dynamically changing of the variable doesn't work anymore. It seems that in this case always the default value of the variable is taken.
    The application should use the default value while opening the report, afterwards it should be possible to set the variable dynamically.
    Thank you very much for your ideas !!

    Hi Stefan,
    you can activate/deactivate the variable screen with parameter "Force Variable Screen" in your web template.
    bye

  • Need to implement auto suggest with multiple select in a input text field

    Hi,
    Jdev Ver: 11.1.1.4
    My requirement is to create an input field where i can provide auto suggest and user can enter multiple email ids. It is similar to current "To" field while composing a mail in Gmail.
    Problem:
    I have implemented input box with auto suggest. For the first entry it works fine. when i enter 2nd value(i have used ',' (comma) as separator and handled it in 'suggestItems' bean method to take sub-string after comma for providing the suggestion) , after selection.... the first value get lost. So at a time only one value is selected in the input text.
    Input text:
    <af:inputText label="Names" id="it21" rows="2"
    columns="50" simple="true"
    valueChangeListener="#{VisitBackingBean.visitMembersInputBoxCL}"
    binding="#{VisitBackingBean.visitMembersInputBox}">
    <af:autoSuggestBehavior suggestItems="#{VisitBackingBean.onSuggest}"/>
    </af:inputText>
    Bean Method:
    public List onSuggest(FacesContext facesContext,
    AutoSuggestUIHints autoSuggestUIHints) {
    BindingContext bctx = BindingContext.getCurrent();
    BindingContainer bindings = bctx.getCurrentBindingsEntry();
    String inputNamevalue = autoSuggestUIHints.getSubmittedValue().trim();
    if(inputNamevalue.contains(",")) {
    inputNamevalue = inputNamevalue.substring(inputNamevalue.lastIndexOf(",")+1).trim();
    //create suggestion list
    List<SelectItem> items = new ArrayList<SelectItem>();
    // if (autoSuggestUIHints.getSubmittedValue().length() > 3) {
    OperationBinding setVariable =
    (OperationBinding)bindings.get("setnameSearch");
    setVariable.getParamsMap().put("value",
    inputNamevalue);
    setVariable.execute();
    //the data in the suggest list is queried by a tree binding.
    JUCtrlHierBinding hierBinding =
    (JUCtrlHierBinding)bindings.get("AutoSuggestName_TUserROView1");
    //re-query the list based on the new bind variable values
    hierBinding.executeQuery();
    //The rangeSet, the list of queries entries, is of type //JUCtrlValueBndingRef.
    List<JUCtrlValueBindingRef> displayDataList =
    hierBinding.getRangeSet();
    for (JUCtrlValueBindingRef displayData : displayDataList) {
    Row rw = displayData.getRow();
    //populate the SelectItem list
    items.add(new SelectItem(rw.getAttribute("UsrUserName").toString().trim() +
    "<" +
    rw.getAttribute("UsrMailId").toString().trim() +
    ">",
    rw.getAttribute("UsrUserName").toString().trim() +
    "<" +
    rw.getAttribute("UsrMailId").toString().trim() +
    ">"));
    return items;
    Please suggest how can i achieve the mentioned functionality.

    Hi,
    doesn't work this way as the suggest list returns a single value. You can actually use the existing values as a prefix to the new value in which case the suggest list would look a bit odd. Beside of this all you can do is to create a user lookup field with auto suggest and once a name is selected, update another field with the value returned from this action
    Frank

Maybe you are looking for

  • Display Cutomer Details in the Order Confirmation - Webtools

    Hi I just need to need to display the user details in the email send to the user. With the reference to API I put the following html <table width="100%" border="0" cellspacing="0" cellpadding="0">      <tr>      <td width="25%">Email</td>      <td wi

  • How To Read and Write with Listbox

    Looking for a simple example on how to write data into a Listbox via my Block Diagram. That indicates to me that my Listbox needs to be an Indicator (so I can write to it). But, if my operator selects one of the items from the Listbox, I want to be a

  • Contact name auto-replacing -- can i stop it?

    this is irritating: my partners name is filed in my address book under a first name with no last name (he's legally had his name changed to a single word). in another friend's address book, the "last name" blank is filed with a quippy phrase my partn

  • JRC R2 Error not fixed

    <p><font face="arial,helvetica,sans-serif" size="2">Hi BO guys,</font></p><p><font face="arial,helvetica,sans-serif" size="2">I am using CR XI JRC R2, jar files and i get these errors in the tomcat console for all the reports that i run.</font></p><p

  • Nikon D800 thetering with LR 4.x?

    will LR4.1 support thetering with Nikon D800 - or when will ist be able?