Skip to Content
author's profile photo Former Member
Former Member

Search Help

Hi,

Without using matchcode ,help view ,check table , domain how to create the search help

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Mar 21, 2008 at 06:38 AM

    Hi,

    Steps for Creating Searching Help

    Screen 1.

    SE11.

    Choose Radio Button ‘Search Help’.

    Enter the name of search help starting with y/z

    Click Create.

    Screen 2.

    Write Short Description.

    TAB Defination

    Enter Selection Method ‘TABLE NAME’.

    Enter Dialog Type ’Display values immediately’

    Enter Search Help Parameters Fields to which search

    help is to be attached.

    Check Imp and exp Box

    Lpos and spos.

    Screen 1.

    SE11.

    Choose Radio Button ‘Database table’.

    Enter the name of table to which the search help is to be

    attached.

    Click Change.

    Screen 4.

    Check the fields in the table to which the search help is

    to be attached.(They should be

    the same as defined in the

    Screen 2 Search Help Parameters Fields)

    Click the Search help button .

    SCREEN 3.

    Enter the search help name

    Click Generate purposal

    Click Copy.

    Screen 4.

    Click on Utilities on MENU BAR

    Choose Table maintenance generator

    Screen 5.

    Enter Authorization Group ‘&NC&’

    Enter Function Group

    Choose maintenance type

    Maintenance screen NO.

    Choose create.

    Save and Activate

    Screen 4.

    Save and Activate.

    regards,

    vineela.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 11, 2008 at 06:18 AM

    yes you can.. use the FM

    F4IF_INT_TABLE_VALUE_REQUEST'

    See sample code.

    DATA: lt_retval TYPE STANDARD TABLE OF ddshretval,

    ls_retval LIKE ddshretval,

    lt_dynmap TYPE STANDARD TABLE OF dselc,

    ls_dynmap TYPE dselc,

    dynp_values TYPE STANDARD TABLE OF dynpread ,

    wa_dynp_values TYPE dynpread,

    lt_values TYPE TABLE OF seahlpres,

    lt_fields TYPE TABLE OF dfies,

    ls_field TYPE dfies,

    ls_return TYPE ddshretval.

    CLEAR ls_field.

    ls_field-fieldname = 'SKILLS'.

    ls_field-intlen = 15.

    ls_field-leng = 15.

    ls_field-outputlen = 15.

    ls_field-scrtext_m = 'SKILLS AVALIABLE'.

    APPEND ls_field TO lt_fields.

    CLEAR ls_field.

    ls_field-fieldname = 'DESCRIPTION'.

    ls_field-intlen = 25.

    ls_field-leng = 25.

    ls_field-outputlen = 25.

    ls_field-scrtext_m = 'DESCRIPTION'.

    APPEND ls_field TO lt_fields.

    PERFORM fill_values USING 'C' 'C programming'.

    PERFORM fill_values USING 'C+' 'C+ Programming'.

    PERFORM fill_values USING 'ABAP' 'ABAP Language'.

    PERFORM fill_values USING 'JAVA' 'JAVA programming'.

    PERFORM fill_values USING 'SAP SCRIPT' 'Working with SAP Scripts'.

    PERFORM fill_values USING 'SMART FORMS' 'Smart forms'.

    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

    EXPORTING

    DDIC_STRUCTURE = 'VTTK'

    retfield = 'SKILLS'

    PVALKEY = ' '

    dynpprog = sy-repid

    DYNPNR = '0100'

    DYNPROFIELD = 'P_SKILLS'

    STEPL = 0

    WINDOW_TITLE =

    VALUE = ' '

    VALUE_ORG = 'S'

    MULTIPLE_CHOICE = ' '

    DISPLAY = ' '

    CALLBACK_PROGRAM = ' '

    CALLBACK_FORM = ' '

    MARK_TAB =

    IMPORTING

    USER_RESET =

    TABLES

    value_tab = gt_values

    field_tab = lt_fields

    return_tab = lt_retval

    DYNPFLD_MAPPING = Lt_dynmap

    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.

    CLEAR ls_retval.

    READ TABLE lt_retval INTO ls_retval INDEX 1.

    MOVE ls_retval-fieldval TO p_skills.

    REFRESH gt_values[].

    &----


    *& Form fill_values

    &----


    text

    -


    --->P_0290 Skill

    -


    FORM fill_values USING pa_value

    pa_desc.

    DATA ls_values TYPE seahlpres.

    CLEAR ls_values.

    ls_values-string = pa_value.

    APPEND ls_values TO gt_values.

    CLEAR ls_values.

    ls_values-string = pa_desc.

    APPEND ls_values TO gt_values.

    ENDFORM. " fill_values

    how-to-create-a-serach-help

    search-help

    search-help

    reward points if useful,

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 11, 2008 at 06:20 AM

    Hi Sourav,

    You can create a search help programmatically using AT SELECTION-SCREEN ON VALUE REQUEST.

    If a field in an executable program is defined with reference to an ABAP Dictionary field for which possible entries help is defined, the values from the ABAP Dictionary help are automatically displayed when the user calls the F4 help for that field (See Search Help for Parameters). To create possible values help for input fields that have no Dictionary reference, or to override the help normally linked to the field, you can create an event block for the event

    AT SELECTION-SCREEN ON VALUE-REQUEST FOR <field>

    The event is triggered when the user calls the F4 help for the field <field>. If no corresponding event block has been defined, the possible values help from the ABAP Dictionary is displayed, or none at all if the field has no Dictionary reference. If a corresponding event block exists, it takes precedence over the default possible values help mechanism. It is then up to the programmer to ensure that an appropriate list of values is displayed, and that the user can choose a value from it.

    You cannot declare the event block AT SELECTION-SCREEN ON VALUE-REQUEST for input fields on the selection screen that are declared within a logical database. You cannot override the possible values help mechanism of a logical database within the program. You can define separate help within the logical database program using the VALUE-REQUEST option in the PARAMETERS and SELECT-OPTIONS statements.

    Example

    REPORT SELECTION_SCREEN_F4_DEMO.
    
    PARAMETERS: P_CARR_1 TYPE SPFLI-CARRID,
                P_CARR_2 TYPE SPFLI-CARRID.
    
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_CARR_2.
    
      CALL SCREEN 100 STARTING AT 10 5
                      ENDING   AT 50 10.
    
    MODULE VALUE_LIST OUTPUT.
    
      SUPPRESS DIALOG.
      LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
      SET PF-STATUS SPACE.
      NEW-PAGE NO-TITLE.
    
      WRITE 'Star Alliance' COLOR COL_HEADING.
      ULINE.
    
      P_CARR_2 = 'AC '.
      WRITE: / P_CARR_2 COLOR COL_KEY, 'Air Canada'.
      HIDE P_CARR_2.
    
      P_CARR_2 = 'LH '.
      WRITE: / P_CARR_2 COLOR COL_KEY, 'Lufthansa'.
      HIDE P_CARR_2.
    
      P_CARR_2 = 'SAS'.
      WRITE: / P_CARR_2 COLOR COL_KEY, 'SAS'.
      HIDE P_CARR_2.
    
      P_CARR_2 = 'THA'.
    4  WRITE: / P_CARR_2 COLOR COL_KEY, 'Thai International'.
      HIDE P_CARR_2.
    
      P_CARR_2 = 'UA '.
      WRITE: / P_CARR_2 COLOR COL_KEY, 'United Airlines'.
      HIDE P_CARR_2.
    
      CLEAR P_CARR_2.
    
    ENDMODULE.
    
    AT LINE-SELECTION.
    
      CHECK NOT P_CARR_2 IS INITIAL.
      LEAVE TO SCREEN 0.
    

    This program defines a selection screen with two parameters, both of which refer to the column CARRID in the database table SPFLI. The possible entries help from the ABAP Dictionary is used for P_CARR_1, and a separate possible entries help is programmed for P_CARR_2. Screen 100 is used for the possible entries help. The dialog module VALUE_LIST is started in its PBO event. The actual screen mask is not used, and there are no dialog modules used in the PAI.

    PROCESS BEFORE OUTPUT.

    MODULE VALUE_LIST.

    PROCESS AFTER INPUT.

    The dialog module VALUE_LIST suppresses the dialog of screen 100 and switches to list processing. The list contains values for the parameter P_CARR_2. These values are also placed in the HIDE area. When the user selects a line from the value list, the AT LINE-SELECTION event is triggered, and the selected value is transferred from the HIDE area into the field P_CARR_2. If the user selects a valid line, the system switches directly from the event block AT LINE-SELECTION back to the selection screen, and fills the corresponding input field.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 21, 2008 at 06:47 AM

    Hi

    PARAMETERS: p_name(10).

    DATA: BEGIN OF value_tab OCCURS 0,

    name(10),

    END OF value_tab.

    DATA :field_tab LIKE dfies OCCURS 0 WITH HEADER LINE.

    DATA : return_tab LIKE ddshretval OCCURS 0 WITH HEADER LINE. DATA : x TYPE string.

    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_name.

    REFRESH value_tab[].

    REFRESH field_tab[].

    REFRESH return_tab[].

    field_tab-fieldname = 'ERNAM'.

    field_tab-tabname = 'VBAK'.

    APPEND field_tab.

    value_tab-name = 'John'.

    APPEND value_tab.

    value_tab-name = 'Abraham'.

    APPEND value_tab.

    value_tab-name = 'Lingam'.

    APPEND value_tab.

    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

    EXPORTING

    retfield = field_tab-fieldname

    TABLES

    value_tab = value_tab

    field_tab = field_tab

    return_tab = return_tab

    EXCEPTIONS

    parameter_error = 1

    no_values_found = 2

    OTHERS = 3.

    IF sy-subrc = 0.

    p_name = return_tab-fieldval.

    ENDIF.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.