‎2007 Jun 28 11:28 AM
how to get search help for parameters in module programming........
‎2007 Jun 28 11:30 AM
‎2007 Jun 28 11:30 AM
Hi,
You can use PROCESS ON VALUE-REQUEST in Flow logic to get your own customized search help for i/o field or else you can directly use search help from dictionary.
‎2007 Jun 28 11:31 AM
Hi,
Specify the search help name in the attributes of the field if search help is present.
If it is not present Write a separete module
Process on value request.
in that use the function module F4IF_INT_TABLE_VALUE_REQUEST.
Reward if helpful.
Regards,
Umasankar.
‎2007 Jun 28 11:32 AM
Hi,
The search help has to be associated with the data element of the field.
Whether it is a module pool programming or other screen, the search help will be populated automatically.
Regards,
Vivek K
‎2007 Jun 28 11:32 AM
What do you mean as module programming ?.
if you mean screen fields, you can do this with Field Attributes in Screen Painter, entering Search Help data.
ibrahim
‎2007 Jun 28 11:33 AM
PROCESS AFTER INPUT.
PROCESS ON VALUE-REQUEST.
FIELD ZSDRBT_INELG_INV-ZAPPR1_STA MODULE DLIST.
DATA: BEGIN OF ITAB OCCURS 0,
HL LIKE ZSDRBT_INELG_INV-ZAPPR1_STA,
END OF ITAB.
data: it_ret like ddshretval occurs 0 with header line.
&----
*& Module DLIST INPUT
&----
text
----
MODULE DLIST INPUT.
DATA: l_input(1).
clear l_input.
if g_auth <> 'BM'.
l_input = 'X'.
endif.
if bm_app1 = 'C'.
l_input = 'X'.
endif.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'HL'
PVALKEY = ' '
DYNPPROG = 'ZSD_RBT_DEVIATION_PRS'
DYNPNR = '0200'
DYNPROFIELD = 'ZSDRBT_INELG_INV-ZAPPR1_STA'
STEPL = 0
WINDOW_TITLE = 'Input'
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = l_input
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
VALUE_TAB = ITAB
FIELD_TAB =
RETURN_TAB = IT_RET
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
.
if sy-subrc = 0.
read table it_ret index 1.
move it_ret-fieldval to ZSDRBT_INELG_INV-ZAPPR1_STA.
endif.
*IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*ENDIF.
ENDMODULE. " DLIST INPUT
‎2007 Jun 28 11:33 AM
A search help is a ABAP Dictionary object used to define possible values (F4) help (see Input Help in the ABAP Dictionary). You can link a search help to a parameter as follows:
PARAMETERS p ... MATCHCODE OBJECT search_help.
The search help search_help must be defined in the ABAP Dictionary. The system now automatically displays the input help button for the field on the screen and activates the F4 key for it. When the user requests input help, the hit list of the search help appears, and when he or she selects an entry, the corresponding export parameter is placed in the input field.
see the link
http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
‎2007 Jun 28 11:36 AM
Hi,
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'SUBCAT' " name of the search help field in t_search_sptype iinternal table
dynpprog = sy-cprog
dynpnr = sy-dynnr
dynprofield = 'P_SPTYPE' " name of the screen field
value_org = 'S'
TABLES
value_tab = t_search_sptype " internal table which has search help fields
return_tab = return. " return tab
p_sptype = return-fieldval. " returning vale 2 screen field
Regards,
Ashok