SAP RHF4_RFC_PROCESS_F4 Function Module for
RHF4_RFC_PROCESS_F4 is a standard rhf4 rfc process f4 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for rhf4 rfc process f4 FM, simply by entering the name RHF4_RFC_PROCESS_F4 into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHF4_ABA
Program Name: SAPLRHF4_ABA
Main Program:
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function RHF4_RFC_PROCESS_F4 pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'RHF4_RFC_PROCESS_F4'".
EXPORTING
TABNAME = "
* MULTIPLE_CHOICE = ' ' "
* DISPLAY = ' ' "
* SUPPRESS_RECORDLIST = ' ' "
* CALLBACK_PROGRAM = ' ' "
* CALLBACK_FORM = ' ' "
FIELDNAME = "
* SEARCHHELP = ' ' "
* SHLPPARAM = ' ' "
* DYNPPROG = ' ' "
* DYNPNR = ' ' "
* DYNPROFIELD = ' ' "
* STEPL = 0 "
* VALUE = ' ' "
TABLES
* RETURN_TAB = "
EXCEPTIONS
FIELD_NOT_FOUND = 1 NO_HELP_FOR_FIELD = 2 INCONSISTENT_HELP = 3 NO_VALUES_FOUND = 4 INTERNAL_ERROR = 5
IMPORTING Parameters details for RHF4_RFC_PROCESS_F4
TABNAME -
Data type: DD03V-TABNAMEOptional: No
Call by Reference: No ( called with pass by value option)
MULTIPLE_CHOICE -
Data type: DDREFSTRUC-BOOLDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DISPLAY -
Data type: DDREFSTRUC-BOOLDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SUPPRESS_RECORDLIST -
Data type: DDSHF4CTRL-HIDE_LISTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CALLBACK_PROGRAM -
Data type: SY-REPIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CALLBACK_FORM -
Data type: SY-XFORMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FIELDNAME -
Data type: DD03V-FIELDNAMEOptional: No
Call by Reference: No ( called with pass by value option)
SEARCHHELP -
Data type: HELP_INFO-MCOBJDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SHLPPARAM -
Data type: DD32P-FIELDNAMEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DYNPPROG -
Data type: SY-REPIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DYNPNR -
Data type: SY-DYNNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DYNPROFIELD -
Data type: HELP_INFO-DYNPROFLDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
STEPL -
Data type: HELP_INFO-STEPLOptional: Yes
Call by Reference: No ( called with pass by value option)
VALUE -
Data type: HELP_INFO-FLDVALUEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RHF4_RFC_PROCESS_F4
RETURN_TAB -
Data type: DDSHRETVALOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FIELD_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_HELP_FOR_FIELD -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INCONSISTENT_HELP -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_VALUES_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RHF4_RFC_PROCESS_F4 Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_tabname | TYPE DD03V-TABNAME, " | |||
| lt_return_tab | TYPE STANDARD TABLE OF DDSHRETVAL, " | |||
| lv_field_not_found | TYPE DDSHRETVAL, " | |||
| lv_multiple_choice | TYPE DDREFSTRUC-BOOL, " SPACE | |||
| lv_display | TYPE DDREFSTRUC-BOOL, " SPACE | |||
| lv_suppress_recordlist | TYPE DDSHF4CTRL-HIDE_LIST, " SPACE | |||
| lv_callback_program | TYPE SY-REPID, " SPACE | |||
| lv_callback_form | TYPE SY-XFORM, " SPACE | |||
| lv_fieldname | TYPE DD03V-FIELDNAME, " | |||
| lv_no_help_for_field | TYPE DD03V, " | |||
| lv_searchhelp | TYPE HELP_INFO-MCOBJ, " SPACE | |||
| lv_inconsistent_help | TYPE HELP_INFO, " | |||
| lv_shlpparam | TYPE DD32P-FIELDNAME, " SPACE | |||
| lv_no_values_found | TYPE DD32P, " | |||
| lv_dynpprog | TYPE SY-REPID, " SPACE | |||
| lv_internal_error | TYPE SY, " | |||
| lv_dynpnr | TYPE SY-DYNNR, " SPACE | |||
| lv_dynprofield | TYPE HELP_INFO-DYNPROFLD, " SPACE | |||
| lv_stepl | TYPE HELP_INFO-STEPL, " 0 | |||
| lv_value | TYPE HELP_INFO-FLDVALUE. " SPACE |
|   CALL FUNCTION 'RHF4_RFC_PROCESS_F4' " |
| EXPORTING | ||
| TABNAME | = lv_tabname | |
| MULTIPLE_CHOICE | = lv_multiple_choice | |
| DISPLAY | = lv_display | |
| SUPPRESS_RECORDLIST | = lv_suppress_recordlist | |
| CALLBACK_PROGRAM | = lv_callback_program | |
| CALLBACK_FORM | = lv_callback_form | |
| FIELDNAME | = lv_fieldname | |
| SEARCHHELP | = lv_searchhelp | |
| SHLPPARAM | = lv_shlpparam | |
| DYNPPROG | = lv_dynpprog | |
| DYNPNR | = lv_dynpnr | |
| DYNPROFIELD | = lv_dynprofield | |
| STEPL | = lv_stepl | |
| VALUE | = lv_value | |
| TABLES | ||
| RETURN_TAB | = lt_return_tab | |
| EXCEPTIONS | ||
| FIELD_NOT_FOUND = 1 | ||
| NO_HELP_FOR_FIELD = 2 | ||
| INCONSISTENT_HELP = 3 | ||
| NO_VALUES_FOUND = 4 | ||
| INTERNAL_ERROR = 5 | ||
| . " RHF4_RFC_PROCESS_F4 | ||
ABAP code using 7.40 inline data declarations to call FM RHF4_RFC_PROCESS_F4
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single TABNAME FROM DD03V INTO @DATA(ld_tabname). | ||||
| "SELECT single BOOL FROM DDREFSTRUC INTO @DATA(ld_multiple_choice). | ||||
| DATA(ld_multiple_choice) | = ' '. | |||
| "SELECT single BOOL FROM DDREFSTRUC INTO @DATA(ld_display). | ||||
| DATA(ld_display) | = ' '. | |||
| "SELECT single HIDE_LIST FROM DDSHF4CTRL INTO @DATA(ld_suppress_recordlist). | ||||
| DATA(ld_suppress_recordlist) | = ' '. | |||
| "SELECT single REPID FROM SY INTO @DATA(ld_callback_program). | ||||
| DATA(ld_callback_program) | = ' '. | |||
| "SELECT single XFORM FROM SY INTO @DATA(ld_callback_form). | ||||
| DATA(ld_callback_form) | = ' '. | |||
| "SELECT single FIELDNAME FROM DD03V INTO @DATA(ld_fieldname). | ||||
| "SELECT single MCOBJ FROM HELP_INFO INTO @DATA(ld_searchhelp). | ||||
| DATA(ld_searchhelp) | = ' '. | |||
| "SELECT single FIELDNAME FROM DD32P INTO @DATA(ld_shlpparam). | ||||
| DATA(ld_shlpparam) | = ' '. | |||
| "SELECT single REPID FROM SY INTO @DATA(ld_dynpprog). | ||||
| DATA(ld_dynpprog) | = ' '. | |||
| "SELECT single DYNNR FROM SY INTO @DATA(ld_dynpnr). | ||||
| DATA(ld_dynpnr) | = ' '. | |||
| "SELECT single DYNPROFLD FROM HELP_INFO INTO @DATA(ld_dynprofield). | ||||
| DATA(ld_dynprofield) | = ' '. | |||
| "SELECT single STEPL FROM HELP_INFO INTO @DATA(ld_stepl). | ||||
| "SELECT single FLDVALUE FROM HELP_INFO INTO @DATA(ld_value). | ||||
| DATA(ld_value) | = ' '. | |||
Search for further information about these or an SAP related objects