Skip to Content
author's profile photo
Former Member

Function Module to Process Search Help and Export the selected values

Hi,

I am looking for a Function Module, which will process the given Search Help (Already Created) and will provide a pop-up (Search Help Result) screen, where user will choose the required values and the chosen values from the Search Help are exported for further processing in a Transaction. Is there any Standard SAP Function Modules are programs that can be used to process the search help.

Appreciate Your Help!.

Thanks,

Kannan.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    author's profile photo
    Former Member
    Posted on Aug 23, 2007 at 04:32 AM

    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*************

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Aug 23, 2007 at 04:33 AM

    Hi

    check this links

    Search Help Exits:

    dynamic-values-for-search-help

    dynamic-search-help

    Reward points for useful Answers

    Regards

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Aug 23, 2007 at 04:36 AM

    You cann use this function module "F4IF_FIELD_VALUE_REQUEST"

    at the POV event

    Regards,

    Reema.

    Add comment
    10|10000 characters needed characters exceeded