BEx Selection screen Hierarchy display (text - key)

Hi,
We have a new query deployed that uses several hierarchies in the selection screen.
When running the reports, the drop down for the hierarchies on the variable selection screen displays the full text. 
However, the users are more familiar with the key value and would prefer to see that.  In the actual report, the keys are displayed.
I am trying to find where the default display can be set for the hierarchies on the BEx selection screen so I can show the key values?
Thanks!
Darryl
Edited by: Darryl Goveas on Nov 16, 2011 12:14 PM

Create a FM like below and a wrapper for it so you can call it as part of process chain; we load all of our hierarchies then call this:
FUNCTION ZBW_CHANGE_HIER_DISPLAYNAME.
""Local Interface:
*"  EXPORTING
*"     VALUE(RETURN) TYPE  BAPIRET2
  data: hieid(25) type c,
        hienm(30) type c,
        lgtxt(60) type c.
  RETURN-TYPE = 'I'.
  RETURN-ID = '01'.
Select each hierarchy from list table
  select nhieid nhienm t~txtmd
  into (hieid, hienm, lgtxt)
  from rshiedir as n
  join rshiedirt as t
  on nhieid = thieid
  where n~objvers = 'A'
  and   t~objvers = 'A'.
    if sy-subrc = 0.
    concatenate Key and Text
      concatenate hienm '-' lgtxt into lgtxt SEPARATED BY space.
    update table with new description
      update rshiedirt
      set TXTLG = lgtxt
      where langu = 'E'
      and hieid   = hieid
      and objvers = 'A'.
      if sy-subrc = 0.
        RETURN-NUMBER = '001'.
        RETURN-MESSAGE = 'Successfully updated Hierarchy Descriptions.'.
      else.
        RETURN-NUMBER = '002'.
        RETURN-MESSAGE = 'Error when updating Hierarchy Descriptions.'.
      endif.
    else.
      RETURN-NUMBER = '003'.
      RETURN-MESSAGE = 'Error when selecting Hierarchy Descriptions.'.
    endif.
  endselect.

