ME51N - Match-Code for field AFANAM

Hi experts,
Can anyone tell me if it´s possible to create a match code for the field: Name of requisitioner/requester (AFNAM), on the transaction ME51N - Item overview?
Regards,
Leonel Fernandes

Hello,
if you want a list of defined entries to that field AFNAM, i think it's not possible. This field is defined as a simple char 12 field with no check table behind it. So you would have to modify  the data element AFNAM or the Domain AFNAM.
A search help to find purchase orders by field AFNAM would be easy, just an append to search help MBAN - if  that's your  problem.
Regards Wolfgang

Similar Messages

  • 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

  • Match Code for Field ILOA-EQFNR

    Hi,
    I have to put a matchcode or search help in the field ILOA-EQFNR in a standard transaction.
    I already read the old posts that says that in similar cases, for a standard field in a standard transaction, there are no ways to put it (i dont want to brake the standard code).
    But when i look at the help of the field EQFNR, it says that you can put a matchcode!!!! (but obviously dont say how!

    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

  • 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

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

  • 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

  • Match code for an editable ALV field

    Hi everyone,
    I have an ALV with an editable field. I want to add matchcode with predefined 2 values to it.
    I used EDIT option for field catalog to make this field editable.
    I defined this field as a custom field in one of the DB table.
    The possible values of the field are in the declaration of the DOMAIN. But I still can't see the matchcode with those values when I want to enter a value into this field in ALV.
    What should I do?
    Thank you in advance,
    Diana

    Hi Diana,
    Welcome to SDN
    When you set the field catalog you have to set option F4AVAILABL to 'X'.
    If w_fcat is the field catalog structure then set as
    w_fact-F4AVAILABL = 'X'
    w_fact-CHECKTABLE = 'SCARR'
    w_fact-REF_TABLE = 'SPFLI'
    w_fact-REF_FIELD = 'CARRID'.
    Refer the standard program BCALV_TEST_GRID_F4_HELP and BCALV_GRID_EDIT_DELTA
    Please go through this thread for sample code
    Re: F4 for fields in ALV Grid
    Hope this would help you.
    Good luck
    Narin

  • Match code for Vendor Master Data on PAN

    Hi
    Vendor match code will work only if the name are identical. But for the same vendor, user create multiple vendors.
    For Ex: If the vendor name is ABC Private Limited, User puts different names like ABC Pvt Ltd, ABC P Ltd, etc.
    Hence the match code check is over ridden.
    For that reason, i want check on the basis of PAN number.
    There is no field for PAN number in match codes field.
    Please suggest how it can be maintained

    Hi ,
    Use the exit SAPMF02K , which is specially ment for vendor master data .
    Cheers ,
    Dewang

  • Match code for   in ME21N

    Hi,
    How can I do for activating a match code with data from "Z" table in field EKKN-WEMPF?
    Thanks in advance.

    Hi,
    It is possible. We can extend an existing standard collective search help using append search help option.
    Please goto se11 & input the standard search help name (in your case, it is MBAN_C) in the serach help option & display it. Press the menu GOTO->Append search help. You will get a pop-up and there you can create the new seach help as per your requirement.
    Hope, you know well how to create the search help. Please check with the below link if you don;t know:
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm
    Regards,
    Selva K.

  • Match-code to field custom (to portal)

    Hi all!
    I must put a match-code to a field custom.
    I see the match-code to SAP R-3, but not to portal.
    I must customizing the match-code to "customizing"?
    Thanks to all.
    Vanessa

    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

  • Match code for S509-SPMON

    Hi;
    I need the exactly match code S509-SPMON that is used in Tcode MCSI, i do the same in my program but i don´t get the match code.
    in Tcode MCSI i select S509 option
    Tcode MCSI / RMCY5090
    SELECT-OPTIONS SL_SPMON FOR S509-SPMON MODIF ID PER.
    My Program
    SELECT-OPTIONS pspmon  FOR  s509-spmon OBLIGATORY.
    or
    PARAMETER pspmon TYPE s509-spmon.
    How do i get a match code as the field "s509-spmon" in tcode MCSI..?
    Thanks on advance.
    Edited by: David Funez on Oct 14, 2009 4:49 PM

    Thanks,
    I answer myself..
    With  CALL FUNCTION 'POPUP_TO_SELECT_MONTH' i get the same than Tcode MCSI.
    Edited by: David Funez on Oct 16, 2009 10:30 AM
    Edited by: David Funez on Oct 16, 2009 10:31 AM

  • Needs sample ABAP code for field routine

    Dear Expert,
    There is a field "Pay Scale Group" in my DSO which stores the data in the format
    AA1/B1/CCC2/DD2/EEE1, A1/BB2/CC2/DDD3/EE2 etc. These data has to be transferred to
    InfoCube where "pay Scale Group" in the InfoCube will store the data like EEE1,EE2 etc.
    I need to write a field routine on the transformation between DSO and Cube.
    Can any one please help me with the sample ABAP code for this scenario.
    Some more examples for better understanding of the requirement:-
    Data in DSO(Source)            Data in Cube(Target)
    ===================            ===================
    AA1/B1/CCC2/DD2/EEE1            EEE1
    AAA1/BB2/CC1/DDD3/EE2           EE2
    A2/BBB2/CC2/DDD3/EEE5           EEE5
    AA2/BB1/C1/DDD3/EE3             EE3
    A3/B1/CC2/DDD1/EE4              EE4
    Many thanks in advance.
    Regards,
    Prakash
    Please do not dump your code requirements in SDN
    Edited by: Pravender on May 18, 2011 11:37 AM

    Hi,
    You can use the following code :
    Suppose the technical name of the field coming from DSO is ZPAY_SGRP.
    And also for example let me take one record, that is ZPAY_SGRP = AA1/B1/CCC2/DD2/EEE1 .
    My assumption is that there will always be 4 '/'.
    In the field routine write the below code
    data: V1(5) type c,
              V2(5) type c,
             V3(5) type c,
              V4(5) type c,
             V5(5) type c.
    data : VAR1 TYPE /BIC/OIZPAY_SGRP.
    split VAR 1  at '/' into V1 V2 V3 V4 V5.
    result = V5.
    V5 will be having the characters after the last '/' .That is V5 = EEE1.
    Hope the above reply was helpful.
    Kind Regards,
    Ashutosh Singh
    Edited by: Ashutosh Singh on May 17, 2011 3:53 PM
    Edited by: Ashutosh Singh on May 17, 2011 4:17 PM

  • How to create function code for field in GRID like list box in screen

    Hi all,
    I have requirement like drop down is created for field1 in GRID,
    and have given f4 help for it, as soon as i change the data in the field
    event has to trigger to update thevalues in other field.
    This scenario i worked on screens where field is created with listbox and assign function code to it
    when the field value changes the event  triggers .
    Is there is anything like that which will fire the event for field value changes.
    can i update anything  through the  fieldcatalogue.
    anybody help me on this
    Regards,
    Madhavi

    Hi Madhavi,
    yes we can do that by registering edit events..
    check the below example.. has both the variants dropdown/f4 hlp...
    screen flow logic
    PROCESS BEFORE OUTPUT.
      MODULE pbo.
    PROCESS AFTER INPUT.
      MODULE pai AT EXIT-COMMAND.
    program
    *       CLASS lcl_event_responder DEFINITION                           *
    CLASS lcl_event_responder DEFINITION.
      PUBLIC SECTION.
        DATA  : ls_changed_cell TYPE  lvc_s_modi,
                lv_language     TYPE  spras..
        METHODS refresh_changed_data  FOR EVENT data_changed
                                      OF cl_gui_alv_grid
                                      IMPORTING er_data_changed
                                                e_ucomm.
    ENDCLASS.                    "event_responder DEFINITION
    DATA: go_handler         TYPE REF TO lcl_event_responder,
          go_container       TYPE REF TO cl_gui_custom_container,
          go_grid            TYPE REF TO cl_gui_alv_grid,
          gt_fieldcat        TYPE lvc_t_fcat,
          gv_language        TYPE spras VALUE 'E',
          gt_outtab          TYPE TABLE OF makt WITH HEADER LINE.
    PARAMETERS : dropdown TYPE char01 RADIOBUTTON GROUP grp,
                 f4help   TYPE char01 RADIOBUTTON GROUP grp.
    START-OF-SELECTION.
      CALL SCREEN 100.
    END-OF-SELECTION.
    *       MODULE PBO OUTPUT                                             *
    MODULE pbo OUTPUT.
      SET PF-STATUS 'BASIC'.
      PERFORM create_and_init_alv CHANGING gt_outtab[]
                                           gt_fieldcat.
    ENDMODULE.                    "pbo OUTPUT
    *       MODULE PAI INPUT                                              *
    MODULE pai INPUT.
      SET SCREEN 0. LEAVE SCREEN.
    ENDMODULE.                    "pai INPUT
    FORM create_and_init_alv CHANGING pt_outtab LIKE gt_outtab[]
                                      pt_fieldcat TYPE lvc_t_fcat.
      CHECK go_container IS NOT BOUND.
      CREATE OBJECT go_container
        EXPORTING
          container_name = 'CUSTOM'.
      CREATE OBJECT go_grid
        EXPORTING
          i_parent = go_container.
      PERFORM build_display_table.
      PERFORM build_fieldcat CHANGING pt_fieldcat.
      IF dropdown EQ abap_true.
        PERFORM set_drdn_table.
      ENDIF.
      go_grid->set_table_for_first_display( CHANGING  it_fieldcatalog      = pt_fieldcat
                                                      it_outtab            = pt_outtab ).
      go_grid->set_ready_for_input( 1 ).
    " raises the 'data_changed' event when we select another cell/any action after changing the data
      go_grid->register_edit_event( EXPORTING i_event_id = cl_gui_alv_grid=>mc_evt_modified ).
      CREATE OBJECT go_handler.
      SET HANDLER go_handler->refresh_changed_data FOR go_grid.
    ENDFORM.                               "CREATE_AND_INIT_ALV
    FORM build_display_table.
      FREE gt_outtab.
      SELECT * FROM makt UP TO 20 ROWS INTO TABLE gt_outtab WHERE spras EQ gv_language.
    ENDFORM.                               "build_display_table
    FORM build_fieldcat CHANGING pt_fieldcat TYPE lvc_t_fcat.
      DATA ls_fcat TYPE lvc_s_fcat.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name = 'MAKT'
        CHANGING
          ct_fieldcat      = pt_fieldcat.
      LOOP AT pt_fieldcat INTO ls_fcat.
        IF    ls_fcat-fieldname EQ 'SPRAS'.
          ls_fcat-edit       = abap_true..
          ls_fcat-outputlen  = 8.
          IF dropdown EQ abap_true.
            ls_fcat-drdn_hndl  = '1'.
            ls_fcat-checktable = '!'.        "do not check foreign keys
          ENDIF.
          MODIFY pt_fieldcat FROM ls_fcat.
        ENDIF.
      ENDLOOP.
    ENDFORM.                               "build_fieldcat
    FORM set_drdn_table.
      CHECK go_grid->offline( ) IS INITIAL.
      DATA: lt_dropdown TYPE lvc_t_drop,
            ls_dropdown TYPE lvc_s_drop.
      ls_dropdown-handle = '1'.
      ls_dropdown-value  = 'EN'.
      APPEND ls_dropdown TO lt_dropdown.
      ls_dropdown-handle = '1'.
      ls_dropdown-value  = 'DE'.
      APPEND ls_dropdown TO lt_dropdown.
      CALL METHOD go_grid->set_drop_down_table
        EXPORTING
          it_drop_down = lt_dropdown.
    ENDFORM.                                " set_drdn_table
    FORM change_display_table USING pv_language pv_rowno TYPE i.
      READ TABLE gt_outtab INDEX pv_rowno.
      SELECT SINGLE * FROM makt INTO gt_outtab WHERE matnr = gt_outtab-matnr AND spras = pv_language.
      IF sy-subrc EQ 0.
        DELETE gt_outtab INDEX pv_rowno.
        INSERT gt_outtab INDEX pv_rowno.
      ELSE.
        CLEAR : gt_outtab-maktx,
                gt_outtab-maktg.
        DELETE gt_outtab INDEX pv_rowno.
        INSERT gt_outtab INDEX pv_rowno.
      ENDIF.
    ENDFORM.                    "change_display_table
    *       CLASS event_responder IMPLEMENTATION                          *
    CLASS lcl_event_responder IMPLEMENTATION.
      METHOD refresh_changed_data.
        READ TABLE er_data_changed->mt_mod_cells INTO ls_changed_cell INDEX 1.
        CALL FUNCTION 'CONVERSION_EXIT_ISOLA_INPUT'
          EXPORTING
            input  = ls_changed_cell-value
          IMPORTING
            output = lv_language.
        PERFORM change_display_table USING lv_language ls_changed_cell-row_id.
        go_grid->refresh_table_display( ).
      ENDMETHOD.                    "click
    ENDCLASS.                    "event_responder IMPLEMENTATION
    Cheers,
    Jose.

  • Match code for file in server

    Hi all,
    I have a selection screen with a parameter "file name output" and i have to add to it a match code.
    I have no idea about the code to be applied to set up this match code.
    Some one can help me please?
    Thanks for all

    Hi,
    Check this Re: browse files on client PC
    aRs

Maybe you are looking for

  • Is there an app that sends photos from iPad to specific folders on your computer?

    Hello, Sometimes I have screenshots of websites or other saved images on my iPad 2. What I do now is sync my iPad to my iMac once in a while and rename the photos on my computer, after which I place the photos in their respective folders. I was wonde

  • How to change the order of Mail accounts

    Is there a way I can adjust the order of how my Mail accounts appear? I have six accounts on my iPhone, but generally only receive e-mails to two of them, so I'd like to put them at the top of the list. Thanks!

  • Linking oraocci11.dll - OCCI works only with Microsoft VC++???

    I wonder if OCCI will work with other IDEs too? I tried to use it with MingW Toolchain (g++). But I could link the dll to my application yet. When compiling I get always: g++ -IC:\oracle\11.1.0\oci\include -IC:\oracle\11.1.0\oci\lib -O0 -g3 -c -fmess

  • C7 - Problem with text messages - Help please!

    I have had my Nokia C7 since November and have not been able to use it! When I send a text message less than 160 characters I am charged between 2 and 3 times on my bill. The text message is being sent once and the recipient is receiving the text onc

  • Problems with NI-488 cPCI adapter under QNX.

    Hi Michael, The problems that I am having with the NI 488 cPCI adapter are random, so it is very difficult to nail down where the problem lies. Sometimes the adapter fails the initialization sequence in the nitn_presence_check routine at various poin