Problem in including search help exit for MM03 transaction.

Hi,
i am trying to include search help for MM03 trasaction based on MATKL(material group)  WGBEZ (description) in the form of alv tree display.
Fuctionality i want to achive is :
1. after pressing F4 on MM03, it prompts to select material group screen, on pressing F4 on material group, now i am able to get the ALV tree display of all the materials and description based on the selection screen criterion.
2. now, after selecting one material group from ALV screen, i am able to map the corresponding value on the material group on the previous(intermediate) screen, but after pressing enter on this screen, i need to get the corresponding material to be mapped on the MM03 transaction, which i am unable to get.
when i press enter, it is again going to ALV tree display only and values arent getting refreshed.
Please help me in solving this.

Hi joydeep mazumder  ,
This is the work of the ABAPer, pls ask them to do it.
Anyway here is the way ...
You can use append search help to add a new search help to an existing standard sap search help..
Pls have a look at this....
http://help.sap.com/saphelp_nw70/helpdata/en/4c/ab0d79e5ce11d295f900a0c929b3c3/content.htm
Regards,
Vvieks

Similar Messages

  • Steps for creation of search help exit for a search help

    Hi,
    I have created a search help. I need to create a search help exit for this search help.
    Please let me know how to create a search help exit as well as how to link it to my search help.

    1)Copy the FM F4IF_SHLP_EXIT_EXAMPLE to write your own FM. (check the documentation and coding of FM F4IF_SHLP_EXIT_EXAMPLE).
    2)write your code depending upon the functionality you want.
    3)attach the FM in search help through SE11 in "search help exit" field.
    A search help exit is a function module for making the input help process described by the search help more flexible than possible with the standard version.
    This function module must have the same interface as function module F4IF_SHLP_EXIT_EXAMPLE. The search help exit may also have further optional parameters (in particular any EXPORTING parameters).
    A search help exit is called at certain timepoints in the input help process.
    Note: The source text and long documentation of the above-specified function module (including the long documentation about the parameters) contain information about using search help exits.
    Function modules are provided in the function library for operations that are frequently executed in search help exits. The names of these function modules begin with the prefix F4UT_. These function modules can either be used directly as search help exits or used within other search help exits. You can find precise instructions for use in the long documentation for the corresponding function module.
    This module has been created as an example for the interface and design of Search help exits in Search help.
    All the interface parameters defined here are mandatory for a function module to be used as a search help exit, because the calling program does not know which parameters are actually used internally.
    A search help exit is called repeatedly in connection with several events during the F4 process. The relevant step of the process is passed on in the CALLCONTROL step. If the module is intended to perform only a few modifications before the step, CALLCONTROL-STEP should remain unchanged.
    However, if the step is performed completely by the module, the following step must be returned in CALLCONTROL-STEP.
    For more detailed information please refer to the documentation describing the concept of the search help exit.
    The module must react with an immediate EXIT to all steps that it does not know or does not want to handle.

  • Issue Search Help Exit for Material Group

    Dear Expertsl,
    I developed a search help exit for material group for the search helps both H_T023 and H_2023_MEPO to restrict certain material groups from the actual display as follows
    1)  I developed custom table to hold the Invalid material groups
    2) Developed search help as same as in the bellow link
    link:[https://wiki.sdn.sap.com/wiki/display/Snippets/CaseInsensitiveSearchHelpExitforMaterial+Group]
    3) Before the statement
        SELECT matkl wgbez wgbez60 FROM t023t INTO s_t023t
          WHERE matkl IN t_matkl
    i selected the Invalid materials from the custom table into an internal table
    4)    i am restricting the entries with the following code.
    LOOP AT a_tab.
    only move values that meet the requirements
    after you convert to upper case.
         MOVE a_tab-wgbez60 TO a_tab-wgbez60_test.
         TRANSLATE a_tab-wgbez60_test TO UPPER CASE.
            MOVE      a_tab-wgbez        TO a_tab-wgbez_test.
            TRANSLATE a_tab-WGBEZ_test   TO UPPER CASE.
            MOVE      a_tab-wgbez60      TO a_tab-wgbez60_test.
            TRANSLATE a_tab-wgbez60_test TO UPPER CASE.
          IF a_tab-wgbez60_test IN i_wgbez60 AND
             a_tab-wgbez_test   IN i_wgbez   AND   
             a_tab-matkl        IN i_matkl.
            ADD 1 TO findex.
            MOVE a_tab-matkl   TO temp_tab-matkl.
            MOVE a_tab-WGBEZ   TO temp_tab-WGBEZ.   
            MOVE a_tab-wgbez60 TO temp_tab-wgbez60.
            IF findex > callcontrol-maxrecords.
              MOVE 'X' TO callcontrol-maxexceed.
              EXIT.
            ENDIF.
            READ TABLE i_invalid INTO w_invalid
            WITH KEY matkl = a_tab-matkl.
            IF sy-subrc NE 0.
              APPEND temp_tab.
            ENDIF.
            CLEAR temp_tab.
          ENDIF.
        ENDLOOP.
    This is working fine when we press F4 in ME21N Transaction and give some description and then press enter the popup screen.
    But my requirement is user will enter some description in ME21N material group field and press enter ( Not pressing the F4 here) at this moment this is not going through the search help exit and displaying all the entries including the Invalid materials.
    Note: We can delete the Invalid material groups but the documents which are having the invalid material already will have an issue and need to be corrected all the documents. But our requirement is only to use the correct materials  groups from now onwards.
    I would appropriate if any one can helping this regard.
    Thanks in advance.,
    Regards,
    Venkat

    Hi Venkat,
    You can call your ZSEARCH_HELP from the PAI , on the event SY-UCOMM = Enter using the function module F4IF_FIELD_VALUE_REQUEST.
    For example, your screen field is MARA-ZXXXX, screen 0100 and search help :  ZSEARCH_HELP
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
        EXPORTING
          tabname                   = 'MARA'
          fieldname                  = 'ZXXXX'
          searchhelp               = 'ZSEARCH_HELP '
          dynpnr                      = '0100'
          dynprofield                =  'MARA-ZXXXX'
    TABLES
       return_tab                = lt_returntab.
    This F4IF_FIELD_VALUE_REQUEST will call your custom search help exit.
    Regards
    Deepa.

  • Search help exit for CSH_T003 not working in FB60

    Hi. We need to restrict document types per transaction code.
    I know we can use authorisations but it would look nicer to actually restrict the list available, so the user can only choose a valid one, rather than choose any but then be told of authorisation problems.
    I put a user exit on the collective search help CSH_T003 and also on the individual H_T003 and set a break point right at the start of the user exit, but it does not break in transaction FB60.
    Does anyone know if it is possible to use a search help exit in transaction FB60? If it is possible what am I doing wrong?
    Thanks a lot for your help.
    Regards,
    Dave.

    Hi ,
    If you are looking to retrict a specific document type for FB60. You can do so, by customizinng "a/c payable & receivable> Busi Trans > Outgoing invoices/Credit memo>Outgoing invoices/Credit memo enjoy.
    Then in Fb60, go to "editing option" and hide the doc type under "Document type option". This will only work if you want to use a specific doc type for FB60.
    Thanks
    Ron
    Edited by: Ron on Dec 2, 2009 8:45 PM

  • Search Help Exit for ECC 6.0

    Greetings,
    I'm working in ECC 6.0. I'm trying to create a Help screen exit using F4IF_SHLP_EXIT_EXAMPLE as a model. The problem is that it will not compile due to the fact that a 'LIKE'  parameter type is used in the function definition tables tab. This is not allowed in 6.0.
    I've tried several work arounds without success. I have search for a 6.0 version of this function without success.
    Does anyone have a solution?
    rv

    Hi Richard,
    We too are running ECC 6.0 (release 701) and the LIKE definition doesn't cause a problem in our system. Maybe it has to do with a particular support pack level. Anyway, since you have presumably copied F4IF_SHLP_EXIT_EXAMPLE to a custom function module, you can manually change the typing of the Changing parameter. I tried this below and the search help exit executes as expected.
    If this doesn't resolve the issue for you, you may want to repost your question to the ABAP Development community.
    Cheers,
    Amy

  • Search help exit for field name: BANKL (bank number)

    Is there any search exit that can be used on field BANKL to display only some bank based on user defined criteria?
    Regards

    we can create the search help ..
    we dont need to use CMOD or SMOD for this .
    The search help exit are implemented as function module (newly created) . 
    The place for exit in search help is blank but we can assing our exit ( FM created ) into that . Take the F1 help of that in change mode of search help .
    A search help exit is a function module for making the input help process described by the search help more flexible than possible with the standard version.
    This function module must have the same interface as function module F4IF_SHLP_EXIT_EXAMPLE. The search help exit may also have further optional parameters (in particular any EXPORTING parameters).
    A search help exit is called at certain timepoints in the input help process.
    Note: The source text and long documentation of the above-specified function module (including the long documentation about the parameters) contain information about using search help exits.
    Function modules are provided in the function library for operations that are frequently executed in search help exits. The names of these function modules begin with the prefix F4UT_. These function modules can either be used directly as search help exits or used within other search help exits. You can find precise instructions for use in the long documentation for the corresponding function module.
    well  which search help you want to change. and what changes are needed .?

  • Search Help Exit for  "*" + F4

    Dear Experts,
    1. With the below code i'm able to achieve general f4 funtionality, But its not hitting when "text" + "*" + F4.
    types: begin of t_userid,
          bname type XUBNAME,
           PERSNUMBER TYPE AD_PERSNUM,
           end of t_userid.
    types: begin of t_lname,
           name_last type AD_NAMELAS,
           end of t_lname.
    DATA WA_CALLCONTROL LIKE DDSHF4CTRL.
    data: it_userid type table OF t_userid,
          wa_userid type t_userid.
    data: it_lname type table of t_LNAME,
          WA_LNMAE TYPE T_LNAME.
    select PERSNUMBER from usr21 into table it_userid.
    if it_userid[] is not initial.
    SELECT NAME_LAST FROM ADRP INTO TABLE IT_LNAME FOR ALL ENTRIES IN IT_USERID
                               WHERE PERSNUMBER = IT_USERID-PERSNUMBER.
    endif.
      IF CALLCONTROL-STEP = 'SELECT'.
        DATA : t_fields LIKE TABLE OF shlp_tab-fielddescr.
        DATA : w_fields LIKE LINE OF shlp_tab-fielddescr.
      LOOP AT shlp_tab.
          LOOP AT shlp_tab-fielddescr INTO w_fields.
            DATA : l_fname TYPE dfies-lfieldname.
            l_fname = w_fields-fieldname.
            CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
              EXPORTING
                parameter               = W_FIELDS-FIELDNAME
               PARAMETER = 'LOCNO'
              OFF_SOURCE              = 0
              LEN_SOURCE              = 0
              VALUE                   =
               fieldname               = l_fname
              TABLES
                shlp_tab                = shlp_tab
                record_tab              = record_tab
              SOURCE_TAB              = it_LNAME
              CHANGING
                shlp                    = shlp
                callcontrol             = callcontrol
             EXCEPTIONS
               parameter_unknown       = 1
               OTHERS                  = 2.                 .
    endloop.
    endloop.
       IF SY-SUBRC = 0.
         CALLCONTROL-STEP = 'DISP'.
       ELSE.
         CALLCONTROL-STEP = 'EXIT'.
       ENDIF.
        EXIT. "Don't process STEP DISP additionally in this call.
      ENDIF.
    2. And i have field1 from table A and field2, field3 from Table B. Internal table has data with field1, field2, field3. when user press f4 should display all 3 fields but after selecting a record and continue only field1 should be placed at screen level. And the same * + f4 needed too.
    Suggest me to achieve it.
    May be these are basics. But i need your help.
    Thanks a lot.
    Siva Mandapudi.

    Hi Siva,
    Your question not clear for me.
    Suggesting according my understanding
    You can achieve F4 functionality by using the following the FM F4IF_INT_TABLE_VALUE_REQUEST
    data :        l_f_index TYPE sy-tabix,
            l_f_programm LIKE sy-repid.
        l_f_programm = sy-repid.
        l_f_dynnr    = sy-dynnr.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            retfield         = 'GRPVL'"field name
            dynpprog         = l_f_programm "Program name
            dynpnr           = l_f_dynnr "screen
            dynprofield      = '  Screen field name'
            value_org        = 'S'
            callback_program = l_f_programm "Program name
            callback_form    = ''
          TABLES
            value_tab        = l_t_proj1 "Value table you have to pass (type standard table)
    *      FIELD_TAB        = L_T_RETURN
            return_tab       = l_t_return_tab
          EXCEPTIONS
            parameter_error  = 1
            no_values_found  = 2
            OTHERS           = 3.
        READ TABLE l_t_return_tab INDEX 1.
        IF  sy-subrc = 0 .
         table<Field name > = l_t_return_tab-fieldval.
        ENDIF.
    all F4 FM can select only one value.If req is to get all three value contactnate and pass.
    regards,
    Amit
    Edited by: Amit Kumar on Aug 4, 2011 11:08 AM

  • Refresh Search Help exit

    Hello,
    We have added a search help exit for sales order reason codes to restrict the values allowed by order type.  It works great except when the user changes the order type.  The system does not pass thru the search help exit again and refresh the values for the new order type unless the user calls transaction VA01 to start over again.   How can I force the system to refresh the search help exit without starting the transaction again?
    Thanks.
    Maggie

    For VA01 there is an inlude MV45AFZZ. In this include there is a form called FORM userexit_field_modification.
    Put in this form the following code and the problem is solved.
    CASE SCREEN-NAME.
       WHEN 'VBAK-AUGRU'.
        CALL FUNCTION 'VRM_DELETE_VALUES'
          EXPORTING
            id                         = 'VBAK-AUGRU'
          ID_CONTAINS_PROGNAME       =
         EXCEPTIONS
           ID_NOT_FOUND               = 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.
    ENDCASE.
    Regards,
      Robert

  • Help needed in search help exit

    Hi Experts,
       I have used a search help exit in IL03 transaction to include a field in a particular search tab. I have written the code in timepoint PRESEL1 and it is showing the search field in that search tab when I directly enter into that tab.
    But the problem comes when I go to some other search tab and come to the required search tab the field which I have included is not displayed.
    Please give your suggestions to solve this problem.
    Thanks in Advance,
    Arasu K

    Hi,
          In that case. you can do one thing.
    in your search help, following field will have the value entred by the user.
    SHLP_TAB[1]-INTERFACE[1]-VALUE
    Read this table SHLP_TAB index 1 and do your logic.
    Reward points if useful.
    Regards,
    Niyaz

  • Regarding Search Help Exit

    I am having a problem in Search help exit.
    Currently we have a search help “Z_srchlp”. In the Selection method of this search help we have a Help view “z_view”.
    In this view we have a join on Tables KNA1 and KNVV. But now the requirement is to fetch some fields(STR_SUPPL1 and STR_SUPPL2) from ADRC table also. I have to write a Search help Exit for that.
    The search help is on “SHIP-TO PARTY” in VA01. In the Output I need to Display the fields (STR_SUPPL1 and STR_SUPPL2) from ADRC based on adressnumber i.e., ADDRNUMBER in addition to what we are displaying currently.
    Please let me know How can I achieve it. It will be great help if u can send me the Code as it is very urgent.

    Hi,
    take a look to the search help F4IF_SHLP_EXIT_CUSTOMER with SE37.
    Regards
    Nicole

  • Urgent-SEARCH HELP EXIT ISSUE

    Hi All,
    I have developed a search help exit for the search help-H_T604, for field STAWN-commodity code.
    When I logon with the my user id, and press F4 for this field, the search screen appears. However, when I use any other login, I do not get this search option and nor are the value options displayed. Please note that this happens only for the material master(MM03). When we are in transaction ME23N, when we press F4 for the same field(STAWN), irrespective of the user login id, we get the search option.
    Please Help.
    Thanks and Regards
    Veena

    Hello Veena,
    hav u checked onething. Any of the exit in MM03 does they checked Sy-UNAME. Please check it.
    Vasanth

  • Search Help Exit in Modal Display of Search Help

    I have created a new search help within the collective search help kred (Vendors/Creditors).  The new search help shows up in FK01,2,3 as a separate tab and uses value restriction.  Furthermore, I have written a Search Help Exit for it.  THE PROBLEM:  Everything works fine when in Control(amodal) mode (menu path: help -> settings -> F4 help), but has a problem when in Dialog(modal) mode.  The Filter button produces a blank dialog box when selected.  Callcontrol-step is PRESEL after the button is selected, do I need to use some function module for this callcontrol-step in the exit to get Filter functionality?
    Message was edited by: Jason DeLuca

    closed

  • Help with DYNP_VALUES_READ and DYNP_GET_STEPL in search help exit

    Hi,
    I'm coding a search help exit for a field on a table control and I need to get access to the value of another field that's on the same line in order to limit the hit list.  I can use DYNP_VALUES_READ to return the values from the step loop, but I can't find out which line of the step loop I'm on.  DYNP_GET_STEPL always returns 0, presumably because I'm now in a function group and the step loop is getting reset.  Any ideas?
    Thanks in advance,
    Andrew

    I want to read EBELP and INFNR.
    Below is code that i'm using:
          MOVE 'MEPO1211-EBELP' TO t_campos-fieldname.
          APPEND t_campos.
          MOVE 'MEPO1211-INFNR' TO t_campos-fieldname.
          APPEND t_campos.
          CALL FUNCTION 'DYNP_VALUES_READ'
            EXPORTING
              DYNAME                          = 'SAPLMEGUI'
              DYNUMB                          = '1211'
            TABLES
              DYNPFIELDS           = t_campos
            EXCEPTIONS
              INVALID_ABAPWORKAREA = 1
              INVALID_DYNPROFIELD  = 2
              INVALID_DYNPRONAME   = 3
              INVALID_DYNPRONUMMER = 4
              INVALID_REQUEST      = 5
              NO_FIELDDESCRIPTION  = 6
              INVALID_PARAMETER    = 7
              UNDEFIND_ERROR       = 8
              DOUBLE_CONVERSION    = 9
              STEPL_NOT_FOUND      = 10
              OTHERS               = 11.
          READ TABLE t_campos INDEX 1.
          l_ebelp = t_campos-fieldvalue.
          READ TABLE t_campos INDEX 2.
          l_infnr = t_campos-fieldvalue.
    The sy-subrc = 0, but the FM didn't bring the values of the screen fields. Is there some wrong with the filed name?
    Thanks.

  • Use of search help exit

    use of search help exit with an example

    Hi,
    A search help describes the standard input help process. In exceptions it could be necessary to deviate in some points from this standard. Such a deviation from the standard can also be implemented with a search help exit.
    The input help process should look as much the same as possible throughout the entire system. Search help exits should therefore only be used for exceptions.
    A search help exit is a function module that has a predefined interface. A search help exit is called at certain times by the help processor. The administrative data of the help processor are passed to the search help exit using the interface.
    You can store your own program logic that manipulates this administrative data in the search help exit. Individual steps of the input help process can be skipped with a search help exit.
    for example
    Search help exit F4UT_OPTIMIZE_COLWIDTH adjusts the column width in the hit list to the contents of the column. It makes sense to use this search help exit when the columns of the hit list have to be made very wide for extreme cases (e.g. for name fields), but normally they will contain much smaller values.
    Each search help exit must have the same interface as function module F4IF_SHLP_EXIT_EXAMPLE (is used as pattern for all the search help exits to be created). You can find more information about the interface in the documentation for this function module.
    Calling the Search Help Exit
    If a search help exit is assigned to a search help, the help processor calls it at the following times:
    Before Displaying the Dialog Box for Selecting the Required Search Path.
    It is only called for collective search helps. Using the search help exit, the set of elementary search helps available can for example be restricted depending on the context.
    Before Starting the F4 Process for the Elementary Search Help
    The call is triggered independent of whether the dialog window for entering the search conditions appears or whether the selection is executed immediately (for example, because in the Hot key of the elementary search help Immediate value display is set).
    Before Displaying the Dialog Box for Entering Search Conditions.
    You can either influence the dialog for entering search conditions or skip it altogether here. You can also influence how the selection screen looks. The call is triggered only if there is no direct selection (that is, if in the Hot key of the elementary search help Immediate value display is not set).
    Before Selecting Data.
    The data selection can be partly or completely copied from the search help exit. This can become necessary if the data selection cannot be implemented with a SELECT statement for a table or a view.
    Before Displaying the Hit List.
    You can influence the display of the hit list in this step with the search help exit. You can reduce the number of values displayed here. For example, you can display only values for which the person calling the input help has authorization. You can also copy the complete hit list from the search help exit.
    Before Returning the Values Selected by the User to the Input Template.
    It could be advisable to intervene at this time if control of the further transaction flow should depend on the value selected. A typical example is setting set/get parameters.

  • How to code my logic in Search Help Exit

    Hi,
    I need to add my own Search Help say MATOG in Material MATNR Collective Search Help MAT1-> Collective Search help MAT1_A.
    Is it possible?
    And , when I need to add my own logic in Search Help exit for my particular Search Help, how should I code?
    Thanks,
    Shivaa..

    Hi,
    Go through below link, it gives you step by step approach in implementing search help exit.
    https://wiki.sdn.sap.com/wiki/display/Snippets/ImplementingSearchHelp+Exits
    Regards,
    Raghavendra

Maybe you are looking for

  • Check list for upgrading from 10g to 11g when there is a schema replication

    Hi We are looking to upgrade one of our production database from 10g to 11g Currently this database has one schema that is replicated to 2 other databases using Oracle streams. The replication is excluing DDLs and excluding several other application

  • Outook PST to Entourage, iCal etc?

    I know its probably been asked many times before and I have read a few posts and googled it many times. I have Outlook 2007 with about a 2-3gig PST. I am looking to go over to the dark side (iMac) and want to know the best way of converting this into

  • Mini Display Port as a video in?

    Does anyone know if the mini display port can become a video in as opposed to video out only? If so, how?

  • Adobe Story iPhone app

    We're happy to announce the release of the Adobe Story iPhone application today. Try it out: http://itunes.apple.com/us/app/adobe-story/id430876855?mt=8 --Anubhav Anubhav Rohatgi Sr. Product Manager

  • Reinstalling iOS7 apps

    In an effort to clean up my apps I erased the iOS7 Compass and Passbook apps (surprised that this was possible as it hasn't been in previous iOS versions). Howeber, I would like to get them back without having to make a full restore. How do I do this