SAP RHF4_RFC_FIELD_VALUE_REQUEST Function Module for









RHF4_RFC_FIELD_VALUE_REQUEST is a standard rhf4 rfc field value request 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 field value request FM, simply by entering the name RHF4_RFC_FIELD_VALUE_REQUEST into the relevant SAP transaction such as SE37 or SE38.

Function Group: RHF4
Program Name: SAPLRHF4
Main Program: SAPLRHF4
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function RHF4_RFC_FIELD_VALUE_REQUEST 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_FIELD_VALUE_REQUEST'"
EXPORTING
TABNAME = "Table/structure name from Dictionary
* MULTIPLE_CHOICE = ' ' "Switch on multiple selection
* DISPLAY = ' ' "Override readiness for input
* SUPPRESS_RECORDLIST = ' ' "Skip display of the hit list
* CALLBACK_PROGRAM = ' ' "Program for callback before F4 start
* CALLBACK_FORM = ' ' "Form for callback before F4 start (-> long docu)
* CBK_PLVAR = ' ' "Target plan version
* CBK_OTYPE = ' ' "Target object type
* CBK_TITLE = ' ' "Title line
* RETURN_ALL_FIELDS = '*' "
FIELDNAME = "Field name from Dictionary
* SEARCHHELP = ' ' "Search help as screen field attribute
* SHLPPARAM = ' ' "Search help parameter in screen field
* DYNPPROG = ' ' "Current Program
* DYNPNR = ' ' "Screen Number
* DYNPROFIELD = ' ' "Name of screen field for value return
* STEPL = 0 "Steploop line of screen field
* VALUE = ' ' "Field contents for F4 call

TABLES
* RETURN_TAB = "Return the selected value
* INTERFACE = "Interface description of a F4 help method

EXCEPTIONS
FIELD_NOT_FOUND = 1 NO_HELP_FOR_FIELD = 2 INCONSISTENT_HELP = 3 NO_VALUES_FOUND = 4
.



IMPORTING Parameters details for RHF4_RFC_FIELD_VALUE_REQUEST

TABNAME - Table/structure name from Dictionary

Data type: DFIES-TABNAME
Optional: No
Call by Reference: No ( called with pass by value option)

MULTIPLE_CHOICE - Switch on multiple selection

Data type: DDBOOL_D
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

DISPLAY - Override readiness for input

Data type: DDBOOL_D
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SUPPRESS_RECORDLIST - Skip display of the hit list

Data type: DDSHF4CTRL-HIDE_LIST
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CALLBACK_PROGRAM - Program for callback before F4 start

Data type: SY-REPID
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CALLBACK_FORM - Form for callback before F4 start (-> long docu)

Data type: SY-XFORM
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CBK_PLVAR - Target plan version

Data type: WPLOG-PLVAR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CBK_OTYPE - Target object type

Data type: WPLOG-OTYPE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CBK_TITLE - Title line

Data type: SYTITLE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RETURN_ALL_FIELDS -

Data type: FLAG
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FIELDNAME - Field name from Dictionary

Data type: DFIES-FIELDNAME
Optional: No
Call by Reference: No ( called with pass by value option)

SEARCHHELP - Search help as screen field attribute

Data type: SHLPNAME
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SHLPPARAM - Search help parameter in screen field

Data type: SHLPFIELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

DYNPPROG - Current Program

Data type: SY-REPID
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

DYNPNR - Screen Number

Data type: SY-DYNNR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

DYNPROFIELD - Name of screen field for value return

Data type: HELP_INFO-DYNPROFLD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

STEPL - Steploop line of screen field

Data type: SY-STEPL
Optional: Yes
Call by Reference: No ( called with pass by value option)

VALUE - Field contents for F4 call

Data type: HELP_INFO-FLDVALUE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for RHF4_RFC_FIELD_VALUE_REQUEST

RETURN_TAB - Return the selected value

Data type: DDSHRETVAL
Optional: Yes
Call by Reference: No ( called with pass by value option)

INTERFACE - Interface description of a F4 help method

Data type: DDSHIFACE
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

FIELD_NOT_FOUND - Field does not exist in the Dictionary

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_HELP_FOR_FIELD - No F4 help is defined for the field

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INCONSISTENT_HELP - F4 help for the field is inconsistent

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_VALUES_FOUND - No values found

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for RHF4_RFC_FIELD_VALUE_REQUEST 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 DFIES-TABNAME, "   
lt_return_tab  TYPE STANDARD TABLE OF DDSHRETVAL, "   
lv_field_not_found  TYPE DDSHRETVAL, "   
lv_multiple_choice  TYPE DDBOOL_D, "   SPACE
lv_display  TYPE DDBOOL_D, "   SPACE
lv_suppress_recordlist  TYPE DDSHF4CTRL-HIDE_LIST, "   SPACE
lv_callback_program  TYPE SY-REPID, "   SPACE
lv_callback_form  TYPE SY-XFORM, "   SPACE
lv_cbk_plvar  TYPE WPLOG-PLVAR, "   SPACE
lv_cbk_otype  TYPE WPLOG-OTYPE, "   SPACE
lv_cbk_title  TYPE SYTITLE, "   SPACE
lv_return_all_fields  TYPE FLAG, "   '*'
lv_fieldname  TYPE DFIES-FIELDNAME, "   
lt_interface  TYPE STANDARD TABLE OF DDSHIFACE, "   
lv_no_help_for_field  TYPE DDSHIFACE, "   
lv_searchhelp  TYPE SHLPNAME, "   SPACE
lv_inconsistent_help  TYPE SHLPNAME, "   
lv_shlpparam  TYPE SHLPFIELD, "   SPACE
lv_no_values_found  TYPE SHLPFIELD, "   
lv_dynpprog  TYPE SY-REPID, "   SPACE
lv_dynpnr  TYPE SY-DYNNR, "   SPACE
lv_dynprofield  TYPE HELP_INFO-DYNPROFLD, "   SPACE
lv_stepl  TYPE SY-STEPL, "   0
lv_value  TYPE HELP_INFO-FLDVALUE. "   SPACE

  CALL FUNCTION 'RHF4_RFC_FIELD_VALUE_REQUEST'  "
    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
         CBK_PLVAR = lv_cbk_plvar
         CBK_OTYPE = lv_cbk_otype
         CBK_TITLE = lv_cbk_title
         RETURN_ALL_FIELDS = lv_return_all_fields
         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
         INTERFACE = lt_interface
    EXCEPTIONS
        FIELD_NOT_FOUND = 1
        NO_HELP_FOR_FIELD = 2
        INCONSISTENT_HELP = 3
        NO_VALUES_FOUND = 4
. " RHF4_RFC_FIELD_VALUE_REQUEST




ABAP code using 7.40 inline data declarations to call FM RHF4_RFC_FIELD_VALUE_REQUEST

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 DFIES INTO @DATA(ld_tabname).
 
 
 
DATA(ld_multiple_choice) = ' '.
 
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 PLVAR FROM WPLOG INTO @DATA(ld_cbk_plvar).
DATA(ld_cbk_plvar) = ' '.
 
"SELECT single OTYPE FROM WPLOG INTO @DATA(ld_cbk_otype).
DATA(ld_cbk_otype) = ' '.
 
DATA(ld_cbk_title) = ' '.
 
DATA(ld_return_all_fields) = '*'.
 
"SELECT single FIELDNAME FROM DFIES INTO @DATA(ld_fieldname).
 
 
 
DATA(ld_searchhelp) = ' '.
 
 
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 SY 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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!