F4IF_FIELD_VALUE_REQUEST is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below are the pattern details for this FM showing its interface including any import, export parameters etc and for your convenience any standard documentation available. All this information and more can be viewed if you enter the function module name F4IF_FIELD_VALUE_REQUEST into the relevant SAP transaction such as SE37 or SE80.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST' "F4 help for fields that are only known at runtime EXPORTING tabname = " dfies-tabname Table/structure name from Dictionary fieldname = " dfies-fieldname Field name from Dictionary * searchhelp = SPACE " shlpname Search help as screen field attribute * shlpparam = SPACE " shlpfield Search help parameter in screen field * dynpprog = SPACE " sy-repid Current program * dynpnr = SPACE " sy-dynnr Screen number * dynprofield = SPACE " help_info-dynprofld Name of screen field for value return * stepl = 0 " sy-stepl Steploop line of screen field * value = SPACE " help_info-fldvalue Field contents for F4 call * multiple_choice = SPACE " ddbool_d Switch on multiple selection * display = SPACE " ddbool_d Override readiness for input * suppress_recordlist = SPACE " ddshf4ctrl-hide_list Skip display of the hit list * callback_program = SPACE " sy-repid Program for callback before F4 start * callback_form = SPACE " sy-xform Form for callback before F4 start (-> long docu) * callback_method = " if_f4callback_value_request Interface for Callback Routines * selection_screen = SPACE " ddbool_d Behavior as in Selection Screen (->Long Docu) IMPORTING user_reset = " c Single-Character Flag * TABLES * return_tab = " ddshretval Return the selected value EXCEPTIONS FIELD_NOT_FOUND = 1 " Field does not exist in the Dictionary NO_HELP_FOR_FIELD = 2 " No F4 help is defined for the field INCONSISTENT_HELP = 3 " F4 help for the field is inconsistent NO_VALUES_FOUND = 4 " No values found . " F4IF_FIELD_VALUE_REQUEST
1. The screen information DYNPROG, DYNPNR and DYNPROFIELD must be defined.
2. When the function module is called, the RETURN_TAB may not be specified. (If the call is amodal, the function module returns beforethe user has specified a value.)