Similar Messages

  • Change of variable text in BEx selection screen

    Hi all,
    in our BW system the key users are allowed to create queries and also create variables. In some cases, especially for often used info objects like 0DATE the number of variables is increasing very quickly. The reason for this is, that 0DATE is used for a big variety of meanings e.g. delivery date, order date, invoice date etc.
    So the users always create new variables only to have a meaningful description in the BEx selection screen, because they do not want only "date" to be displayed here. As result we have many different varianbles with exactly the same technical settings with only different names.
    So my question is: Is it possible to change the diplayed text in the selection screen for each query without having to create a new variable?
    Thanek you and best regards

    Hi Stephan,
    Changing the diplayed text in the selection screen for each query is not possible.You have to create a new variable for each query.
    Rgds,
    Murali

  • 'Text' of a variable in Bex selection screen

    Hello,
    We have a customer exit variable in Bex Query selection.it is mandatory,ready for input,interval which is on 0CALMONTH2.
    In Bex selection screen i am not getting text of default/entered months.
    for example: if default value is 2 to 4,then text would be FEB to APR.
    what could be the reason?how to get teaxts of entered values?
    (we have one more customer exit variable on 0CALMONTH2 which is single value and it shows text of enterd values in bex selection)
    In web it is working fine.
    Rakesh

    Hi,
    Try to create an another customer exit variable for 0CALMONTH2 with mandatory,ready for input,interval. refer the abap code of the another customer exit variable(single value variable) of 0CALMONTH2 which you have mentioned in the bracket and modify the abap code based on the selection - interval. hope it  helps.
    Regs,
    Vachan

  • Regarding Selection-Screen Field Display

    Hi All,
    I have issues with Selection-Screen field display.
    The Actual issue is i had declared a selection screen field as: <b>s_exgen FOR embk-exgen</b>.
    <b>EMBK-EXGEN</b> is actually <b>20</b> Char length field.
    But in output display it is being shown as <b>18</b> Char field though i can type in all <b>20</b> characters.
    But <b>display</b> restricted to <b>18</b> Characters only.
    Can anybody give me the solution for the same!
    Thanks in advance.
    Thanks & Regards,
    Prasad.

    Hi,
    You can decrease the visible length of the field but you can not increase more than database field length. check SAP help on this :
    select-options: s_exgen FOR embk-exgen VISIBLE LENGTH 5.
    ... VISIBLE LENGTH vlen
    Effect
    This addition allows you to shorten the visible length of the corresponding screen field on the selection screen to vlen.
    Variant 2
    SELECT-OPTIONS sel FOR (f).
    Additions as in variant 1.
    Effect
    In this variant, (f) must be a field containing the name of the actual reference field at runtime. The system creates the LOW and HIGH fields as character fields with length 45. However, their appearance on the selection <b>screen is inherited from the reference field whose name is contained in field f at runtime.</b>
    Regards
    Appana

  • BEX Selection screen in an endless loop when pressing the Check button

    Hello SDN
    Has anyone faced this issue before where the BEX selection screen seems to get its knickers in a twist and goes into an endless loopp when the Check button is clicked? It goes through fine if I directly hit execute.
    Anyone ? Any ideas ?

    Never seen it before but here is something to check..
    Does the query have a variable with processing type of customer exit. If yes, look at the user exit code in step 3  which is used for input value validation.
    Vineet

  • How to create selections-screens to display PO using module pool program

    All,
    I'm new to module pool programming. Can any one please provide me where to create selections screens to display existing purchase orders using the below selection criteria in thr module pool program.,
    SELECT-OPTIONS : S_LIFNR FOR EKKO-LIFNR,
                     S_BSART FOR EKKO-BSART,
                     S_BUKRS FOR EKKO-BUKRS,
                     S_WERKS FOR EKPO-WERKS OBLIGATORY,
                     S_BEDAT FOR SY-DATUM,
                     S_EINDT FOR EKET-EINDT,
                     S_EBELN FOR EKKO-EBELN,
                     S_MATNR FOR EKPO-MATNR.
    provide me step by step to do this.

    Hi,
    Thanks for the reply can you please let me know.
    How can I create the ranges
    like low and high in the selection.
    Using se51 i was able to do only one i,e
    example I need
    purchase order number----
    f4 -
    f4
    Can please tell me how to do this

  • How to pass selection screen parameters in text elements?

    how to pass selection screen parameters in text elements?

    don't you mean he other way around. Assign text-elements (selection texts) to select options?
    This you do in the menu where you can find text-elements, selection texts.
    menu Goto->text elements->selection texts.
    Edited by: Micky Oestreich on May 10, 2008 2:45 PM

  • Display compounded InfoObject value in BEX selection screen

    Hi people,
    Problem in 7.0
    I have Costcenter compounded with Plant and I am using Costcenter for Selections in the BEx varaible screen.
    After running the report, in the selection screen value help, only the value of Costcenter is displayed, not the compounded value (So it becomes very difficult to identify from which plant  the costcenter is from)
    What should I do so that the User sees as Plant/Costcenter in the Value help?
    Problem in 3.5
    The above issue is not there in 3.5, but.......
    I select COSTCENTER X from PLANT A and execute the report. In the report output, I do not see the records only for COSTCENTER X from PLANT A, but for COSTCENTER X from all Plants
    why is this? Is it how this works or is it a bug?
    Please help. I appreciate your assistance very much.
    Thanks,
    Shameem

    Hey there,
    Please understand the behaviour of compounded keys from the below notes:
    1111632   Problem with text display in BEx Query Designer
    1080863   FAQ: Input helps in Netweaver BI
    541253    Restricting characteristics with compound characteristics
    575563    Selecting filter values for compound characteristics
    Hope this can help,
    Diego Seben

  • Hierarchy in selection screen shows Short Text, I want to change it to Med

    Hi
    It seems that the selection popup of Hier is using the Short Text of the Charc.
    Can I change it to use Med Text?
    I tried in the Query, it only changes the way the Hier is presented in the reort
    and not in the selection screen.
    Thanks
    Edan

    Hi Edan,
    You could select the type of text you want to display on selection screen by choosing the same under the Business Explorer tab of your Hierarchy infoObject.
    Go to RSA1 -> infoObject -> find your hierarchy infoObject -> Display -> Business Explorer tab ->
    Text type -> Medium-length text.
    Hope this helps!
    Regards,
    Saurabh

  • Hierarchy in BEx selection screen

    Hi, how can I get a variable with hierarchy in the selection screen?
    1)how do I create a variable based on hierarchy?
    Can someone please give me steps?
    Thanks,
    Radha

    That was helpful. 
    Variable hierarchy – variable hierarchy nodes
           <i>1.      In the top left of the selection field, choose Single values and a hierarchy that contains the required hierarchy node, from the top right corner.
           2.      Select the Variables tab page.
           3.      Select the required variable from the list of available variables on the left-hand side.
           4.      Select the required variable and drag it into the Selection box on the right (or use the arrow icon pointing to the right).
           5.      Highlight a hierarchy node in the right-hand box and choose Select variable hierarchy from the context menu (right mouse button). You reach the Select Variable for Hierarchy dialog box.
           6.      Select a variable hierarchy. See also: Selecting Hierarchies
           7.      Choose OK.</i>
    In this, in the 2nd point, I am not getti

  • Web reporting - variable selection should be display as key and description

    hi experts,
    Can anybody tell me the solution for my issue. My isssue is , in the web reporting, i have variable company code, i am selecting the company code thru search help. the values for company code is displaying with key. 
    the new requirement should be displayed with key and description.
    I have checked in the bex, the properties  of company code has maintained as key. when i run the report when cas selet as key and descritption. bex is not a probelm.
    only the problew with webreports,  can anybody give some inptus on my issue.
    Any help is appreciated. waiting for your response.
    thanks
    surendra sheety

    For future reference, this question was finally answered correctly recently in the following thread: 
    F4 help - Search values - I need key and text
    Hope this helps someone who is as confused about this as I have been the past few days!
    Bob

  • Collect Bex selection screen in BAPI

    Hi all,
    I have created a Bex Query in BI7.4, and i want to load a virtual key figure. To do that i have created a Bapi based on my multiprovider. For the moment all is ok.
    In the selection screen of my query i have a calmonth selection (from -> to).
    And in my bapi the load of my virtual KF depends of the calmonth enter in the selection screen, but i do not know how to collect the entered calmonth.
    I have declared all attributes, updated the define and compute method but anywhere i found the calconth of the selection screen.
    Is it possible to collect that in a BAPI?
    Thanks a lot,
    BR,
    Karol

    Hi,
    Thanks Srilakshmi for your answer.
    But it is not as easier as you said.
    In my report I need to display in the first column the material number and in a second column the max stock quantity depending the period enter in the selection screen.
    So in my BAPI, I need to loop in my DSO (where are store the daily stock quantity) to find the max quantity for the period (from -> to) enter by the user.
    Example, if the user enter 01.2013 -> 03.2013, I must display the max stock quantity between the 01.01.13 to the 31.03.13 and if , the user enter 01.2013 -> 12.2013, I must display the max stock quantity between the 01.01.13 to the 31.12.13.
    I think that it is not possible with a RKF. What do you think about that, is it possible?
    So a would like to collect the calmonth enter by that user in my “where” clause of my loop in the bapi.
    Thanks a lot for your help.
    BR,
    Karol

  • Bex selection screen does not appear when running workbook via RRMX.

    Hi Experts,
    I have following problem: When I run a BEx workbook from a user menu (trans. RRMX), I get no selection screen, but just the workbook with text: "no data found". When I press the refresh button (variable change button), the selection screen appears and after that the data are visible in the workbook. When I run the underlying query the selection screen appears normally. With some other workbooks with selections I do not have such a problem.
    Anybody can give me a hint how to get the selection screen diplayed? We are on BI 7.1, Bex SP 10, patch 1.
    Thank you,
    Michal

    Dear Michal,
    Your Question:
    Anybody can give me a hint how to get the selection screen diplayed? We are on BI 7.1, Bex SP 10, patch 1.
    Answer:
    Open the workbook and goto workbook setting from the analyzer design toolbar.
    Check the Refresh workbook on check box.
    So every time the selection screen will be appear after exectuion of the workbook.
    Thanks & Regards,
    Praveen.K

  • Selection screen in display mode

    Hi all,
    I have a selection screen with 2 radio buttons & 2 text boxes. If I click the first radio button, the 2nd text box shud be in display mode & if I click the 2nd radio button, the 1st text box shud be in display mode.
    How to do it?
    Thanks in advance.
    SELECTION-SCREEN BEGIN OF BLOCK MODE WITH FRAME TITLE title.
    parameters : s_pr radiobutton group g1,
                 s_po radiobutton group g1.
    select-options : s_prnum for eban-banfn.
    select-options : s_ponum for eban-ebeln.
    SELECTION-SCREEN END OF BLOCK MODE.
    Pls look into the code above.
    G.Vijay

    Hi vijaykumar,
    1. simple.
    2. your code only,
       just copy paste.
    3. It will work as u require.
    4.
    report abc.
    TABLES : EBAN.
    SELECTION-SCREEN BEGIN OF BLOCK MODE WITH FRAME TITLE title.
    parameters : s_pr radiobutton group g1 <b>USER-COMMAND RAD DEFAULT 'X'</b>,
    s_po radiobutton group g1.
    select-options : s_prnum for eban-banfn <b>MODIF ID M1</b>.
    select-options : s_ponum for eban-ebeln <b>MODIF ID M2</b>.
    SELECTION-SCREEN END OF BLOCK MODE.
    <b>at selection-screen output.</b>
      LOOP AT SCREEN.
        IF S_PR = 'X' AND SCREEN-GROUP1 = 'M2'.
          SCREEN-INPUT = 0.
          MODIFY SCREEN.
        ENDIF.
          IF S_PO = 'X' AND SCREEN-GROUP1 = 'M1'.
          SCREEN-INPUT = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    regards,
    amit m.

  • Issue with BEx selection screen

    Hi Gurus,
    We recently upgraded from BW 3.5 to 7.0. After the upgrade, while running the BEx queries the selection screen is not popping up and the query runs without the selections in it. Then the report errors out.... " Error Specify a value for variable XXXX".
    Apparently, the query runs fine with selection when executed on WEB.
    Did anyone of you come across with this issue..
    Thanks
    James.

    Hi Guys
    Run your query without the variable ,Try by removing the restrcition , if it is working fine without the variable then
    I would suggest to check your  variable once again like
          Check if 'Ready for input' check is checked for the respective variable,
           Remove the restriction ( drag out the variable )
          check your variable once again with all the setting and variable type
    OR create a new varilable, if it is a customer exit type then check ABAP code written for populating values.
    let me know if this helps,
    cheers
    sukhi

Maybe you are looking for