2006 Jul 19 8:33 AM
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 ?
2006 Jul 19 9:02 AM
Hi,
check the following FMs
F4IF_FIELD_VALUE_REQUEST
F4IF_INT_TABLE_VALUE_REQUEST
hope this helps.
Regards,
Kinshuk
2006 Jul 19 9:10 AM
Hi,
You can do that with the help of FM <b>F4IF_INT_TABLE_VALUE_REQUEST</b>
Regards
vijay
2006 Jul 19 9:14 AM
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>
2006 Jul 19 9:17 AM
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.
2006 Jul 19 9:21 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |