SAP HELP_VALUES_GET_RETURN_VALUES Function Module for Use F4IF_INT_TABLE_VALUE_REQUEST









HELP_VALUES_GET_RETURN_VALUES is a standard help values get return values SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Use F4IF_INT_TABLE_VALUE_REQUEST 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 help values get return values FM, simply by entering the name HELP_VALUES_GET_RETURN_VALUES into the relevant SAP transaction such as SE37 or SE38.

Function Group: SHL2
Program Name: SAPLSHL2
Main Program: SAPLSHL2
Appliation area: S
Release date: 19-Nov-1997
Mode(Normal, Remote etc): Normal Function Module
Update:



Function HELP_VALUES_GET_RETURN_VALUES 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 'HELP_VALUES_GET_RETURN_VALUES'"Use F4IF_INT_TABLE_VALUE_REQUEST
EXPORTING
* CUCOL = 0 "Cursor Position: Column
* CUROW = 0 "Cursor Position: Line
* DISPLAY = ' ' "Display Flag: 'X' Display Only, ' ' with Choice
TABNAME = "Table Name
SELECTFIELD = "Chosen Table Field
* TITEL = ' ' "Title of the F4 Popup
* WRITE_SELECTFIELD_IN_COLOURS = 'X' "Select Field Output in Color
* SHOW_ALL_VALUES_AT_FIRST_TIME = ' ' "Ignore 100 Values Limit for First Call

TABLES
SELECTION_TAB = "Table of Selected Fields
ALL_VALUES_SELECTION_TAB = "All Values from Rows of the Selected Fields
* USER_MARKED_VALUES = "
* STRUCTURE_OF_VALS = "

EXCEPTIONS
TABLE_NOT_IN_DDIC = 1 NO_SELECTFIELD_GIVEN = 2 ERROR_FROM_DATABASE = 3 MORE_THEN_ONE_SELECTFIELD = 4 NO_SELECTFIELD = 5 NO_TABLEFIELDS_IN_DICTIONARY = 6
.



IMPORTING Parameters details for HELP_VALUES_GET_RETURN_VALUES

CUCOL - Cursor Position: Column

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

CUROW - Cursor Position: Line

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

DISPLAY - Display Flag: 'X' Display Only, ' ' with Choice

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

TABNAME - Table Name

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

SELECTFIELD - Chosen Table Field

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

TITEL - Title of the F4 Popup

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

WRITE_SELECTFIELD_IN_COLOURS - Select Field Output in Color

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

SHOW_ALL_VALUES_AT_FIRST_TIME - Ignore 100 Values Limit for First Call

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

TABLES Parameters details for HELP_VALUES_GET_RETURN_VALUES

SELECTION_TAB - Table of Selected Fields

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

ALL_VALUES_SELECTION_TAB - All Values from Rows of the Selected Fields

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

USER_MARKED_VALUES -

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

STRUCTURE_OF_VALS -

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

EXCEPTIONS details

TABLE_NOT_IN_DDIC - Table not in Dictionary

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

NO_SELECTFIELD_GIVEN - No Field Selected

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

ERROR_FROM_DATABASE - Database Error

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

MORE_THEN_ONE_SELECTFIELD - More than One Field Selected

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

NO_SELECTFIELD - No Field Selected

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

NO_TABLEFIELDS_IN_DICTIONARY - One or More Fields do not Exist in DDIC

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

Copy and paste ABAP code example for HELP_VALUES_GET_RETURN_VALUES 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_cucol  TYPE SY-CUCOL, "   0
lt_selection_tab  TYPE STANDARD TABLE OF SHVALUE, "   
lv_table_not_in_ddic  TYPE SHVALUE, "   
lv_curow  TYPE SY-CUROW, "   0
lv_no_selectfield_given  TYPE SY, "   
lt_all_values_selection_tab  TYPE STANDARD TABLE OF SHVALUE, "   
lv_display  TYPE SHVALUE, "   SPACE
lt_user_marked_values  TYPE STANDARD TABLE OF SHVALUE, "   
lv_error_from_database  TYPE SHVALUE, "   
lv_tabname  TYPE HELP_INFO-TABNAME, "   
lt_structure_of_vals  TYPE STANDARD TABLE OF SHSTRUC, "   
lv_more_then_one_selectfield  TYPE SHSTRUC, "   
lv_selectfield  TYPE HELP_INFO-FIELDNAME, "   
lv_no_selectfield  TYPE HELP_INFO, "   
lv_titel  TYPE HELP_INFO, "   SPACE
lv_no_tablefields_in_dictionary  TYPE HELP_INFO, "   
lv_write_selectfield_in_colours  TYPE HELP_INFO, "   'X'
lv_show_all_values_at_first_time  TYPE HELP_INFO. "   SPACE

  CALL FUNCTION 'HELP_VALUES_GET_RETURN_VALUES'  "Use F4IF_INT_TABLE_VALUE_REQUEST
    EXPORTING
         CUCOL = lv_cucol
         CUROW = lv_curow
         DISPLAY = lv_display
         TABNAME = lv_tabname
         SELECTFIELD = lv_selectfield
         TITEL = lv_titel
         WRITE_SELECTFIELD_IN_COLOURS = lv_write_selectfield_in_colours
         SHOW_ALL_VALUES_AT_FIRST_TIME = lv_show_all_values_at_first_time
    TABLES
         SELECTION_TAB = lt_selection_tab
         ALL_VALUES_SELECTION_TAB = lt_all_values_selection_tab
         USER_MARKED_VALUES = lt_user_marked_values
         STRUCTURE_OF_VALS = lt_structure_of_vals
    EXCEPTIONS
        TABLE_NOT_IN_DDIC = 1
        NO_SELECTFIELD_GIVEN = 2
        ERROR_FROM_DATABASE = 3
        MORE_THEN_ONE_SELECTFIELD = 4
        NO_SELECTFIELD = 5
        NO_TABLEFIELDS_IN_DICTIONARY = 6
. " HELP_VALUES_GET_RETURN_VALUES




ABAP code using 7.40 inline data declarations to call FM HELP_VALUES_GET_RETURN_VALUES

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 CUCOL FROM SY INTO @DATA(ld_cucol).
 
 
 
"SELECT single CUROW FROM SY INTO @DATA(ld_curow).
 
 
 
DATA(ld_display) = ' '.
 
 
 
"SELECT single TABNAME FROM HELP_INFO INTO @DATA(ld_tabname).
 
 
 
"SELECT single FIELDNAME FROM HELP_INFO INTO @DATA(ld_selectfield).
 
 
DATA(ld_titel) = ' '.
 
 
DATA(ld_write_selectfield_in_colours) = 'X'.
 
DATA(ld_show_all_values_at_first_time) = ' '.
 


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!