How to create Search help exit, and then assign it to a collective search

hi gurus,
i have an intersting question for you, well my scenario is like i have to create a search help exit using some function module cause i didt found table for my search help but i can find the value through FM, i know we can create a search help exit and then assign it to collective search help,
  my problem is what are the parameters i need to pass to this search help exit FM, and in the function module i want to use the value entered on the f4 selection screen to extract data through FM. i need to give a solution  asap.
any reply will be highly appreciated
n rewards points for sure.
thanks mandy

Hi mandy,
Have a look at this code,
FUNCTION SHLP_SHOW_LIST.
""Local interface:
*"  IMPORTING
*"     VALUE(PLANT) TYPE  WERKS_D OPTIONAL
*"     VALUE(DISPLAY_ONLY) TYPE  FLAG OPTIONAL
*"  EXPORTING
*"     REFERENCE(ITEM_SELECTED) TYPE  CHAR20
*"  EXCEPTIONS
*"      POPUP_CANCELED
TYPE-POOLS SHLP .
CONSTANTS:
        co_shlpname            TYPE shlpname   VALUE 'SHLP_CONTAINER',
        co_shlpfield_itemalias TYPE ddshlpsfld VALUE 'CONTAINER'.
  DATA: l_shlp         TYPE shlp_descr_t,
        l_subrc        TYPE sysubrc,
        l_return_tab   TYPE STANDARD TABLE OF ddshretval,
        l_return_wa    TYPE ddshretval,
        l_interface_wa TYPE ddshiface.
Get details for search help
  CLEAR l_shlp.
  l_shlp-shlpname  = co_shlpname.
  l_shlp-shlptype  = 'SH'.
  CALL FUNCTION 'DD_SHLP_GET_HELPMETHOD'
       CHANGING
            shlp = l_shlp.
Assign virtual screen field
  READ TABLE l_shlp-interface INTO l_interface_wa
  WITH KEY shlpfield = co_shlpfield_itemalias.
  l_interface_wa-value      = space.
  l_interface_wa-valtabname = 'X2'.    "virtuel screen field
  l_interface_wa-valfield   = 'Y2'.    "virtuel screen field
  MODIFY l_shlp-interface FROM l_interface_wa INDEX sy-tabix.
Call F4 popup
  CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
       EXPORTING
            shlp          = l_shlp
            disponly      = display_only
       IMPORTING
            rc            = l_subrc
       TABLES
            return_values = l_return_tab
       EXCEPTIONS
            OTHERS        = 0.
  IF sy-subrc = 0 AND l_subrc = 0.
  Value selected
    READ TABLE l_return_tab INDEX 1 INTO l_return_wa.
    item_selected = l_return_wa-fieldval.
  ELSE.
  Popup canceled / no value selected
    RAISE popup_canceled.
  ENDIF.
ENDFUNCTION.
make sure to call these FMs and populate accordingly...
Thanks
Madhu

