SAP F4IF_INT_TABLE_VALUE_REQUEST Function Module for F4 help also returning the value to be displayed in internal table









F4IF_INT_TABLE_VALUE_REQUEST is a standard f4if int table 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 for F4 help also returning the value to be displayed in internal table processing and below is the pattern details for this FM, 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 f4if int table value request FM, simply by entering the name F4IF_INT_TABLE_VALUE_REQUEST into the relevant SAP transaction such as SE37 or SE38.

Function Group: SDHI
Program Name: SAPLSDHI
Main Program: SAPLSDHI
Appliation area: S
Release date: 09-Jun-1999
Mode(Normal, Remote etc): Normal Function Module
Update:



Function F4IF_INT_TABLE_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 'F4IF_INT_TABLE_VALUE_REQUEST'"F4 help also returning the value to be displayed in internal table
EXPORTING
* DDIC_STRUCTURE = ' ' "Structure of VALUE_TAB (VALUE_ORG = 'S')
* VALUE_ORG = 'C' "Value return: C: cell by cell, S: structured
* MULTIPLE_CHOICE = ' ' "Switch on multiple selection
* DISPLAY = ' ' "Override readiness for input
* CALLBACK_PROGRAM = ' ' "Program for callback before F4 start
* CALLBACK_FORM = ' ' "Form for callback before F4 start (-> long docu)
* CALLBACK_METHOD = "Interface for Callback Routines
* MARK_TAB = "Defaults for Selected Lines when Multiple Selection is Switched On
RETFIELD = "Name of return field in FIELD_TAB
* PVALKEY = ' ' "Key for personal help
* DYNPPROG = ' ' "Current program
* DYNPNR = ' ' "Screen number
* DYNPROFIELD = ' ' "Name of screen field for value return
* STEPL = 0 "Steploop line of screen field
* WINDOW_TITLE = "Title for the hit list
* VALUE = ' ' "Field contents for F4 call

IMPORTING
USER_RESET = "Single-Character Flag

TABLES
VALUE_TAB = "Table of values: entries cell by cell
* FIELD_TAB = "Fields of the hit list
* RETURN_TAB = "Return the selected value
* DYNPFLD_MAPPING = "Assignment of the screen fields to the internal table

EXCEPTIONS
PARAMETER_ERROR = 1 NO_VALUES_FOUND = 2
.



IMPORTING Parameters details for F4IF_INT_TABLE_VALUE_REQUEST

DDIC_STRUCTURE - Structure of VALUE_TAB (VALUE_ORG = 'S')

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

VALUE_ORG - Value return: C: cell by cell, S: structured

Data type: DDBOOL_D
Default: 'C'
Optional: Yes
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)

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)

CALLBACK_METHOD - Interface for Callback Routines

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

MARK_TAB - Defaults for Selected Lines when Multiple Selection is Switched On

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

RETFIELD - Name of return field in FIELD_TAB

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

PVALKEY - Key for personal help

Data type: DDSHPVKEY
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)

WINDOW_TITLE - Title for the hit list

Data type: C
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)

EXPORTING Parameters details for F4IF_INT_TABLE_VALUE_REQUEST

USER_RESET - Single-Character Flag

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

TABLES Parameters details for F4IF_INT_TABLE_VALUE_REQUEST

VALUE_TAB - Table of values: entries cell by cell

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

FIELD_TAB - Fields of the hit list

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

RETURN_TAB - Return the selected value

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

DYNPFLD_MAPPING - Assignment of the screen fields to the internal table

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

EXCEPTIONS details

PARAMETER_ERROR - Incorrect parameter

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 F4IF_INT_TABLE_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:
lt_value_tab  TYPE STANDARD TABLE OF STRING, "   
lv_user_reset  TYPE C, "   
lv_ddic_structure  TYPE TABNAME, "   SPACE
lv_parameter_error  TYPE TABNAME, "   
lv_value_org  TYPE DDBOOL_D, "   'C'
lv_multiple_choice  TYPE DDBOOL_D, "   SPACE
lv_display  TYPE DDBOOL_D, "   SPACE
lv_callback_program  TYPE SY-REPID, "   SPACE
lv_callback_form  TYPE SY-XFORM, "   SPACE
lv_callback_method  TYPE IF_F4CALLBACK_VALUE_REQUEST, "   
lv_mark_tab  TYPE DDSHMARKS, "   
lv_retfield  TYPE DFIES-FIELDNAME, "   
lt_field_tab  TYPE STANDARD TABLE OF DFIES, "   
lv_no_values_found  TYPE DFIES, "   
lv_pvalkey  TYPE DDSHPVKEY, "   SPACE
lt_return_tab  TYPE STANDARD TABLE OF DDSHRETVAL, "   
lv_dynpprog  TYPE SY-REPID, "   SPACE
lt_dynpfld_mapping  TYPE STANDARD TABLE OF DSELC, "   
lv_dynpnr  TYPE SY-DYNNR, "   SPACE
lv_dynprofield  TYPE HELP_INFO-DYNPROFLD, "   SPACE
lv_stepl  TYPE SY-STEPL, "   0
lv_window_title  TYPE C, "   
lv_value  TYPE HELP_INFO-FLDVALUE. "   SPACE

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'  "F4 help also returning the value to be displayed in internal table
    EXPORTING
         DDIC_STRUCTURE = lv_ddic_structure
         VALUE_ORG = lv_value_org
         MULTIPLE_CHOICE = lv_multiple_choice
         DISPLAY = lv_display
         CALLBACK_PROGRAM = lv_callback_program
         CALLBACK_FORM = lv_callback_form
         CALLBACK_METHOD = lv_callback_method
         MARK_TAB = lv_mark_tab
         RETFIELD = lv_retfield
         PVALKEY = lv_pvalkey
         DYNPPROG = lv_dynpprog
         DYNPNR = lv_dynpnr
         DYNPROFIELD = lv_dynprofield
         STEPL = lv_stepl
         WINDOW_TITLE = lv_window_title
         VALUE = lv_value
    IMPORTING
         USER_RESET = lv_user_reset
    TABLES
         VALUE_TAB = lt_value_tab
         FIELD_TAB = lt_field_tab
         RETURN_TAB = lt_return_tab
         DYNPFLD_MAPPING = lt_dynpfld_mapping
    EXCEPTIONS
        PARAMETER_ERROR = 1
        NO_VALUES_FOUND = 2
. " F4IF_INT_TABLE_VALUE_REQUEST




ABAP code using 7.40 inline data declarations to call FM F4IF_INT_TABLE_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.

 
 
DATA(ld_ddic_structure) = ' '.
 
 
DATA(ld_value_org) = 'C'.
 
DATA(ld_multiple_choice) = ' '.
 
DATA(ld_display) = ' '.
 
"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 DFIES INTO @DATA(ld_retfield).
 
 
 
DATA(ld_pvalkey) = ' '.
 
 
"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!