Standard Match Code for Selection Options with Example

Hi Guys,
             Can anybody tell me Standard Match Code or Search help for Selection Options.
         ex: MBEW-MATNR , MBEW-BWKEY and MBEW-BWTAR. can anybody tell how to keep Search Help or Match Code for the Above Fields in ECC 6.0 with Example
          Very Urgent.
Thanks,
Gopi.

Well Gopi.. as per your requirement no need to use collective search help.
I guess you have three fields in selection-screen,out 3 fields you have two fields contains search help.
Create your user defined search help BWTAR ..
Check the below links for creation search help :
http://help.sap.com/saphelp_46c/helpdata/EN/cf/21ee2b446011d189700000e8322d00/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
Hope you got it.
Thanks
Seshu

Similar Messages

  • Any standard FM to print select-options criteria on a basic report?

    Hi Experts,
    Am trying to print the user entered selection criteria on a classical/basic report. I wrote the code for select-options entries, but, am looking for any standard function module (if i pass my_select_options table, I need to get printable/readable entires) to print on my basic report, pls. let me know (I tried in SE37, but i got an in-active FM - PRINT_SELECTOPTIONS!!)
    Thank you

    Hello,
    CALL FUNCTION 'PRINT_SELECTIONS'
        EXPORTING
          rname     = program name
          rvariante = sy-slset "It will catch the selected variant
          mode      = 'TABLE'
        TABLES
          infotab   = li_info.
    li_info table will contain all selection screen data, you will can restrict what needs to be shown on spool list!
    Thanks.

  • 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

  • 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

  • Help in Match-code for field SEARK (Search Term)

    Friends, in my aplication was necessary insert the match-code for SEARK field.
    I use the function module RH_OBJID_REQUEST in the form OPEN_BOX2 at the event AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_requi-low.
    When I use this match-code and select the 4 itens and clique the OK button, only the last item appears in the field.
    Anyone else had this problem?
    Can someone help me?
    Thanks for listening. 
    Below is the code:
    select-options:
      so_requi    for pm0d1-seark no intervals  .
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_requi-low.
      PERFORM open_box2 CHANGING so_requi-low.
    form OPEN_BOX2  changing p_so_requi_high.
    Variáveis
      DATA: h_plvar LIKE p1000-plvar,
            h_otype LIKE p1000-otype,
            h_objid LIKE objec-realo,
            h_begda TYPE begda,
            h_endda TYPE endda,
            p_subty TYPE plog-subty.
    tables
      DATA: p_change_profq LIKE hrpe_profq OCCURS 0 WITH HEADER LINE.
    preenche as variantes para os parâmetros da função
      h_plvar = PCHPLVAR.
      h_otype = 'Q'.
      h_begda = sy-datum.
      h_endda = '99991231'.
      DATA: sel_objects LIKE objec OCCURS 0 WITH HEADER LINE.
    popup with qualifications catalogue
      CALL FUNCTION 'RH_OBJID_REQUEST'
           EXPORTING
                plvar                 = h_plvar
                otype                 = 'Q'
                seark                 = '*'
                seark_begda           = h_begda
                seark_endda           = h_endda
                set_mode              = 'X' "multiple choice
           TABLES
                sel_objects           = sel_objects
           EXCEPTIONS
                cancelled             = 1
                wrong_condition       = 2
                nothing_found         = 3
                illegal_mode          = 4
                internal_error        = 5
                OTHERS                = 6.
    Captura os dados selecionados e passa para o select-options
       free: so_requi.
       if sy-subrc = 0 .
         loop at sel_objects.
           clear so_requi.
           so_requi-sign    = 'I'.
           so_requi-option  = 'EQ'.
           so_requi-low     = sel_objects-objid.
           append so_requi.
         endloop.
       endif.
    endform.                    " OPEN_BOX2

    Hi
    I am sorry I thought that it is TPLNR field
    for EQFNR there is no matchcode or search help
    if you want you can create a matchcode/search help and add
    It is a CHAR 30 field for which most of the times no values are entered
    Reward points for useful Answers
    Regards
    Anji
    Message was edited by:
            Anji Reddy Vangala

  • Plant a match code for opening a project

    Hi All,
    I am trying to develope a match code of Plant for opening a project. Such that a list of projects to come out after entering a plant then select a project and then open a project like PO by supplying plant. I have gone through SPRO that is OPT2 match codes for Project definitions. But not found ready made match code to be included.
    Is ther any easy way other ABAP use? or give logic how to deveope it.
    Thanks and regards

    Hi
    If you mean opening a project in standard reports like CN41, it would be easier to use "dynamic selection option" and hard code the plant, and then save the selection version.
    Everytime, you want to open projects in the respective plant, you can call the selection version in the initial screen of the report.
    Hope it helps.
    Regards
    Srikrishna

  • How to set default values in initialization event for select option

    Abapers,
    I have 3 GL account like 0024831231,0024831238,0024831245.
    Please help me how to set default values in select-options ( s_hkont ) in INTIALIZATION event
    Thanks

    Select option is table <Structure> with fields, low, high, sign & option
    you need to append the value into the select option, with appropriate value in low or
    example:
    S_HKONT-low  = <value>
    S_HKONT-SIGN = 'I'
    S_hkont-OPTION = 'EQ'
    append s_hkont.
    Default value for select-option also can be added directly in select-option statement.
    Regards,
    Mahesh

  • Input Negative values in selection screen  for select-options field

    I am not able enter negative values for
    SELECT-OPTIONS V_ERFMG FOR MSEG-ERFMG.
    It says negative values are not allowed but I need to check for negative values. Kindly provide me solution.

    You can't put the negative values here...because the Domain which is attached to MSEG-ERFMG has not the "Sign" checkbox on.
    Try with this code:
    tables:wbrp.
    SELECT-OPTIONS V_ERFMG FOR WBRP-menge.
    Regards,
    Naimesh Patel

  • How to do validations for select-options

    Hi gurus,
    can you suggest me
    how to do validations for select-options
    Thanks&ragards,
    Kals.

    HI,
    TABLES: BKPF.
    TYPES: BEGIN OF TY_BKPF,
           BUKRS TYPE BUKRS,   "COMPANY CODE
           GJAHR TYPE GJAHR,   "FISCAL YEAR
           MONAT TYPE MONAT,   "FISCAL PERIOD
    DATA: T_BKPF TYPE TABLE OF TY_BKPF,
          W_BKPF TYPE TY_BKPF.
    SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS: S_CODE   FOR BKPF-BUKRS,
                    S_YEAR   FOR BKPF-GJAHR,
                    S_PERIOD FOR BKPF-MONAT.
    SELECTION-SCREEN: END OF BLOCK B1.
                        AT SELECTION-SCREEN                           *
    IF S_CODE IS INITIAL OR S_YEAR IS INITIAL OR S_PERIOD IS INITIAL.
      MESSAGE E000(0) WITH 'ENTER VLAUES'.
    ENDIF.
    SELECT SINGLE * FROM BKPF WHERE BUKRS IN S_CODE.
      IF SY-SUBRC <> 0.
      MESSAGE E000(0) WITH 'ENTER VALID VALUES'.
      ENDIF.
    reward if useful
    thanks and regards

  • Possibility of giving match code  for Manufacturer in Equipment Master

    Hi -
    We can have a field exit on fieler HERST of Equipment Master.
    Is there any possibility of giving a match code on this filed? so that we can maintain a table for manufacturer and user can select any one entry from this table.
    We do have activated filed exit for manufacturer check, but need to further restrict the entry so that there is uniformity of entry maintained in this field.
    Kindly advice.

    hi narendar,
    some information :
    In addition to the above mentioned exit we have also created a custom match code for this field in one of our project ... the exit gets triggerred whenver user hits enter and the value entered here is used in selection criteria that displays the custom popup window ... the data is picked from vendor master table the selection createria we used was vendor name and description and vendor acount group MNFR - for manufacturers would be defaulted and displayed.So you can go with creating a custom match code which is invoked whenever user selects F4...
    regards
    pushpa

  • Match Code for LFA1-KONZS

    Hi all,
    I need a match code for the field LFA1-KONZS... it should appears on XK03 transaction for example.
    The idea is to create a new Z table and after fill this table, the values of them should appears as a search help into the LFA1-KONZS.
    This Z table should have the fields:
    KONZS type KONZS (data element)
    DESCR type Char 50
    I tried to modify the domain (KONZS) and insert the Z table on the option VALUE TABLE on the tab VALUE RANGE.
    But it doesn't works.
    The other thing is  that these two fields should accept blank values... but I think for this will need one of these fields as a key, is that correct?
    Manys thanks for all!
    Ricardo

    Hi,
    Create a search help for the Z table, and then you need change the SI_LFA1 structure (ask the BASIS team for an access key) field KONZS.
    In the tab ENTRY HELP/CHECK, you specify the CHECK TABLE and the SEARCH HELP for the field KONZS.
    And then test it into the SE16 transaction.

  • Maximum allowable input for select-options

    Hi All,
        Can we enter any number of values in select-options on the selection screen. What is the limit on the number of values that can be given for select options.
    For example if the limit for a select-options field is 100000 and if i want to give  999999 values as input on the selection screen, how am I supposed to handle this.
    Thanks in advance,
    Madhu

    Hi Madhu,
    see the sample code below .. i hope it this will help you..
    SELECT-OPTIONS: s_order FOR vbak-vbeln .   "Default the value range 100000 to 9999999 appears on the screen
    INITIALIZATION.
    * Loading default values to screen input for Sales Order field
      MOVE 'I'          TO s_order-sign.
      MOVE 'BT'         TO s_order-option.
      MOVE '1000000'   TO s_order-low.
      MOVE '9999999'   TO s_order-high.
      APPEND s_order.
    * Screen field Validation
    AT SELECTION-SCREEN ON s_order.
    if s_order-low NE 100000.
    message 'Sales order Low value should be 100000' type 'E'.
    endif.
    if s_order-High NE 999999.
    message 'Sales order High value should be 999999' type 'E'.
    endif.
    Regards,
    Prabhudas

  • Is exist restriction for select-options.........?

    is exist restriction for select-options?
    for example:
    <b> data: ftxt04(4).
    select-options: txt04 for ftxt04.</b>

    Hi,
    You can restrict select-options.
    SELECT-OPTIONS : S_VKORG FOR TVKO-VKORG MEMORY ID VKO.
    Form F1000_RESTRICT_VKORG.
    INITIALIZATION.
    PERFORM F1000_RESTRICT_VKORG.
    Define the object to be passed to the RESTRICTION parameter
    DATA lw_restrict TYPE SSCR_RESTRICT.
    Auxiliary objects for filling RESTRICT
      DATA lw_opt_list TYPE sscr_opt_list.
      DATA lw_***      TYPE sscr_***.
    Assign selection screen objects to option list and sign
    NOINTERVLS: BT and NB not allowed
      CLEAR lw_opt_list.
      MOVE 'NOINTERVLS' TO lw_opt_list-name.
      MOVE 'X' TO: lw_opt_list-options-cp,
                   lw_opt_list-options-eq,
                   lw_opt_list-options-ge,
                   lw_opt_list-options-gt,
                   lw_opt_list-options-le,
                   lw_opt_list-options-lt,
                   lw_opt_list-options-ne,
                   lw_opt_list-options-np.
      APPEND lw_opt_list TO lw_restrict-opt_list_tab.
    KIND = 'S':
      CLEAR lw_***.
      MOVE:  'S'          TO  lw_***-kind,
             'S_VKORG'    TO  lw_***-name,
             'I'          TO  lw_***-sg_main,
             '*'          TO  lw_***-sg_addy,
             'NOINTERVLS' TO  lw_***-op_main.
      APPEND lw_***  TO  lw_restrict-***_tab.
      CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
           EXPORTING
                restriction            = lw_restrict
           EXCEPTIONS
                too_late               = 1
                repeated               = 2
                selopt_without_options = 3
                selopt_without_signs   = 4
                invalid_sign           = 5
                empty_option_list      = 6
                invalid_kind           = 7
                repeated_kind_a        = 8
                OTHERS                 = 9.
      IF sy-subrc <> 0.     "Restriction error encountered for Select
                             "Option
        MESSAGE  I001 WITH 'ERROR IN SELECT OPTION'."ERROR IN SELECT OPTION
      ENDIF.
    endform.                    " F1000_RESTRICT_VKORG

  • 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.

  • Checking against Select-Options with "CP" using "IF value IN select_option"

    Dear experts,
    first of all: I'm sorry, if this question already should have been asked and answered!
    I tried quite a lot of search terms but didn't find anything helpful.
    We are using a statement like "IF value IN select_option" to perform comparisons after the Select-Options have been used in a SELECT statement. This logical expression fails (compared to the results of the DB-SELECT) whenever a select-option line contains the option CP (Contains Pattern). To be more specific: The case sensitivity of the LOW value doesn't seem to play a role any more. A variable with the value 'ABCD' would be positively checked against a select-option with OPTION 'CP' and LOW 'abc*', whereas this value wouldn't have been selected if the select-option had been used in a DB-SELECT.
    Does anybody know a workaround?
    Thanks in advance
    Andreas

    Dear Keshav,
    it's an own field in an own table, defined as CHAR of length 140 (lowercase allowed), reflecting to a line of remittance info of an account statement. A regular Select-Option for this field is provided in a report which works perfectly fine regarding the case sensitivity. For reasons I don't want to point out in detail we need to check a value in this field against the select-option without selecting it from the db again.
    Let's assume that a field remittance_info contains the value 'ABCD'.
    A line of the select-option table looks like this:
    select_option_table-SIGN = 'I'
    select_option_table-OPTION = 'CP'
    select_option_table-LOW = 'abc*'.
    Then an ABAP statement such as
    IF remittance_info IN select_option_table.
    * would be true !!!
    ENDIF.
    but wouldn't deliver a result in a SELECT such as
    SELECT * FROM my_table INTO TABLE my_internal_table WHERE remittance_info IN select_option_table.
    because of the differences in lower/upper case.
    regards
    Andreas

Maybe you are looking for