Matchcode for subscreen select options

Hi,
I am displaying a selection screen subscreen as a popup in my report using module pool and it has two fields say,
1. ABC
2. XYZ
I need to implement custom search help for these two fields.
The problem is where to implement this??
My report structure,
1.Main Selection screen
2.Selection screen subscreen
I am not able to write anything in AT SELECTION SCREEN events as it isnt getting triggered for the subscreen fields - ABCand XYZ. I then debugged and checked that when I click F4 on these two fields it is going to the USER COMMAND of the module pool screen with SY-UCOMM &SAV irrespective of the screen fields clicked.
Is there any way to identify which field was clicked so that I can build my custom search help?

Check my code,
SELECTION-SCREEN BEGIN OF BLOCK zb1.
SELECT-OPTIONS : s_pgc   FOR zdpmotac-pl    MATCHCODE OBJECT zz_sh_prog,          "Program Code
                  s_ver   FOR zdpmotac-ver   MATCHCODE OBJECT zz_sh_prog_version,  "Version
                  s_verrk FOR zdpmotac-verrk MATCHCODE OBJECT zz_sh_prog_verrk,    "Version/Rank
                  s_msn   FOR zdpmotac-msn   MATCHCODE OBJECT zz_sh_prog_msn.      "MSN
SELECTION-SCREEN END OF BLOCK zb1.
SELECTION-SCREEN : BEGIN OF SCREEN 0500 AS SUBSCREEN.
SELECT-OPTIONS : s_msn_p  FOR zdpmotac-msn,
                                s_verk_p FOR zdpmotac-verrk.
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN : BEGIN OF LINE,
                  PUSHBUTTON 2(15)  b_but1 USER-COMMAND vald,
                  PUSHBUTTON 17(30) b_but2 USER-COMMAND canc VISIBLE LENGTH 13,
                  END OF LINE.
SELECTION-SCREEN END OF SCREEN 0500.
I have to give search help for fields s_msn_p and s_verk_p. I tried giving an at selection screen as suggested by you below that,
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_msn_p-low.
       lwa_field_tab-tabname = 'ZDPMOTAC'.
       lwa_field_tab-fieldname = 'MSN'.
       APPEND lwa_field_tab TO lt_field_tab.
       lw_retfield = 'MSN'.
       SELECT msn FROM zdpmotac INTO TABLE lt_msntab.
       DELETE ADJACENT DUPLICATES FROM lt_msntab.
       CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
         EXPORTING
           retfield        = lw_retfield
           dynpprog        = sy-repid
*         value_org       = 'S'
         TABLES
           value_tab       = lt_msntab
           field_tab       = lt_field_tab
           return_tab      = lt_return_tab
         EXCEPTIONS
           parameter_error = 1
           no_values_found = 2
           OTHERS          = 3.
       IF sy-subrc <> 0.
* Implement suitable error handling here
       ENDIF.
But even then it isnt working for me. Am i missing something here?

