F4 help in select option

Hi All,
We have created a select option for a field of our database table. This field has a value range in its domain. For Example
Fix Val    Short Description
01           INR
02           US
03           EUR
When i press the f4 help of select option, am able to see both the number and the description in the F4 help. But when i select a value, it is only displaying the fixed value (01) in the select option field.
But i want the Short Description to be displayed instead of the fixed value.
Please tell me how to proceed.
Thanks in advance.

Hi,
When there are any values in the domain range it considers only the fixed values (keys)
to get the description what you can do is:
1.create a your own f4 help with  the  field description.
2.in the  select options you can give the name of F4 help when you are populating the selection field.
wd_this->m_handle->add_selection_field(
                        i_description = 'Candidate Profit Center'
                        i_id = '/MRSS/T_RMOR_PROF_CENTER'
                         *i_value_help_type = if_wd_value_help_handler=>co_prefix_searchhelp*
                        *i_value_help_id = '/MRSS/SH_RM_PC_GROUP'*    
                           it_result = lt_range_table
                        i_read_only = read_only ).
Priya

Similar Messages

  • How to created Freely Programmed F4 help in Select Options

    hi,all
       I have a probelm about how to created a Freely Programmed F4 help in Select Options,and put help value into select options field
      Thanks and Best Regards

    Hi Haung,
    You need to use FREE_HELP not the component name.
    Modify you code as below:
       LT_RANGE_TABLE_V = wd_this->m_handler_V->create_range_table( 'ZCYPHDATE' ).
      wd_this->M_HANDLER_V->add_selection_field(
          i_id                         = 'ZCYPHDATE'
          it_result                    = LT_RANGE_TABLE_V
          i_value_help_type            = if_wd_value_help_handler=>CO_PREFIX_APPLDEV
          i_value_help_id              = 'FREE_HELP'
          i_no_intervals               = abap_false ).
    Hope this helps you.
    Regards,
    Rama

  • Can i assign a collective srch help for select option in list display

    can i assign a collective srch help for select option in list display

    Hi,
    Yes ,u can assign a collective search help for select-option in list display.
    Eg:
    Define your select option like this
    SELECT-OPTIONS: s_vbeln FOR likp-vbeln MATCHCODE OBJECT vmva.
    Regards,
    Shiva.

  • How to get calender in f4 help for select options in module pool (URGENT)

    Hi All,
    how to get calender in f4 help for select options in module pool
    Please help .
    Thanx in advance,
    amruta

    Hi Amruta,
    First of all, you can not create select-options directly in module pool.
    For creating <b>select-option is dialog prog</b> follow these steps:
    1. create your selection screen model as subscreen by:
    SELECTION-SCREEN BEGIN OF SCREEN 2000 AS SUBSCREEN.
    PARAMETRS: P_MATNR LIKE MARA-MATNR.
    SELECT-OPTIONS: S_BISMAT FOR MARA-BISMAT.
    SELECTION-SCREEN END OF SCREEN 2000.
    2. create a screen ( example 100 ) in your module-pool dedicated for selection-screen. on this screen layout sketch a sub-screen name like subscree_2000.
    3. write this bit of code in PBO and PAI of the screen 100;
    CALL SUBSCREEN SUBSCREEN_2000.
    4. include this code in PBO:
    INCLUDING SY-REPID '2000'
    6. write user_command of PAI, call screen which is going to executable after selection-screen.
    5. create a transcation for this dialog module pool with screen 100.
    6. execute this transaction and you can see it's behaving like cool with select-options.
    After that in [bprocee on value-request]</b>, use F4_DATE for both from and to option field.
    Hope it will solve the problem.
    Regards
    Krishnendu

  • F4 help for select options based on parameter value

    hi all,
    I need a help to create an F4 help for select options for object id based on parameter value of object type, I mean once an object type is given the f4 help should contain object id's only of that type for each option.
    Regard's,
    Girija
    Moderator Message : Duplicate post locked. Continue with [f4 help for select options based on parameter value |f4 help for select options based on parameter value;.
    Edited by: Vinod Kumar on May 17, 2011 1:36 PM

    hi all,
    I need a help to create an F4 help for select options for object id based on parameter value of object type, I mean once an object type is given the f4 help should contain object id's only of that type for each option.
    Regard's,
    Girija
    Moderator Message : Duplicate post locked. Continue with [f4 help for select options based on parameter value |f4 help for select options based on parameter value;.
    Edited by: Vinod Kumar on May 17, 2011 1:36 PM

  • Freely Programed Help for select-option field

    Hi,
    how can i set freely programmed help for select option field, i mean while adding selection field what are the parameters that are important for freely programmed help.
    i have implemented iwd_value_help in one component comp1 and declared the usage of comp1 in comp2 where i actually defined the usage of select-option component.
    i used parameter   i_value_help_type = if_wd_value_help_handler=>co_prefix_appldev while adding selection field, however when i presss F4 icon, the following message is coming
    View WD_VALUE_HELP does not exist within the component WDR_SELECT_OPTIONS
    Please suggest where i am doing wrong??
    Edited by: kranthi kumar on Dec 29, 2010 6:19 PM

    >
    kranthi kumar wrote:
    > Hi,
    >
    > how can i set freely programmed help for select option field, i mean while adding selection field what are the parameters that are important for freely programmed help.
    >
    > i have implemented iwd_value_help in one component comp1 and declared the usage of comp1 in comp2 where i actually defined the usage of select-option component.
    >
    > i used parameter   i_value_help_type = if_wd_value_help_handler=>co_prefix_appldev while adding selection field, however when i presss F4 icon, the following message is coming
    >
    > View WD_VALUE_HELP does not exist within the component WDR_SELECT_OPTIONS
    >
    > Please suggest where i am doing wrong??
    >
    > Edited by: kranthi kumar on Dec 29, 2010 6:19 PM
    Hi Kranthi,
    Please help me to understand your design.
    Why would you like to create a Freely programmed value help for select-option?. why not use wdr_select_option directly ?

  • Applying stadard search help to SELECT-OPTIONS

    applying stadard search help to SELECT-OPTIONS
    i have the below code in the selection screen:
    SELECT-OPTIONS : so_stain FOR gv_stai1
                                  MATCHCODE OBJECT ZSTA,
                     so_staex FOR gv_stai1
                                  MATCHCODE OBJECT ZSTA.
    where ZSTA is the search help defined in the data dictionary which is the copy on standard SAP search help..
    but this is not working..:(  when i run the program and click on the
    F4 help for these two fields i get no out put..
    can any one suggest me to search help to select-options..

    Hi,
    u can see this example code for f4 help on the select-option,
    DATA: li_ret_tab TYPE STANDARD TABLE OF ddshretval,
            lws_retfield TYPE dfies-fieldname.
      DATA : wa_ret_tab LIKE LINE OF li_ret_tab.
    **- Get the device numbers
      SELECT serge FROM equi
             INTO TABLE i_help1
             WHERE sparte EQ c_51.
      IF sy-subrc EQ 0.
        lws_retfield = text-030.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            retfield        = s_device
            dynpprog        = sy-repid
            dynpnr          = c_dynpnr
            dynprofield     = s_device
            value_org       = 'S'
          TABLES
            value_tab       = i_help1
          EXCEPTIONS
            parameter_error = 1
            no_values_found = 2
            OTHERS          = 3.
        IF sy-subrc <> 0.
        ENDIF.
      ENDIF.
    Regards,
    kk.

  • Problem on Search Help  for select-option

    Hi,
    Iam working on a search help for select-option,
    is there a way to incorporate select-all or multiple
    selection on this?
    Thanks!

    Hi catherine,
    1. Just copy paste this program.
      (It will POPULATE the SELECT-OPTION,
       based upon
       MULTIPLE Selection,
       selected by the user,
       in the  help provided thru F4IF_INT_TABLE_VALUE_REQUEST.)
    2. Eg. is for BUKRS (company code)
    3.
    REPORT ABC.
    TABLES : T001.
    DATA : ITAB LIKE TABLE OF T001 WITH HEADER LINE.
    DATA : RETURN LIKE TABLE OF DDSHRETVAL WITH HEADER LINE.
    SELECT-OPTIONS : BUKRS FOR T001-BUKRS.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR BUKRS-LOW.
    PERFORM MYPOPULATE.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR BUKRS-HIGH.
    PERFORM MYPOPULATE.
    FORM MYPOPULATE.
      REFRESH ITAB.
      SELECT * FROM T001 INTO TABLE ITAB.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'BUKRS'
          dynprofield     = 'BUKRS'
          dynpprog        = sy-REPID
          dynpnr          = sy-dynnr
          multiple_choice = 'X'
          value_org       = 'S'
        TABLES
          value_tab       = ITAB
          return_tab      = return.
    IF RETURN[] IS NOT INITIAL.
    REFRESH BUKRS.
    CLEAR BUKRS.
      LOOP AT RETURN.
        BUKRS-SIGN = 'I'.
        BUKRS-OPTION = 'EQ'.
        BUKRS-LOW = RETURN-FIELDVAL.
        BUKRS-HIGH = RETURN-FIELDVAL.
        APPEND BUKRS.
      ENDLOOP.
    ENDIF.
    ENDFORM.
    regards,
    amit m.

  • OVS Help in Select Options-Text to be Shown and Code to be captured

    Hello Experts,
    I am using Select options in web dynpro abap.
    On a particular View container i have added a selection field using ADD_SELECTION_FIELD which has an OVS help to it.
    The selection field is of type CODE.
    And on click of a button i am reading the select option fields using GET_RANGE_TABLE_OF_SEL_FIELD and assigining this to a
    field symbol which inturn is being set to an attribute.
    My requirement is to show the TEXT to the user and send the CODE to the method which is called
    when the button is clicked and a table is populated.
    Normally we can keep two attributes one for TEXT and the other for CODE but for Select options i am not very sure how this can be achieved.
    Because in select options we are reading the values present on the select option field and there may be multiple values.
    Please guide me through this.
    Thanks in Advance,
    Shravan

    Hello Shravan,
    This can be easily achieved if you convert the selection field to dropdown.
    Create a valueset containing the list of valid values and then pass this to the ADD_SELECTION_FIELD method
    "Creating valueset
    DATA lt_valueset TYPE wdy_key_value_table.
    DATA ls_valueset LIKE LINE OF lt_valueset.
      ls_valueset-key = 'EN'.
      ls_valueset-value = 'English'.
      APPEND ls_valueset TO lt_valueset.
    "Creating selection field as Dropdown
    lr_helper->add_selection_field( i_id = <ID>
                                                       it_result = lt_range
                                                       i_as_dropdown = abap_true
                                                      it_value_set = lt_valueset ).
    BR, Saravanan

  • Help on select options.

    Hi gurus!!
    I have a report where in i am putting the values in select-options. but yj eproblem i have is when i am not putting any values i am getting the correct output.
    but with the same data i am putting the values in low or high i am not getting any data..
    so i think i need to put all the entrioes of the select option in an internal table or ranges i dont know and then we give some code like
    ranges : ra_stotal for ztsd120-zlow.
    ra_stotal-sign = 'I'.
    ra_stotal-option = 'BT'.
    ra_stotal-low = zlow-low.
    ra_stotal-high = zlow-high.
    append ra_stotal.
    clear ra_stotal.
    Can anyone tell me if this is what i got to do if so how?
    or is there some other way out?

    Hi Mona,
    Please check the below code in BOLD letter....
    I guess you are having a problem in SELECT-OPTIONS because ...might be u r using EQ in where condition of your select query. Whenever u r using SELECT-OPTIONS, it should be "IN" in the where condition.
    Eg:-  SELECT  <field names>
               FROM MARA
               INTO TABLE  <it_tablename>
              WHERE matnr IN  s_matnr.
    Reward points for helpful answers.
    Regards,
    HK.

  • Serach help in Select-option in WD ABAP

    Hi Folks,
    I am using WDR_SELECT_OPTIONS reusable component in my Component.  I want to attach customized search help particular fild while creating select-option using
    wd_this->m_handler->add_selection_field(
                 i_id        = 'IWERK'
                 it_result   = lt_range_table
                 i_read_only = read_only ).
    Can anyone explian how can I attach search help here.
    Regards,
    Vishal.

    Hi Vishal,
    If its a search help, use the following code:
    lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'S_PLANETYE' ).
    wd_this->m_handler->add_selection_field(
    i_id = 'S_PLANETYE'
    it_result = lt_range_table
    i_read_only = read_only
    I_VALUE_HELP_TYPE = 'SEARCHHELP'
    i_value_help_id = 'Z_SAPLANE' ).
    In this example, 'Z_SAPLANE' is the dictionary search help.
    This will solve your problem
    For further details, goto interface IF_WD_VALUE_HELP_HANDLER to get a list of values you can supply to parameter I_VALUE_HELP_TYPE.
    This is similar to what you do with a context, similar to the options you get in the dropdown for Input Help property.
    Regards,
    Chitrali

  • Personalised Value Help in Select-Option field WD ABAP

    Hi
    I would like to know how I could provide the user with generic value help. I am using the Select Options in a Web Dynpro(ABAP) Application.
    Regards
    Faaiez

    Hi
    The key word here is "generic value help". This means the values that I want to fill the drop down with changes all the time based on various criteria. I need to fill the help values within the ABAP code based on the values in internal tables.
    Regards
    Faaiez

  • F4 Help for select-options.

    Hi  Experts,
    I need to use F4 help for a select - options field from a particular table.I have written the below code and it worked well.
    FORM sub_show_help.
      SELECT bukrs
       FROM zfica_accurate
        INTO TABLE gt_accurate.
        delete ADJACENT DUPLICATES FROM gt_accurate.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'BUKRS'
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          dynprofield     = 'S_CMCODE'
          window_title    = 'COMPANY CODE'
          value_org       = 'S'
          multiple_choice = 'X'
        TABLES
          value_tab       = gt_accurate
          return_tab      = gt_return.
      s_cmcode-sign    = 'I'.
      s_cmcode-option  = 'EQ'.
      LOOP AT gt_return INTO gw_return .
        s_cmcode-low = gw_return-fieldval.
        APPEND s_cmcode.
      ENDLOOP.
      READ TABLE s_cmcode INDEX 1.
      IF sy-subrc = 0.
        gw_dynpread-fieldname  = text-018.
        gw_dynpread-fieldvalue = s_cmcode-low.
        APPEND gw_dynpread TO gt_dynpread.
    UPDATE THE SCREEN FIELD VALUES
        CALL FUNCTION 'DYNP_VALUES_UPDATE'
          EXPORTING
            dyname               = sy-repid
            dynumb               = sy-dynnr
          TABLES
            dynpfields           = gt_dynpread
          EXCEPTIONS
            invalid_abapworkarea = 1
            invalid_dynprofield  = 2
            invalid_dynproname   = 3
            invalid_dynpronummer = 4
            invalid_request      = 5
            no_fielddescription  = 6
            undefind_error       = 7
            OTHERS               = 8.
      ENDIF.
      IF sy-subrc <> 0.
        MESSAGE i003.
      ENDIF.
    The problem is , I need to create a new type for s_cmcode(select-option ) field with the same structure as the select-option and the code is as below. I have created an internal table gt_sfield similar to s_cmcode . I have replaced s_cmcode with gt_sfield but the below code is not working. Its the same as the above program but its not showing up the values in the field.Could anyone please help me.
    fORM SUB_SHOW_HELP.
      SELECT BUKRS
       FROM ZFICA_ACCURATE
        INTO TABLE GT_ACCURATE.
    gt_sfield[] = s_cmcode[].
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          RETFIELD        = 'BUKRS'
          DYNPPROG        = SY-REPID
          DYNPNR          = SY-DYNNR
          WINDOW_TITLE    = 'COMPANY CODE'
          VALUE_ORG       = 'S'
          MULTIPLE_CHOICE = 'X'
        TABLES
          VALUE_TAB       = GT_ACCURATE
          RETURN_TAB      = GT_RETURN.
      LOOP AT GT_RETURN INTO gw_return.
          gw_sfield-SIGN    = 'I'.
          gw_sfield-OPTION  = 'EQ'.
        MOve gw_return-fieldval to gw_sfield-low.
        APPEND gw_sfield to gt_sfield.
    ENDLOOP.
      READ TABLE gt_sfield INDEX 1 INTO gw_sfield .
      IF SY-SUBRC = 0.
        gw_dynpread-fieldname = 'S_CMCODE'.
        move  gw_sfield-low to gw_dynpread-fieldvalue.
        APPEND GW_DYNPREAD TO GT_DYNPREAD.
    UPDATE THE SCREEN FIELD VALUES
        CALL FUNCTION 'DYNP_VALUES_UPDATE'
          EXPORTING
            DYNAME               = SY-REPID
            DYNUMB               = SY-DYNNR
          TABLES
            DYNPFIELDS           = GT_DYNPREAD
          EXCEPTIONS
            INVALID_ABAPWORKAREA = 1
            INVALID_DYNPROFIELD  = 2
            INVALID_DYNPRONAME   = 3
            INVALID_DYNPRONUMMER = 4
            INVALID_REQUEST      = 5
            NO_FIELDDESCRIPTION  = 6
            UNDEFIND_ERROR       = 7
            OTHERS               = 8.
      ENDIF.
      IF SY-SUBRC <> 0.
        MESSAGE I003.
      ENDIF.
    ENDFORM.

    Hi,
    The fucntion module 'DYNP_VALUES_UPDATE' should be used only for updating the screen field values. In your case you are updating the internal table using this function module.
    Thanks
    Pavan

  • Search Help in Select - Options for Time field

    Hi,
    I have a select option which is a  time field.
    For date field the F4 help is automatically generated.
    How to get F4 help for time field.
    Regards,
    Remo

    Selection-Options or normal field - it doesn't matter.  There is no system delivered value help for a time field. This is documented in the online help:
    There is no automatic F4 help for data element TIMS.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/9f724642314aabe10000000a42189b/frameset.htm
    You would have to create your freely programmed value help if you want something like the time value help available in the SAPGUI.

  • Value help for select-option not filling selection field

    I'm having some problems with a value help on a select-option. I've managed to get the value help displaying the correct values but for some reason can't get it to populate the selection field after I've selected a record.
    I have the following call:
      wd_this->m_handler->add_selection_field(
                          i_id = 'SHORT_D'
                          i_description = 'Program'
                          it_result = lt_range_table
                          i_read_only = read_only
                          i_value_help_type = IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_SEARCHHELP
                          i_value_help_id = 'ZPROGSTUDY' ).
    where ZPROGSTUDY is a new search help I've set up with an exit to retrieve the values.
    Any ideas ? Thanks.

    Hi Malcolm,
    The code you have is OK. I copied your code into a test program and it worked as expected.
    I used a search help where the possible values are populated in the search help exit, exactly as in your case. The only time it did not work was when read_only = X, but that is obvious also from a visual point of view since the input field is greyed out in that case. The popup also tells you is in RO mode...
    Does your SHLP work when you test it from SE11? Returns values?
    SAP provides a lot of WD4A sample code, see for example component WDR_TEST_SELECT_OPTIONS look for
    select-option fields > special cases > input helps > Non field-specific input help using search help
    Regards,
    George

Maybe you are looking for

  • Sub contracting GRN out put

    Hi gurus, i am getting sub contracting GRN print with the material sent to the vendor and the materials recived. and all these are comming one item for one page. i dont want the materials issued to vendor to be printed,all the recieving materials in

  • Hi there, putting movies in ipod classic.?

    Hi all, Can anybody tell if it is possible to put movies or TV programs like Dora the explorer or Spongebob in the IPOD classic. I have them in the itunes library but i cannot transfer it to the ipod it self. Thanks

  • Implicit fact columns

    Hi all, I have 5 dimensions and 6 fact tables. I have created common fact table which contains all other fact measure columns. I have to assign Implicit fact columns in presentation layer. Please Guide me which column i have to assign. Thanks in adva

  • I saw Goodnews Bible on American store, but it is not available on Nigerian store. How do i purchase it?

    I saw Goodnews Bible on American store, but it is not available on Nigerian store. How do i purchase it?

  • Plugin in background

    Hi. I am building a Plugin for adobe reader and would like it to run cuntinusly in the background from when adobe reader start. I can really find help in the documentation... Is there an example of something? Thanks. Noam