Similar Messages

  • Class override, how to create the child class and then the base class

    I started to write a program for a smart DMM, the problem is every version of the DMM the company change the communication commend.
    My idea is to write a child class for every DMM version and every SubVI of the child will override the base class SubVI.
    My problem is, i want first to create one child class and after i will see every thing is work,  start to create the base class. that way i will see if am thinking the right way.
    My question is
    How can i create a child class and then create the base class and configure the SubVi of the child class to be Override of the base class?
    I tried to search in the property of the class but i didn't see nothing.
    Thanks
    Solved!
    Go to Solution.

    This can be done and I've done it on occasion.
    You simply create the base class with the dynamic dispatch methods you require (connector panes need to be identical to thos of the child class).
    Then set the inheritance of the class to inherit from this base class.  If your method is defined as a dynamic dispatch method in the parent, you'll most likely now have some errors (unless your child method was already DD in which case you might just be OK already).
    To change the inheritance of a class, right-click the properties of the class in your project and select properties.  I believe the ineritance tree is at the lower end of the properties.  Click on the "change inheritance" (or something similar) to choose the class from which you now wish to inherit.
    Say hello to my little friend.
    RFC 2323 FHE-Compliant

  • Search Help Exit and Cursor Position

    I have created a new search help, which returns the selected value into the applicable screen field correctly.  The problem is that there are multiple fields on the screen, and the first field keeps getting the cursor focus instead of the search help field.  Is there any way to control the position of the cursor upon returning from the search help?

    Implement this sample program.  While the selection screen is displayed, keep hitting enter.  Notice the cursor changing from field to field.  Maybe you could use this type of coding.
    report zrich_0001.
    data: cursorfield(30) type c.
    parameters: p_matnr type mara-matnr,
                p_werks type marc-werks,
                p_lgort type mard-lgort.
    at selection-screen.
      get cursor field cursorfield.
    at selection-screen output.
      case cursorfield.
        when 'P_MATNR'.
          set cursor field 'P_WERKS'.
        when 'P_WERKS'.
          set cursor field 'P_LGORT'.
        when 'P_LGORT'.
          set cursor field 'P_MATNR'.
      endcase.
    Regards,
    Rich Heilman

  • How to create an OrbtBehavior  bean and then initialize

    Greetings:
    Here's my problem:
    When I use OrbitBehavior as a standard piece of code from the J3D libraries it works, when I try to create a class and using the "extend" during the initialization, the code compiles,
    but I can't figure out how to connect the OrbitBehavior into the Canvas3D and the connect all the pieces to create some neat mouse action in a game I"m writing.
    Standard code:
    javax.media.j3d.Canvas3D canvas3d =
    new javax.media.j3d.Canvas3D();
    com.sun.j3d.utils.behavior.vp.OrbitBehavior orbitBeh =
    new com.sun.j3d.utils.behavior.vp.OrbitBehavior(canvas3d);
    orbitBeh.setSchedulingBounds(
    new javax.media.j3d.BoundingSphere(
    new javax.vecmath.Point3d(0.0, 0.0, 0.0),
    10000.0
    com.sun.j3d.utils.universe.SimpleUniverse virtualUniverse =
    new com.sun.j3d.universe.SimpleUniverse(canvas3d);
    virtualUniverse.getViewingPlatform().setViewPlatformBehavior(canvas3d);
    virtualUniverse.getViewer().getView().setBackClipDistance(10000.0);
    virtualUniverse.addBranchGroup(scenegraphBG);
    I've got as far as initializing a bean that is something like:
    class myBeh extends com.sun.j3d.utils.behaviors.vp.OrbitBehavior{
    In other object:
    class myObj extends javax.swing.JPanel{
    ** Note: this code is exteremely similiar to the old milkshapeViewer source code found somewhere like chumbalumsoft.com.
    The need to import using a Loader some MilkShape3D files is critical, and the OrbitBehavior code was about 3 lines long.
    As far as OrbitBehavior goes, the model flips around and zooms, but I need to control the reactions to the mouse and have been
    having an issue when settinup wakeupon... Criterion.
    That problem is, that I need more than one wakeup variable to defined (mouse movement, mouse button1, mouse button2, mouse wheel),
    KeyBoard keys, etc.
    Any suggestions on how to properly use OrbitBehavior and build a KeyHandler into com.sun.j3d.utils.behavior.vp.* based object would be
    greatly appreciated.
    Thanks again,
    -Cymryjian.

    Hi Roy
    I have the same doubt!! My application works with tables in a Oracle database but I have several Entity EJB too .. is it absolutely necessary to create the tables that are used by the Entity EJBs in a data dictionary project?
    I hope anybody help me.
    Thanks

  • How can I call a specific search help from and still get all the tabs

    hello
    I use F4IF_FIELD_VALUE_REQUEST to display a specific search help from my program. This search help is included in a collective search help, but only the one specified search help is displayed.
    Is it possible to call the collective search help and display one specific search help ?
    Example: in CRM i have a collective search help BUPA. When F4 is issued from a customer field the search help "Search customer" should be displayed, and not the last search help which was activated - i.e.. "Search employee".
    best regards
    Peter Christiansen

    Hi,
    you can try some thing like this..
          CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
            EXPORTING
              TABNAME           = 'KNA1'
              FIELDNAME         = 'KUNNR'
              SEARCHHELP        = 'DEBI'
            TABLES
              RETURN_TAB        = LT_RETURN
            EXCEPTIONS
              FIELD_NOT_FOUND   = 1
              NO_HELP_FOR_FIELD = 2
              INCONSISTENT_HELP = 3
              NO_VALUES_FOUND   = 4
              OTHERS            = 5.
          IF SY-SUBRC <> 0.
            MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    Regards
    vijay

  • Can anybody suggest me how to creat match code id and object

    hi Gurus,
    can any body suggest me how to create match code object and match code id..
    in my program i need specific values in search help..
    to avoid confusion in selecting the values.
    i need only selcted values..
    thanks in advance.
    vijay chavan

    Hi
    In Older SAP versions Match codes are used, now they are replaced by SEARCH HELPs
    there 2 types of search helps
    Elementary and Collective
    see the doc and create accordingly
    1) Elementary search helps describe a search path. The elementary search help must define where the data of the hit list should be read from (selection method), how the exchange of values between the screen template and selection method is implemented (interface of the search help) and how the online input help should be defined (online behavior of the search help).
    2) Collective search helps combine several elementary search helps. A collective search help thus can offer several alternative search paths.
    3)An elementary search help defines the standard flow of an input help.
    4) A collective search help combines several elementary search helps. The user can thus choose one of several alternative search paths with a collective search help.
    5)A collective search help comprises several elementary search helps. It combines all the search paths that are meaningful for a field.
    6)Both elementary search helps and other search helps can be included in a collective search help. If other collective search helps are contained in a collective search help, they are expanded to the level of the elementary search helps when the input help is called.
    CREATION:
    Go to SE11  Tcode
    select search help
    give the 'z' search help name and create
    select the selection method ur table name eg : 'mara'
    dialog module 'display value immediately'.
    add the field whatever u want and lpos = 1 and spos = 1 and check import and export parameter.
    where left position when displaying and spos = search position
    and then save and activate ..
    See the links:
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm
    https://forums.sdn.sap.com/click.jspa?searchID=3173469&messageID=2176485
    https://forums.sdn.sap.com/click.jspa?searchID=3173469&messageID=3601619
    pls go through this for search help creation
    http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm
    Search Help Exits:
    Re: dynamic values for search help
    Re: Dynamic search  help
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee52446011d189700000e8322d00/content.htm
    http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_exit.htm
    https://forums.sdn.sap.com/click.jspa?searchID=4390517&messageID=1712818
    Collective search help Combine several elementary search helps. A collective search help thus can offer several alternative search paths.
    A Collective search help provides alternative search
    Paths by combining elementary search helps.
    Only one search help can be attached to a field, table or data element. Several search paths are therefore attached with a collective search help.
    A collective search help also has interface parameters like
    an elementary search help.
    Like an elementary search help, a collective search help has an interface of IMPORT and EXPORT parameters with which the search help exchanges data. Using this interface, the collective search help can be attached to fields, tables and data elements exactly like an elementary search help.
    Parameter assignment needs to be done for each of the
    Included search helps.
    When you define a collective search help, there are no components for describing the dialog behavior and data selection; instead the included search helps are listed here. You must assign the parameters of the collective search help to the interface parameters of the included search help for each inclusion.
    User may choose the tab and thus the elementary
    search maethod.
    When we execute the search help SCUSTOM, we are confronted with a dialog which gives us an option of either restricting
    By 1)Search for customer according to booking
    2)Search for customer according to name.
    These are effectively the elementary search helps (SCUSTOM_BOOK and SCUSTOM_NAME) which have been included in the collective search help SCUSTOM.
    HOT KEY
    The hot key is used to select the elementary search help from the collective search help and to enter the restrictions in the dialog box for restricting values directly from the entry field. If the user often searches for values using the same search help, this procedure can save time.
    Steps to create a Collective Search Help
    1)Enter the search help name and click on create.
    2)Choose Collective search help radio button option as the search help type.
    3)Enter the search help parameters.
    4)Instead of the selection method, we enter the included
    search helps for the collective search help.
    5)We need to assign parameters for each of the included
    search helps.
    6)Complete the parameter assignment by clicking on the push button
    7)Collective search help offers the user to obtain F4 help
    using any of the included search helps.
    Regards
    Anji

  • 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 : Table appears sorted in Search Help!

    Hi All,
    I have implemented a search help exit to show a custom list of objects. Unfortunately, the list gets sorted somewhere in between the search help exit and the actual F4 display.
    Any ideas what I can do tp prevent the sorting?  It's very important that the output list displays in exact order that I have in the exit function module.
    Thanks!
    Roman D.

    while passing the changing parameter CALLCONTROL
    chk while populating the table make sure that
    callcontroltable-sortoff(DDSHF4CTRL-SORTOFF)
    is not 'X'.
    Refer to this link below
    search help exit
    Regds
    Manohar

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

  • If i selected to "Create a new backup" and then cancelled that option but want to go back and select "Inherit backup history"; how do i go back and do that since now when i plug in my HD, that option doesn't appear anymore?? Any Help?

    If i selected to "Create a new backup" and then canceled that option but want to go back and select "Inherit backup history"; how do I go back and do that since now when I plug in my external hard drive, that option doesn't appear anymore?? Any Help? I bought a MacBook Air, but decided to return it for the newest model, and I wanted to back it up so that I can then back it up on my new MacBook Air. I didn't understand the option to Inherit or start a new back up, and therefore selected the option to create a new backup. I believe I should have selected to Inherit backup history so that when i back it up on the new MackBook Air, it appears the same as the one I'm returning.... Is there anyway that i can re-select the option to Inherit backup history for time machine?

    Thanks for sharing this link.
    I've posted a question here https://discussions.apple.com/message/22049103#22049103 describing my situation. Are you able to suggest me the right option?

  • Can somebody help me on how to create Search help exit?

    I have requirement where in i have to use search help exit in search help .Based on the value in the GET parameter id i have to extract the value in the search help can somebody help me in this.

    HI
    In order to offer a meaningful input help for as many screen fields as possible, the R/3 System uses a number of mechanisms. If there is more than one such mechanism available for a field, the one that is furthest left or at the top of the above hierarchy is used.
    In addition to the options described above for defining the input help of a field in the ABAP Dictionary, you can also define it in the screen field. The disadvantage, however, is that there is no automatic reuse.
    With the screen event POV, you can program the input help of a field by yourself. You can adjust the design of the help to the standard help using the function modules F4IF_FIELD_VALUE_REQUEST or F4IF_INT_TABLE_VALUE_REQUEST. However, you should check to see if the part of the input help that you programmed yourself should be implemented as a search help exit instead (see Appendix).
    You can also attach a search help to a screen field in the Screen Painter (Module Pool programming). There are some functional restrictions on this kind of attachment as compared with attachment in the Dictionary.
    You should no longer use the input checks defined directly in the flow logic of the screen, from which it is also possible to derive input helps.
    The function Technical info is offered in the hit list in the menu of the right mouse key. It can be used to find out which of the specified mechanisms is being used.
    Check these links
    Search Help Exits:
    Re: dynamic values for search help
    Re: Dynamic search  help
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee52446011d189700000e8322d00/content.htm
    http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_exit.htm
    https://forums.sdn.sap.com/click.jspa?searchID=4390517&messageID=1712818
    check out this link, it gives step by step example of implementing search help exit.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/implementing%2bsearch%2bhelp%2bexits

  • Populate and display internal table results using search help exit...

    I have copied F4IF_SHLP_EXIT_EXAMPLE and made changes. I want this search help exit to populate and display contents related to 'FIELD1' when the user enters a specific value for it in the search help screen, meaning when the user restricts the search by that value.  For field2, field3, field4, field5, field6, field7, and field8 I am using a custom view.
    Following is the code:
    TYPES:  BEGIN OF t_search,
                   field2 TYPE field2,
                   field3 TYPE field3,
                   field4 TYPE field4,
                   field5 TYPE field5,
                   field6 TYPE field6,
                   field7 TYPE field7,
                   field8 TYPE field8,
                   field1 TYPE field1,
                END OF t_search.
      DATA: it_itab TYPE TABLE OF t_search,
            wa TYPE t_search,
         wa_selopt TYPE ddshselopt,
            wa_fielddescr TYPE dfies.
    ranges: r_field1 for std_table1-field1
    STEP SELECT    (Select values)
        FREE: r_field1.
    **Get the value entered for FIELD1 in search help
        LOOP AT shlp-selopt INTO wa_selopt.
          CASE wa_selopt-shlpfield.
            WHEN 'FIELD1'.
              r_field1-sign = wa_selopt-sign.
              r_field1-option = wa_selopt-option.
              r_field1-low = wa_selopt-low.
              r_field1-high = wa_selopt-high.
              APPEND r_field1.
              CLEAR: r_field1.
          ENDCASE.
        ENDLOOP.
    **Select 'ID' and 'FIELD1' from table into lt_itab
        SELECT id field1
              INTO TABLE lt_itab
                FROM std_table1
                  WHERE field1 IN r_field1.
        IF sy-subrc = 0.
    **Now, based on the particular IDs from lt_itab, I need to select other values
    from other tables which also have 'ID' as the key.
           SELECT std_table2~field2
                std_table2~field3
                std_table3~field4
                std_table3~field5
                std_table3~field6
                std_table4~field7
                std_table4~field8
                std_table1~field1
              INTO CORRESPONDING FIELDS OF TABLE it_itab
              FROM std_table2
                         INNER JOIN std_table3 ON
                                std_table3mandt = std_table2mandt AND
                                std_table3id = std_table2id
                         INNER JOIN std_table4 ON
                                std_table4mandt = std_table2mandt AND
                                std_table4id = std_table2id
                         INNER JOIN std_table1 ON
                                std_table1mandt = std_table2mandt AND                                           std_table1id = std_table2id
              WHERE
                    std_table1~field1 IN r_field1.
    'id' is common in all the std_tables --> std_table1, std_table2, std_table3, std_table4.
    STEP DISP     (Display values)
    **Then I need to gather all the results in my internal table it_itab and display
    in search help results for the value of FIELD1 entered by the user in the search help.
        CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
          EXPORTING
            parameter   = 'FIELD1'
            fieldname   = 'FIELD1'                          
          TABLES
            shlp_tab    = shlp_tab                                   
            record_tab  = record_tab
            source_tab  = it_itab
          CHANGING
            shlp        = shlp
            callcontrol = callcontrol.
    I am not getting all the data in my internal table and wanted to know if there is anyting wrong in my select statement.
    Any guidance will be appreciated and awarded appropriate points.
    Thanks.

    the webdynpro fieldname and the search help input parameter name were made same.

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

  • How to implement the search help exit to MM01 for Material by product hiera

    Hi,
    How to implement the search help exit to MM01 T-code for Material by product hierarchy,
    but system default it gives the data from MVKE table, my client wants from MARA table,
    i created the one Function Module, write this code in that FM.
    IF CALLCONTROL-STEP EQ 'DISP'.
    REFRESH RECORD_TAB.
    SELECT * FROM MARA INTO TABLE RECORD_TAB
    WHERE PRDHA = 
    ENDIF.
    I Face the problem what variable i have to pass in WHERE CONDITION, FROM THE MM01 T-code.
    is't require to IMPORT variable from MM01 program, what is that import variable, please give me the solution.
    thanks to all.

    Hi there..
    check my web blog on search help exit...
    [Search help exit code|https://wiki.sdn.sap.com/wiki/x/du0]

  • 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

  • Execute ABAP code in Start Routine only once

    I have ABAP code in a start routine that I only want to execute once. Is there a way to tell this is first execution of the start routine? Also can I find out these value in the start routine ABAP: 1. How many data packets there are? 2. What data pac

  • Select multiple mails in a conversation

    Hi, My emails are organized by conversation. Great feature. My problem is that I sometime receives hundreds of emails in one conversation and I delete some of them and only keep good ones. I try to select multiple emails at once using cmd or shift: n

  • Is the making of a calendar really simple?

    I have been reading this forum for a while and am beginning to think that one cannot simply drag and drop pix into a format and send off to Apple for a great calendar. All the talk of converting to tiff or raw, then color compatibility has me confuse

  • Reloading data causes lost position in Paged View

    Say you have a paged view data set that lets a user page through four pages of five items (20 items total). Say also you have loadInterval on the underlying dataset set to 10 seconds. Now, say the user has paged to page three in their page view. With

  • Mac on Snow Leopard keeps looping back to login screen

    Hi, Everyone, I have a MacBook, late 2008 It originally had 120 GB hard drive. Because I had less than 10 GB of space left, I replaced that with a 320 Western Digital Scorpio Blue HD (by myself, with an antistatic strap, etc). Everything seemed fine