Similar Messages

  • Search help for a  select options

    Hi ,
    I need to place a search help for a select-options field on my report selection screen. It should work for a z-table field . I can create a search help for the Z-table field , but I do not know how to make it available for the select-options.
    Thank you .

    hi Krish,
    SELECT OPTIONS ... MATCHCODE OBJECT name_of_search_help.
    hope this helps
    ec

  • How To... Change the Data Type for a SELECT-OPTIONS at run time.

    Hello,
    I am trying to restrict the values available for entry into a SELECT-OPTIONS at run time depending on user input.
    The logic is as follows. The user has two input fields. A PARAMETER field which has the type RSDIOBJNM and allows them to choose an InfoObject. And the user has a SELECT-OPTIONS field to allow them to select the Characteristic values for that InfoObject.
    I would like the following example to be possible:
    The user enters 0MATERIAL into the PARAMETER. When the user clicks on the SELECT-OPTIONS control code will derive a list of possible options the user can enter in the SELECT-OPTIONS. In this case only values found in the master data or at least no values greater than 18 characters.
    I have looked at the following function module SELECT_OPTIONS_RESTRICT and this do not appear to be helpful as they only restrict on the signs allowed for the values (unless I misunderstand, it is a complex function module!).
    The code I have so far is (thus the user enters a InfoObject into p_char1 and the select options so_char1 should only accept active values of that InfoObject):
    declaration of variables for user interface
      DATA c_char(32) TYPE c.
    declaration of count variable
      DATA i_count TYPE i.
    declaration of user interface
      SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-001.
        PARAMETERS: p_ipack TYPE RSLOGDPID.
      SELECTION-SCREEN END OF BLOCK a1.
      SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-002.
        PARAMETERS: p_char1 TYPE RSDIOBJNM.
        SELECT-OPTIONS: so_char1  for c_char NO INTERVALS.
        PARAMETERS: p_char2 TYPE RSDIOBJNM.
        SELECT-OPTIONS: so_char2  for c_char NO INTERVALS.
        PARAMETERS: p_char3 TYPE RSDIOBJNM.
        SELECT-OPTIONS: so_char3  for c_char NO INTERVALS.
      SELECTION-SCREEN END OF BLOCK b1.
    Is what I am trying to do possible???
    Thanks for any help. Ross.

    You really want to restrict possible values of a select-option based on another field, not change the length of type of the select-option field, right?
    Here is what you do:  Code a custom F4 value help for the select-option at event AT SELECTION-SCREEN ON VALUE REQUEST FOR..  The first thing you do here is read the value of the parameter field (p_ipack in your example).  You can use function module DYNP_VALUES_READ.  Based on this value, you can propose values for the select-option fields.  Note that the use can still enter whatever s(he) wishes in to the select-option field without pressing F4. In this case, you will have to code some input validations taking into account the value in the p_ipack field.

  • Can i have html code for date select options (SEARCH HELP)

    Hi frinds,
    I have a BSP Page with input as date.
    Can i have html code for date select options (SEARCH HELP)
    Moosa

    Hi
    Please find the sample code below.
    FROM DATE
          <htmlb:inputField id        = "dd"
                            width     = "45%"
                            type      = "DATE"
                            showHelp  = "X" <- Search help
                            alignment = "CENTER"
                            maxlength = "10"
                            disabled  = "TRUE"
                            value     = "<%= w_FROMDATE %>" />
    TO DATE
          <htmlb:inputField id        = "dd"
                            width     = "45%"
                            type      = "DATE"
                            showHelp  = "X"
                            alignment = "CENTER"
                            maxlength = "10"
                            disabled  = "TRUE"                      
    value     = "<%= w_TODATE %>" />
    Thanks
    kalyan

  • One search help for multiple select-options in webdynpro abap

    Hi,
    I need a way to use one search help for multiple select-options fields. My scenario is :
    I have a table for keeping different organizational units' values of different systems. I have pasted some sample data from this table at the end of this mail. On the screen I want to have 1 select-options filed for werks, and 1 select-options filed for vkorg. (In fact I will have more org. unit fields...) In the beginning of my application the user will select sid.
    If the user selects ADS as SID, when he opens search-help for the first org. unit (werks), he will see the records with SID: ADS, VARBL = $WERKS, LANGU = SY-LANGU.
    If the user selects AGT as SID, when he opens search-help for the second org. unit (vkorg), he will see the records with SID: AGT, VARBL = $VKORG, LANGU = SY-LANGU.
    I have created a search-help taking SIDD, VARBL and LANGU as import parameters; used field mapping and bound this search help to my table. I have created 2 context nodes : org1 and org2 having attributes SID, VARBL, VALUE, LANGU .
    I have assigned related SID, VARBL and Langu values to these attributes at runtime as I needed. That way, if I use input field and reference to the related context attributes org1-value and org2-value2 accordingly, search help works well as I want.
    However, when I use select-options field , I can not bind the field to the context data. I can give reference only to ddic structure. Is there any way to reference to a context attribute? I searched for this in SDN, but could find nothing.
    I think I won't be able to use this way. What do you say?
    As I read from forums maybe using OVS help will be suitable for me. But I have to use one search-help for all select-options fields. Do you know how I can determine the active select-options field and pass its name (for instance "werks" ) as parameter to this OVS search help. (Also I'll pass SID and LANGU.)
    MY TABLE (ZBYYT080) CONTENTS:
    SID     VARBL     VALUE     LANGU     VTEXT
    ADS     $WERKS     1     T     Werk 0001
    ADS     $WERKS     11     T     OZYAS  GIDA URETIM YERI
    ADS     $WERKS     5501     T     BOYA GEBZE FABRİKASI
    ADS     $WERKS     5502     T     BOYA CIGLI FABRİKASI
    AGT     $WERKS     2301     T     KAMLI DAMIZLIK
    AGT     $WERKS     9601     T     PANAR DENIZ URETIM YERI
    ADS     $VKORG     22     T     AA KİMYASALLAR
    ADS     $VKORG     8001     T     İINSAAT BOYALARI
    AGT     $VKORG     6500     T     DAMk St.Org
    AGT     $VKORG     5400     T     PANAR St.Org.
    I wish I'm clear enough..
    I will be gald if someone answers me as soon as possible...
    Thanks İn advance..
    MERAL

    Hi,
    Your ques is how to refer to a DDIC search help to refer to selection screen parameter ?
    Am I right ?
    If Yes, then in the interface IF_WD_SELECT_OPTIONS
    method ADD_SELECTION_FIELD, ADD_PARAMETER_FIELD etc
    have importing param like I_VALUE_HELP_TYPE and  I_VALUE_HELP_ID, I_VALUE_HELP_MODE, I_VALUE_HELP_STRUCTURE
    etc which may help you to link your create DDIC Search help to selection screen params.
    this is just a clue from my side. I haven't tried it myself.
    You can go to the where used list of this method and find some sample implementations which use these params.
    Hope this helps.
    Regards
    Manas Dua

  • Search help for PERNR select options in Webdynpro

    Hi,
    I am using the method: lv_r_helper_class->add_selection_field
    and passing the value:
    i_value_help_type            = if_wd_value_help_handler=>CO_PREFIX_SEARCHHELP
    to get search help for pernr select option in the webdynpro application.
    But can anyone please tell me what value i have to pass to
    i_value_help_id              =  ??

    hi,
    pass your search help name there so that your desired search help ll come there..
    use this,
    i_value_help_type            = if_wd_value_help_handler=>CO_PREFIX_SEARCHHELP
    i_value_help_id              =  'SEARCHHELPNAME'
    if you want standard SH means comment this stmt,
    if you dont want SH means,
    use tis,
    i_value_help_type            = if_wd_value_help_handler=>CO_PREFIX_NONE
    hope this helps,
    Mathan R.

  • F4 help FOR A SELECT OPTION FIELD

    Hi,
    Can anyone tell how to provide F4help for a select-option field?
    Regards,
    Hema

    Hello,
    If you created a search help in the DDIC...Then check the check box EXPORt parameter for one of the fields
    If you used the function module Make sure you pass the correct values..Also the field name in CAPITAL letters..
    Check this code..
    TABLES: T005T.
    DATA: BEGIN OF t_t005 OCCURS 0,
            land1 TYPE t005-land1,
          END OF t_t005.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(6) v_text FOR FIELD P_LAND1.
    PARAMETERS: p_land1  TYPE t005-land1.
    SELECTION-SCREEN COMMENT 13(35) v_text1.
    SELECTION-SCREEN END OF LINE.
    INITIALIZATION.
      v_text = 'Country'.
      v_text1 = ' '.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_land1.
      REFRESH: t_t005.
      SELECT land1
             INTO TABLE t_t005
             FROM t005.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
    *            DDIC_STRUCTURE   = 'T005'
                PVALKEY          = ' '
                retfield         = 'LAND1'
                dynpprog         = sy-repid
                DYNPNR           = sy-dynnr
                dynprofield      = 'P_LAND1'
                callback_program = sy-repid
                value_org        = 'S'
           TABLES
                value_tab        = t_t005
           EXCEPTIONS
                parameter_error  = 1
                no_values_found  = 2
                OTHERS           = 3.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Thanks
    Deepu.K

  • Select statement for generic select options

    Hello,
    I have a problem implementing a SELECT-Statement. I have a generic number of select options on my selection screen and I have a range table for each select option. How can a generate a database select for these generic number of range tables?
    Thank you very much in advance & regards,
    Alexander

    the answer I gave you will work if you have a ranges table for every possible select-options and refer to every ranges table in your where clause.... that way, you don't have to know which are populated and which are not at the time of SELECT.
    You could also choose to create a dynamic where clause, based upon what you had select-options for and use with
    WHERE ( whereclause ).
    Edited by: BreakPoint on Mar 2, 2011 4:31 PM

  • How to set BDCDATA table for a SELECT-OPTIONS object?

    Dear experts,
    I have a transaction with PARAMETERS and SELECT-OPTIONS objects. This transaction will be called by another program by using CALL TRANSACTION 'mytransaction' USING mybdcdata statement. Below is some of the called transaction's source code:
    DATA:
      date TYPE sflight-fldate.
    PARAMETERS:
      p_carid TYPE sflight-carrid,
      p_conid TYPE sflight-connid.
    SELECT-OPTIONS:
      so_date FOR date.
    This is what I wrote in the calling program to define the values of the called transaction PARAMETERS fields:
    DATA:
      wa_bdcdata TYPE bdcdata,
      it_bdcdata TYPE TABLE OF bdcdata.
    wa_bdcdata-program = 'MYPROGRAM'.
    wa_bdcdata-dynpro = '1000'.
    wa_bdcdata-dynbegin = 'X'.
    APPEND wa_bdcdata TO it_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam = 'P_CARID'.
    wa_bdcdata-fval = 'AA'.
    APPEND wa_bdcdata TO it_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam = 'P_CONID'.
    wa_bdcdata-fval = '017'.
    APPEND wa_bdcdata TO it_bdcdata.
    CALL TRANSACTION 'MYTRANSACTION' USING it_bdcdata.
    Unfortunately, I don't know how to set the values for the SELECT-OPTIONS screen fields. How to do this?
    I've Googled this and tried several guesses but none was found or successful. Thanks in advance.
    Regards,
    Haris

    Hi ,
      Better go for  SUBMIT report   instead of CALL transaction  ...
      find the name  of  report being called  on that transaction which you will be calling  . Use that report name in SUBMIT 
    Just take help from  below code .
    Before using do please read  by pressing f1 on SUBMIT  syntax .
    data:seltab     type table of rsparams,
             seltab_wa  like line of seltab.
        move: 'LANGU'  to seltab_wa-selname,
              'S'      to seltab_wa-kind,
              'I'      to seltab_wa-sign,
              'BT'     to seltab_wa-option,
              'D'      to seltab_wa-low,
              'I'      to seltab_wa-high.
        append seltab_wa to seltab.
        clear seltab_wa.
        move: 'E'      to seltab_wa-sign,
              'EQ'     to seltab_wa-option,
              'F'      to seltab_wa-low,
              space    to seltab_wa-high.
        append seltab_wa to seltab.
        clear seltab_wa.
        move: 'AUFNR' to seltab_wa-selname,
              p_aufnr to seltab_wa-low.
        append seltab_wa to seltab.
        clear seltab_wa.
        submit rkaep000  using selection-set 'VARIANT1'
                          with aufnr = p_aufnr
                          with selection-table seltab
                          exporting list to memory
                          and return .
    regards
    Deepak.

  • List box for the select-options

    Hi All
      Can anyone send me a sample code to create a list-box for the select-options.

    Hi vighnesh vasudevan,
    Do like this for your select options for low and high also.
    Parameters:
        p_quat  TYPE char20
                AS LISTBOX VISIBLE LENGTH 30
                LOWER CASE OBLIGATORY.
    *              AT SELECTION-SCREEN ON VALUE-REQUEST                    *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_quat.
      PERFORM fill_quarters.
      PERFORM display_quarters.
    *&      Form  fill_quarters
    *       text
    FORM fill_quarters .
      DATA:
    * Field string to fill quarters in the year
        lfs_quarters TYPE LINE OF vrm_values.
      REFRESH t_quarters.
      lfs_quarters-key  = '1'.
      lfs_quarters-text = text-qu1.
      APPEND lfs_quarters TO t_quarters.
      lfs_quarters-key  = '2'.
      lfs_quarters-text = text-qu2.
      APPEND lfs_quarters TO t_quarters.
      lfs_quarters-key  = '3'.
      lfs_quarters-text = text-qu3.
      APPEND lfs_quarters TO t_quarters.
      lfs_quarters-key  = '4'.
      lfs_quarters-text = text-qu4.
      APPEND lfs_quarters TO t_quarters.
    ENDFORM.                    " fill_quarters
    *&      Form  display_quarters
    *       text
    FORM display_quarters .
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = 'P_QUAT'
          values          = t_quarters[]
        EXCEPTIONS
          id_illegal_name = 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.
    ENDFORM.                    " display_quarters
    Note: I think we are not able to display the list box for select options because i am not ever seen the list box in select options . No Probs try like above code.
    See the following like it may help for you
    Listbox for Select Options
    Regards,
    Mahi.

  • Chain-end_chain for a select-option in a subscreen

    hi all, I have a program with a screen 0010 with some fields....one of this fields must have "multiple input" (as with select-options) so I´ve created a subscreen 0020 within this screen 0010 (it´s the only way I know to put select-options in a screen)
    The problem is in screen 0010 I have a chain end_chain to check data in the custom fields:
    CHAIN.
       FIELD zget_assigner-fipex.
       FIELD zget_assigner-ebeln.
       FIELD zget_assigner-belnr.
       MODULE check_fields.  " ON CHAIN-REQUEST.
    and in my screen 0020 i have other chain endchain to check the select-option....
    CHAIN.
      FIELD  S_BNAME-LOW.
      MODULE %_END_OF_SCREEN.
      MODULE %_OK_CODE_1000.
      module check_fields_0020.
    ENDCHAIN.
    the problem is when I enter data in the select-option and hit enter the program give me an error message saying I can´t use "set screen and leave screen in a subscreen" and the program finish....
    if I don´t hit enter but press OK to continue the process....the chain end chain from 0020 give me a message saying the data is wrong (this is ok) but the select-option stay in display mode (chain endchain did this) and I can´t modify the data in the select-option...
    What I need to do in order to get editable the select-option after the error messager from chain is showed????
    Thanks in advance....
    How can I check the data in the select-option S_BNAME is correct????

    hi all, thanks for your kindly answers...
    finally I fixed the problem using  
    "at selection-screen on s_bname" and a bit of new code in the module where I manage actions to do in base to the values of the sy-ucomm.....
    so If the data in the select-option is wrong I show an error message in the "at selection-screen" and I call screen 0010 in my user_command_0010 where I checks the sy-ucomm values....
    Thanks again.

  • Clearing the displayed value for a SELECT-OPTION

    How do I clear the displayed value of a SELECT-OPTION? 
    I have 2 SELECT-OPTIONs on my screen (standard basic report program screen).  I use code like this to populate the drop-down boxes for each one. 
    =====
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_prgrp-low.
      PERFORM fill_prgrp_values.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_prctr-low.
      PERFORM fill_prctr_values.
    =====
    The value the user picks for the first SELECT-OPTION will affect what values I put in the drop-down list for the second SELECT-OPTION. 
    If a user enters a value for the second SELECT-OPTION, and then goes back and changes the value of the first SELECT-OPTION, then I want to do two things:
    1.  Create a new set of values for the drop-down list for the second SELECT-OPTION (no problem; working fine);
    2.  Clear the displayed value from the second SELECT-OPTION that the user entered previously.  That value became invalid when the user picked a new value for the first SELECT-OPTION. 
    How do I clear that second displayed value? 
    I have tried CLEAR and REFRESH for the second variable using the formats s_prctr, s_prctr[], and s_prctr-low.  They will erase the values of the internal table or part(s) of it, but the displayed value stays on the screen. 
    I need to clear out the displayed value so the user will either leave it blank or enter or select a new value. 
    I am using F4IF_INT_TABLE_VALUE_REQUEST to build the drop-down lists, and it works fine, but I do not see any function module to clear the displayed value off the screen. 
    Thanks for your help.

    Sorry, but calling DYNP_VALUES_UPDATE did not work.  This is how I coded it. 
    fld_reset_rcd-fieldname  = 'S_PRCTR'.
      fld_reset_rcd-stepl      = sy-stepl.
      CLEAR fld_reset_rcd-fieldvalue.      "  re-initialize s_prctr
      CLEAR fld_reset_rcd-fieldinp.        "  what goes in here?
      APPEND fld_reset_rcd TO fld_reset_tbl.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          dyname = 'ZFI_GL_BALANCE_NGL'
          dynumb = '1000'
        TABLES
          dynpfields = fld_reset_tbl
    <Added code tags>
    I have discovered that CLEAR and REFRESH of s_prctr will clear it somewhat.  If I enter multiple values, ranges, etc., they will all be cleared, EXCEPT for the one single value that is displayed on the main screen.  It is not cleared and it remains if you push the button to display the pop-up to enter ranges, etc. 
    To devrath.sampat  --  Thanks for your example for building the drop-down list, but that is not the problem I am having.  I am already able to build it just fine. 
    To repeat my problem, if I: 
    1.  first enter / select a value for the first SELECT-OPTION s_prgrp
    2.  then enter / select a value for the second SELECT-OPTION s_prctr
    3.  And finally go back and select a new value of the first SELECT-OPTION s_prgrp from its drop-down list,
         when I do, the program needs to clear the value displayed on the main screen for the second SELECT-OPTION s_prctr (any additional values, ranges, etc., are cleared by CLEAR and REFRESH, if I go look; but not the value shown on the main screen).
    Edited by: Scott Crosby on Feb 14, 2012 4:20 PM
    Edited by: Suhas Saha on Feb 15, 2012 12:03 PM

  • Error message for the select options

    hi.
    i want to throw thw error message if the user enters the value not valid(not in the range) for the zregion1 of zbwcntry of the select options.
    and user should be able to correct it before moving ahead.
    Also,iis not a mandatory field,So if it is initial,it can b blank.
    but if the input doesnot lie in the range,it should give error message on the selction screen.
    please guid with the line of codes.

    Check out this code:
    TABLES: PERNR.
    SELECT-OPTIONS VO_PERNR FOR PERNR-PERNR.
    AT SELECTION-SCREEN ON VO_PERNR.
      IF VO_PERNR IS INITIAL.
        MESSAGE 'Enter some employee IDs' TYPE 'E' DISPLAY LIKE 'S'.
      ELSE.
        IF '000001' NOT IN VO_PERNR.
          MESSAGE 'Employee id: 1, not selected' TYPE 'E' DISPLAY LIKE 'S'.
        ENDIF.
      ENDIF.

  • F4 for employee select options in WD for abap application

    Hi,
    I have defined a select option for employee selection in my WD for abap application. The only problem is that I cannot get a f4 help button to be displayed. I have defined the select option using the following code :
    wd_this->m_wd_select_options = wd_this->wd_cpifc_select_options( ).
    init the select screen
    wd_this->m_handler = wd_this->m_wd_select_options->init_selection_screen( ).
    create a range table that consists of this new data element
    lt_range_table = wd_this->m_handler->create_range_table(
    i_typename = 'PERNR_D' ).
    add a new field to the selection
    wd_this->m_handler->add_selection_field(
    i_id = 'PERNR_D'
    it_result = lt_range_table
    i_read_only = read_only ).
    I have tried adding entries for the parameter help_id but still cannot get a f4 button.
    Thank you in advance for any assistance provided.

    Hi,
    Try this.
    DATA lo_interfacecontroller TYPE REF TO iwci_wdr_select_options .
    lo_interfacecontroller = wd_this->wd_cpifc_select_options( ).
    DATA lo_r_helper_class TYPE REF TO if_wd_select_options.
    lo_r_helper_class = lo_interfacecontroller->init_selection_screen( ).
    Creating range table
    DATA lt_range TYPE REF TO data.
    CALL METHOD lo_r_helper_class->create_range_table
    EXPORTING
    i_typename = ''PERNR_D'
    RECEIVING
    rt_range_table = lt_range.
    Disabling the global options
    CALL METHOD lo_r_helper_class->set_global_options
    EXPORTING
    i_display_btn_cancel = abap_false
    i_display_btn_check = abap_false
    i_display_btn_reset = abap_false
    i_display_btn_execute = abap_false.
    Adding the selection field
    CALL METHOD lo_r_helper_class->add_selection_field
    EXPORTING
    i_id = 'PERNR_D'
    I_OBLIGATORY = ABAP_TRUE
    i_value_help_type = if_wd_value_help_handler=>CO_PREFIX_SEARCHHELP
    I_VALUE_HELP_ID = 'PREM'
    it_result = lt_range.
    Check this artcle for more details which uses VBELN as select option with search help.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/103e43d5-fdb8-2d10-90ab-b5e8532cbc04

  • Adding default value for a select-options in a selection-screen

    hello gurus,
    i have a report program with the following select-options in a selection-screen block:
    select-options:  so_site  for MyTable-werks.
    i want the so_site to have a default value once the program displays. can it be possible?
    regards,
    sid

    Hi sid,
    1. Whenever we use select-option,
       an internal table of type range is
      automatically created.
    2. so, in fact, we have to put
       record in this internal table.
    3. eg. Just copy paste in new program.
    4.
    report abc.
    tables : t001.
    select-options : bukrs for t001-bukrs.
    initialization.
      bukrs-sign = 'I'.
      bukrs-option = 'EQ'.
      bukrs-low = '1000'.
      append bukrs.
    regards,
    amit m.

Maybe you are looking for