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

Similar Messages

  • SY-TABIX within a search help exit...

    Hallo all,
    I tried to find an answer in earlier postst, but did not succeed, therefore this message.
    I have built a customtabel with several columns. For one of the columns I have built a custom search help, including some coding in the search help exit. In this coding I want to do a different selection based on the value in another column (BUKRS) of the same table. Do you understand what I mean?
    The trick is to retrieve the right value of in the column BUKRS in the same line of the table, at the moment I am pushing F4 for another column.
    And I dont know how to do this. I dont have the right SY-TABIX value, so this is not helping.
    Does anybody have an idea as how to tackle this?
    Kind regards,
    Erik

    Hello Francois & Holger,
    Thanks for the reply, but Iu2019m calling this searh help from the transaction SE16 itself, so I donu2019t have my own table control. I am also using the search help in another situation (from a custom-made screen) and here I can pass on the value via a parameter, but this is not working in the case I described.
    So the SY-STEPL is not working too....
    Kind regards,
    Erik

  • Getting values from screen to search help exit

    Hi Experts,
    I have created a search help in which I am not using selection method but search help exit. Dialog type is 'Dialog with value restriction'. My requirement is to get the values entered in restriction screen into search help exit. Please suggest a parameter which will hold this value in search help exit function module.

    Hi M,
    As you know there are 5 steps in search help exit. For each step, the values in parameter of your search help exit is different.
    For your requirement, you need process in step 'DISP', and get the selection value from 'SHLP-SELOPT'.
    Example:
    *Build range for customer number 
    LOOP AT shlp-selopt INTO ls_selopt WHERE shlpfield = 'KUNNR'.   
      lr_kunnr-sign = ls_selopt-sign.   
      lr_kunnr-option = ls_selopt-option.   
      lr_kunnr-low = ls_selopt-low.   
      lr_kunnr-high = ls_selopt-high.   
    APPEND lr_kunnr.   
    CLEAR: lr_kunnr. 
    ENDLOOP.
    Then using the lr_kunnr range in your select statement.
    regards,
    Archer

  • 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

  • What is the significance of data collection nad search help exit field ?

    Dear Gurus
    I  know i am asking very basic quetion of abap but sdn is  the only source to learn sap for me.I want to thanks you all for your kind support.
    i read  most of the post related to search help and trying to create one.
    for elementary search help.
    SE11 -> SEACH HELP -> ELEMENTARY SEARCH HELP
    I have doubts regarding to fields "DATA COLLECTION" and "SEARCH HELP EXIT".
    reference to a  tutorial it is a maintenance view  shall i  have to reate  a maintenace view first.
    and other field is  SEARCH HELP EXIT what is this.
    please help me .
    Thanks in advance.
    Chitta Ranjan mahato.
    Edited by: chitto123 on Oct 8, 2010 5:59 AM

    Howdy,
    DATA COLLECTION - refers to a database table or view.  This is the data that the search help will search through and display based on the parameters provided, so you can create your own view for the search help if you want the search to cover multiple tables.
    SEARCH HELP EXIT - You can create a function module to be able to alter the Search Help's selection and results at various events throughout the search help.  An example of this function module is provided with some documentation in function module F4IF_SHLP_EXIT_EXAMPLE.
    Cheers
    Alex

  • 'Screen Group' in Screen Painter,  & 'Search help Exit'

    Hii All,
    1. What is 'Screen Group' in Screen Painter
    attributes. In which Scenario we will go for it.
      2. What is 'Search help Exit'.
    Please post your messages and guide me in this topic,
    Thanks & Regards,
    John.

    Hi John,
    A Search help exit is something similar to a user exit. Every search help will have an option of attaching a search help exit under the definition tab( when you view the search help from se12).
    For example take a look at the search help VMVA - you will notice a search help exit  SD_F4_SHLP_EXIT_SUBSHLP_CHOOSE attached to it.
    Basically the serah help exit which is nothing but a function module with a predefined interface which gets triggered before a f4 help is displayed. The exit is used to supress or do any other related modification required.
    We have implemented many search help exits and the reason is that we have given a custom interface to our business partners to carry out some transaction on our SAP systems. Though we have given them access to our SAP system we also want to ensure that the business partner does not view any additional data in the system. We have controlled this via many ways like using z objects, using authorizations etc. Still once the user has authorizations to any transaction he or she can do a f4 help on any field and see the data which he should not be able to do. So we have implemented search help exits to supress the drop down only for the business partners. We control this based on the unique login id's we have given to them.
    So in short it is used to modify the behaviour of F4 help, mostly used to supress the drop down.
    It has to be defined in a specific format.
    Hope this helps.
    Cheers
    VJ

  • 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

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

  • Customer field account assignment - F4 - search help exit

    Hi all,
    I have a question with regard to a F4 search help exit I'm try to build for a new CUF in the account assignment (include INCL_EEW_PD_ACC_CSF).
    I've successfully created everything (search help + F4 search exit (read R/3 table)), but when I want to include restricted the search with certain filter values entered on the screen I'm stuck.
    I tried to achieve this by passing the parameters entered on the search screen to the RFC read table function, but in fact I'm not able to read the <b>screen values</b> (using 'DYNP_VALUES_READ'):
    CALL FUNCTION 'DYNP_VALUES_READ'
            EXPORTING
              dyname               = lc_dyname_1
              dynumb               = lc_dynumb_1
              translate_to_upper   = 'X'
            TABLES
              dynpfields           = li_fields_filter
    I'm always getting an invalid dynpro error (I've tried passing SAPLBBP_PDH_ACC, SAPLBBP_SC_UI_ITS, SAPLBBP_CUF,...).
    Does anybody know how I can include de filter values of my search screen in my search ?
    Thanks in advance,
    Kristof

    Hi
    Which SRM version are you using ? What's your detailed requirement ?
    <b>You need to call these function modules inside your search help exit to fetch the user-entered value and then process it accordingly as per your requirements.</b>
    <u>Please go through these function modules.</u>
    *--- Get the user-entered fieldname
    <u>    CALL FUNCTION 'F4UT_PARAMETER_VALUE_GET'</u>
    *--- Map the Results
    <u>    CALL FUNCTION 'F4UT_RESULTS_MAP'</u>
    <b>Other related links -></b>
    Re: Search helps - CASE sensitive
    Re: Search Help - format problem
    Hope this will help.
    Regards
    - Atul

  • How to concatenate fields in Search help exit

    Hi,
    My requirement is i have to create a search help for a field in cj20n transaction.
    when i press f4 on that field i should get a popup of 4 fields from custom table,when user selects any 1 row,
    first 3 field values should be concatenated and appear in screen field . in search hlp i added 1 more field so that i can concatenate
    all 3 field values and place in it.I can use  search help exit so i can concatenate but there are steps like selone,presel etc i am not able to understand .
    I saw some examples in wiki, but not able to understand what to do for my requirement.
    regards.
    Edited by: vnamamala on May 27, 2010 12:22 PM

    You would use the step 'SELECT' to control the data selection into an internal table.  You would use the step 'DISP' to map the records in the internal table to the search help record table.  In your case, I would already have a field in the internal table with the values concatenated together prior to the hit list display (do this in SELECT step) which is not displayed in the hit list but is flagged as the EXPORT field in the search help definition; otherwise just put the field at the end of the hit list. 
    Map your results in DISP as follows:
    *   Map the internal table to RECORD_TAB
        CALL FUNCTION 'F4UT_RESULTS_MAP'
             TABLES
                  SHLP_TAB          = SHLP_TAB
                  RECORD_TAB        = RECORD_TAB
                  SOURCE_TAB        = GT_DOCUMENT
             CHANGING
                  SHLP              = SHLP
                  CALLCONTROL       = CALLCONTROL
             EXCEPTIONS
                  ILLEGAL_STRUCTURE = 1
                  OTHERS            = 2.
        CALL FUNCTION 'F4UT_OPTIMIZE_COLWIDTH'
             TABLES
                  SHLP_TAB    = SHLP_TAB
                  RECORD_TAB  = RECORD_TAB
             CHANGING
                  SHLP        = SHLP
                  CALLCONTROL = CALLCONTROL.

  • Query about Search help exits

    Hi experts,
               I have one query regarding search help. I have created a elementary search help which is having two fields.Now my requirement is that in the selection screen when I will enter any value in one field and i will press F4 in other field the list should contain only the values corresponding to the first field.
    e.g.two fields comp code and name of company. When I will select the company code and press F4 in the second field the companies corresponding to the particular code should appear. Should I write a particular exit for that.
      Experts please help me.
      I will reward points accordingly.
      Thanks in advance,
        Abir.

    hi abir,
    no neeed for that.
    here i am fetching zones under a country.
    so first user enters a country.
    eg india.
    then on the zone field f4 help, only the zones of india shulod come.
    chk how i did it.
    *&      Form  F_GET_ZONE_DESC
          THIS SUB ROUTINE WILL FETCH THE ZONE DESCRIPTION
    -->  p1        F_GET_ZONE_DESC
    <--  p2        F_GET_ZONE_DESC
    FORM f_get_zone_desc .
      CLEAR int_ret.
      IF wf_country_code IS INITIAL.
    *--MESSAGE IS 'Country Not Selected'.
        MESSAGE s016(zm050).
      ELSE.
    *--THIS WILL FETCH THE ZONE CODES INTO THE INTERNAL TABLE'INT_ZONE_CODE'
    *--WITH RESPECT TO A COUNTRY CODE.
        SELECT zonecode zone_desc
          FROM zmpets_zone
            INTO TABLE int_zone_code
              WHERE land1 = wf_country_code
               AND loekz NE 'X'.
        IF sy-subrc NE 0.
    *MESSAGE IS 'No Zone Available In <COUNTRY_NAME>
          MESSAGE s019(zm050) WITH wf_country_desc.
        ELSE.
          CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
            EXPORTING
      DDIC_STRUCTURE         = ' '
              retfield               = 'WF_ZONE_CODE'
      PVALKEY                = ' '
      DYNPPROG               = ' '
      DYNPNR                 = ' '
      DYNPROFIELD            = ' '
      STEPL                  = 0
      WINDOW_TITLE           =
      VALUE                  = ' '
             value_org              = 'S'
      MULTIPLE_CHOICE        = ' '
      DISPLAY                = ' '
      CALLBACK_PROGRAM       = ' '
      CALLBACK_FORM          = ' '
      MARK_TAB               =
    IMPORTING
      USER_RESET             =
            TABLES
              value_tab              = int_zone_code
      FIELD_TAB              =
             return_tab             = int_ret
      DYNPFLD_MAPPING        =
           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.
          READ TABLE int_ret INDEX 1." INTO INT_RET.
          wf_zone_code = int_ret-fieldval.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDFORM.                    " F_GET_ZONE_DESC
    rgds
    anver
    if helped mark points

  • Search Help exits using Web Dynpro abap

    Hi,
    Before returning the values selected by the user to the input field, i have to set a column of the F4 result list based on some computation. How can i do that?
    i.e to set a field value dynamically using search help exit
    plz reply.
    Thanks & Regards,
    Raji.

    Hi Raji,
    The blog mentioned by micheal is written by me.
    Go through the blog and let me know your queries.Lets see if i can help you

  • 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

  • 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

  • Search help exits

    I have a custom search help exit defined in se11, attached it to the screen. It works good when run in test mode from se11. But I have trouble getting it working from the screen. When I debugged, noticed the search help interface is not populated correctly. It just has the information of only the first parameter, while I have 3 import parameters in the search help defintion.We are on SAP 4.7 . Any help in this regard is appreciated.

    Is the information populated in the the fields of the database table used in your selection method.  What I mean is, does the data exist in the database table that you are using in your selection method.  If there is no data in those fields, then of course, it will not show in your search help.
    Regards,
    Rich Heilman

Maybe you are looking for

  • Dump : COMPUTE_INT_PLUS_OVERFLOW

    Hi experts, I am getting a dump COMPUTE_INT_PLUS_OVERFLOW in a report. its at the line: z1 = z1 + z1. Dump says: "Using + or 'ADD' to add the values 2060095488 and 2060095488 resulted in a value greater than 2147483647 or samller than -2147483648. Th

  • New Firefox display took away all my yahoo tools and bookmarks, how do I get them back?

    After installing the new firefox, I can not get my yahoo toolbar back. I re-downloaded it, but can not get it to open and install. I had dozens of categorized bookmarks in there, critical for my business.

  • Add search help to customer field in ESS Leave

    Hi All , I was able to add some required field on the screen by the customer fields like Country. But some fields need search help, can anyone advice how to add search help. Is it possible to add field from webdynpro code also , so that I can give se

  • Filtering files in a folder that are in sub folders

    Is there a way to show only the files in a folder that are not contained in sub folders? Thanks, Braden

  • GREEN SPOT ON INDOORS PICTURES

    i am at the 8th phone by know with the same issue,green spot in the midle of the picture,just wondering is this normal on the iphone 4 everybody has this issue? i am so tired of this phone and give up swaping the phones,there will be some software fi