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

Similar Messages

  • 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

  • Can't get my table to sort. Please help

    Can't seem to get my table to sort. That was a non-issue with the previous version of Numbers but now if I try to sort ascending by totals it just shuffles my numbers with no visible logic. Please help, this is such a simple task, shouldn't be so hard. I tried all suggestions on the forum and nothing works. This is a snapshot of the table:
    And this is the result after sorting descending by Totals column:
    Any and all help welcome!

    Hi Dannie,
    Sorting in Numbers 3 follows a different pattern from Numbers 2. Formulas do not automatically adjust.
    When Numbers 3 was installled, it was placed in your Applications folder. Numbers 2 was moved to a subfolder called iWork '09 within your applications folder.
    With your document open in Numbers 3, File > Export To > Numbers '09. Then use Numbers '09 (Numbers 2) to work on it.
    Wayne Contello has written a User Tip for working with the old and new versions of iWork.
    https://discussions.apple.com/docs/DOC-6991
    The trick is to drag icons for both versions to your Dock. Right click or control click on each and Options > Keep in Dock. That puts you in charge of which version you launch.
    Here is a screen shot of both Numbers icons on my Dock.
    Numbers 2.3 (Numbers '09) on the left with a three column graph.
    Numbers 3.2 on the right with a four column graph.
    Both versions will run happily together. Just be sure which version is opening your document.
    Instead of double clicking the document, run whichever version of Numbers/Pages/Keynote suits and use File > Open.
    Regards,
    Ian.

  • I cannot type anything into the Google search field; each character typed brings up a list of suggestions below the search field, but nothing appears in the search field itself.

    When in Mozilla and I bring up Google, the search field appears but the cursor does not blink as it ordinarily would do. When I try to type a search string it doesn't appear in the search field, instead a list of suggestions appear depending on the character(s)

    Solved: This was caused by replacing the SegoeUI (Regular) true-type font. I have no idea what process or why that font was deleted, but finding the segoeui.ttf file on another Windows machine, emailing it to myself, saving it to disk, then right-clicking and choosing "Install" fixed this problem.

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

  • Function Module for search help Exit

    How to create a function Module for search help exits?
    please explain in details with step by step process.

    Hi,
    How to create a function Module for search help exits?
    function module for search help F4IF_SHLP_EXIT_EXAMPLE
    dynamic search help use 'F4IF_INT_TABLE_VALUE_REQUEST'
    please check out the link below it will help you
    A repository object maintained in the ABAP Dictionary. It supplies input fields on Dynpros with single- or multi-column input helps. Search helps can be linked in the Dictionary with components from structures, data elements, and check tables. A search help enables you to search for entry values with assigned data, without you having to know the exact spelling of the value.
    http://help.sap.com/saphelp_46c/helpdata/EN/cf/21ee52446011d189700000e8322d00/content.htm
    please explain in details with step by step process.
    create a search help exit:
    1. create an fm with this interface:
    *" TABLES
    *" SHLP_TAB TYPE SHLP_DESCR_TAB_T
    *" RECORD_TAB STRUCTURE SEAHLPRES
    *" CHANGING
    *" VALUE(SHLP) TYPE SHLP_DESCR_T
    *" VALUE(CALLCONTROL) LIKE DDSHF4CTRL STRUCTURE DDSHF4CTRL
    put this logic in it:
    Delete duplicate filter logic.
    This logic only needs to apply at the 'DISP' event - which is just
    before the hit list is displayed
    if callcontrol-step = 'DISP'.
    delete adjacent duplicates from record_tab.
    endif.
    2. edit your search help in se11 and enter the name of the above search help exit fm
    check this sample code..for dynamic search help
    REPORT  ZTEST_F4HELP                              .
    *---Report with selection screen and to display the list of
    possible entries for field 'B' as per the value in field 'A'.
    parameters: p_vbeln type vbak-vbeln,
                p_posnr type vbap-posnr.
    at selection-screen on value-request for p_posnr.
      data: begin of help_item occurs 0,
              posnr type vbap-posnr,
              matnr type vbap-matnr,
              arktx type vbap-arktx,
            end of help_item.
      data: dynfields type table of dynpread with header line.
      dynfields-fieldname = 'P_VBELN'.
      append dynfields.
      call function 'DYNP_VALUES_READ'
           exporting
                dyname               = sy-cprog
                dynumb               = sy-dynnr
                translate_to_upper   = 'X'
           tables
                dynpfields           = dynfields
           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 dynfields with key fieldname = 'P_VBELN'.
      p_vbeln = dynfields-fieldvalue.
      call function 'CONVERSION_EXIT_ALPHA_INPUT'
           exporting
                input  = p_vbeln
           importing
                output = p_vbeln.
      select posnr matnr arktx into table help_item
                     from vbap
                          where vbeln = p_vbeln.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
           exporting
                retfield    = 'POSNR'
                dynprofield = 'P_POSNR'
                dynpprog    = sy-cprog
                dynpnr      = sy-dynnr
                value_org   = 'S'
           tables
                value_tab   = help_item.
    also check this link it will help you
    /message/3854825#3854825 [original link is broken]
    *********please reward points if the information is helpful to you*************

  • 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

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

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

  • 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

  • Question about searh help exit

    Hi all
    Can we implement our owen serch help exit , for instance Z_SHL_EXIT, and put it in the search help exit og the sap standar search help , in order to change its behavior or to call another search help.
    let say that sap has a search help called CRAMA , but I want to delete some fields and add an extra field to it , then I can create an Z_CRAMA based on CRAMA after my requirement .
    I can not change the way of calling the CRAMA  and call Z_CRAMA.
    Now , would I be able from CRAMA SEARCH HELP EXIT call Z_CRAMA searh help and use it.
    Thanks in advance.

    For the particular field you have in mind, how is the elementary search help accessed?  Directly or via one of the collective search helps?  If via one of the collective search helps, you would be better off copying CRAMA, modifying it, then including it as an additional elementary search help with it's own title to differentiate it.  Once the users start using it, it will be the default tab that shows up first in the collective help.

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

  • T-code PA30(SAP HR) search help exit problem.

    Hi Experts ,
    I have a requirement to restrict/show particluar Wage Types in PA30 t-code on basis a  company code of a given the employee (PERNR).
    The field PERNR/Company code are not there in the parameters or selection method of the elementary search help H_T5W3A(PA0151-LGART field) .
    I have managed to add the field pernr to the parameters of this elementary serach help H_T5W3A and also given it as a importing parameter in the custom search help exit FM.
    When i debug the PERNR/Company code don't get populated in the FM parameters.
    I need this PERNR/Comp code to be poulated in order for the search help entries to be restricted as this is the requirement.
    Please tell me what step i am missing here.
    Any other workarounds for this requirement.

    Hi,
    Adding an importing parameter just provides the user to restrict the search by entering the field value. For this you need not write a search help exit. You only need to join the tables with the fields properly in the search help. However if the Wage types need to be populated as per the company code and if you have included the company code as an importing parametr, then everytime the user clicks on the F4 help for Wage type, he "has" to enter the company code in the pop up that appears for selection criteria, otherwise how would the search help know the value that you have entered for company code.
    Without entering the company code in the pop up that would appear to restrict the search, the search help won't work as there won't be any other way to make it aware of the value entered.

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

  • Search Help Exit with portal (webdynpro)

    Hi,
    I'm implementing a customised search help for CAT2. In the portal it is using the webdynpro. I'm using the search help exit to populate the hit list that i want it to appear at both the R/3 backend and the portal side. I've also added the search help to the the table TCATS_SHLP_ITS where it defines the display field for the portal side.
    It is working fine where the hit list is populating correctly. However, when the user select the record from the hit list, i want to display another value that i've populated at the search help exit to the expected field on the portal screen. HOw can i do that? FYI, the 1st display field in the table TCATS_SHLP_ITS, is not the value that i want it to display at the selected field on the portal screen.
    Kindly assist. Many thanks.
    Cheers,
    Loo

    Hi,
    Were you able to resolve this issue.
    Thanks,
    Tanuj

Maybe you are looking for

  • Will a mid 2010 15" macbook pro not boot without the battery in it?

    I have a 15" mid 2010 mabook pro with a swelled battery. I tried booting it without the battery in it and it would not power on. Is this by design or has my macbook been damaged?

  • Problems connecting/syncing the new ipod touch to itunes

    Hey there I have recently bought a new ipod touch 32gb 3g. Im running on windows 7, updated to the latest itunes (9.0.3.15). Im connecting the device with the usb, but i get noting Itunes show an ipod touch, but no sync. Heres the itunes diagnostic:

  • OEL4 64bit and 9i DB

    Dear Experts I am using Oracle Enterprise Linux 4 update 8 x86_64bit. After installing compat-libcwait-2.1-1.i386.rpm i am facing following error at every command. Oracle 9i successfully installed. please suggest me the way to get rid of this error.

  • Printing over network printer (HP Officejet 8500)

    Hi, I have a HP Officejet 8500A which is connected over ethernet to our intranet. I now would like to know how I now can use this printer, I think the printer self is based on linux and gets properly supported by hplip and/or foomatic but I don't now

  • Personal Hotspot driving me crazy wont stay connected!!!!!

    I can not stay connected to personal hotspot for more then a minute or two and it keeps disconecting.  I have searched all over and seen other people with the same problem and no solutions.  Please someone help.  It was working and I was able to use