Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Search Help View

Former Member
0 Likes
702

Is there any way to display search help view at runtime ? Generally the view will be displayed as the restriction before the search help values are displayed. Is there any function module to populate only the view in F4 help ?

Is there any way to display search help view at runtime ? Generally the view will be displayed as the restriction before the search help values are displayed. Is there any function module to populate only the view in F4 help ?

5 REPLIES 5
Read only

Former Member
0 Likes
672

Hi,

check the following FMs

F4IF_FIELD_VALUE_REQUEST

F4IF_INT_TABLE_VALUE_REQUEST

hope this helps.

Regards,

Kinshuk

Read only

Former Member
0 Likes
672

Hi,

You can do that with the help of FM <b>F4IF_INT_TABLE_VALUE_REQUEST</b>

Regards

vijay

Read only

Former Member
0 Likes
672

Hi,

Check this code



PARAMETERS       : p_regtyp TYPE char1 .


*---------------------Selection Screen Help----------------------------*
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_regtyp.
*-Registration Type
  PERFORM f1000_show_f4help_regtyp .




*&---------------------------------------------------------------------*
*&      Form  f1000_show_f4help_regtyp
*&---------------------------------------------------------------------*
*    Prepair table for List Box ( Field Registration type )
*----------------------------------------------------------------------*
FORM f1000_show_f4help_regtyp .

  TYPES: BEGIN OF ty_summary_stat,
            reg_type TYPE char1,
            reg_text TYPE char20,
         END OF ty_summary_stat.

  CONSTANTS : lc_reg_type LIKE dfies-fieldname     VALUE 'REG_TYPE',
              lc_pregtyp  LIKE help_info-dynprofld VALUE 'P_REGTYP'.


  DATA : lit_summary_in  TYPE TABLE OF ty_summary_stat,
         ls_help_input   TYPE ty_summary_stat.

  ls_help_input-reg_type = lc_l.
* Loss & Reg
  ls_help_input-reg_text = text-018.
  APPEND ls_help_input TO lit_summary_in.

* Standard Process
  ls_help_input-reg_type = lc_s.
  ls_help_input-reg_text = text-019.
  APPEND ls_help_input TO lit_summary_in.

* Function Module to Call F4 Help
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield        = lc_reg_type
      dynpprog        = sy-repid
      dynpnr          = sy-dynnr
      dynprofield     = lc_pregtyp
      value_org       = 'S'
    TABLES
      value_tab       = lit_summary_in
    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.

ENDFORM.                    " f1000_show_f4help_regtyp

<b>Reward Points & Mark Helpful Answers</b>

Read only

Former Member
0 Likes
672

Hi sabyasachi,

1. U can use SEARCH HELP EXIT concept for this.

2. If we use search help exit,

(which is nothing but a FM in a pre-defined format)

3. then we can further restrict some values.

regards,

amit m.

Read only

Former Member
0 Likes
672

Hi,

Go for search help exists.

Regs,

Venkat Ramanan N