SAP HELP_VALUES_SHOW Function Module for
HELP_VALUES_SHOW is a standard help values show 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 help values show FM, simply by entering the name HELP_VALUES_SHOW into the relevant SAP transaction such as SE37 or SE38.
Function Group: SHL2
Program Name: SAPLSHL2
Main Program: SAPLSHL2
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function HELP_VALUES_SHOW 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_SHOW'".
EXPORTING
* CUCOL = SY-CUCOL "Cursor position: Column
* CUROW = SY-CUROW "Cursor position: Line
* DISPLAY = ' ' "Display flag
FIELDINFO = "Help structure
* MAX_ENTRIES = 100 "Number of entries until limit
* SHRINK_FLAG = ' ' "Flag whether restriction was made
* NUMBER_OF_F4_CALL = ' ' "Flag, how often F4 has been processed
* ' '_MEANS_GENERIC = 'X' "' ' is interpreted generically for restrictions
* DO_NOT_DISPLAY_VALUES = ' ' "
IMPORTING
RETCODE = "Return code
SELECTION = "Selection flag
SELECT_VALUE = "Selected value
NEXT_CALL = "Next F4 call
SELECT_INDEX = "Selected list/table index
TABLES
DYNPSELECT = "Screen input structure
DYNPVALUETAB = "Screen input value
* STRUCTURE_TABLE = "
* VALUES_TABLE = "
EXCEPTIONS
CHECK_TABLE_LOCKED = 1 NO_VALUES_FOR_FIELD = 2 TABLEFIELD_DOES_NOT_EXIST = 3
IMPORTING Parameters details for HELP_VALUES_SHOW
CUCOL - Cursor position: Column
Data type: SY-CUCOLDefault: SY-CUCOL
Optional: Yes
Call by Reference: No ( called with pass by value option)
CUROW - Cursor position: Line
Data type: SY-CUROWDefault: SY-CUROW
Optional: Yes
Call by Reference: No ( called with pass by value option)
DISPLAY - Display flag
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FIELDINFO - Help structure
Data type: HELP_INFOOptional: No
Call by Reference: No ( called with pass by value option)
MAX_ENTRIES - Number of entries until limit
Data type:Default: 100
Optional: Yes
Call by Reference: No ( called with pass by value option)
SHRINK_FLAG - Flag whether restriction was made
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NUMBER_OF_F4_CALL - Flag, how often F4 has been processed
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SPACE_MEANS_GENERIC - SPACE is interpreted generically for restrictions
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DO_NOT_DISPLAY_VALUES -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HELP_VALUES_SHOW
RETCODE - Return code
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
SELECTION - Selection flag
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SELECT_VALUE - Selected value
Data type: HELP_INFO-FLDVALUEOptional: No
Call by Reference: No ( called with pass by value option)
NEXT_CALL - Next F4 call
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SELECT_INDEX - Selected list/table index
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HELP_VALUES_SHOW
DYNPSELECT - Screen input structure
Data type: DSELCOptional: No
Call by Reference: No ( called with pass by value option)
DYNPVALUETAB - Screen input value
Data type: DVALOptional: No
Call by Reference: No ( called with pass by value option)
STRUCTURE_TABLE -
Data type: SHSTRUCOptional: Yes
Call by Reference: No ( called with pass by value option)
VALUES_TABLE -
Data type: SHVALUEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CHECK_TABLE_LOCKED - Check table locked
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_VALUES_FOR_FIELD - No entries for field
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLEFIELD_DOES_NOT_EXIST - Table field does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HELP_VALUES_SHOW 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, " SY-CUCOL | |||
lv_retcode | TYPE SY-SUBRC, " | |||
lt_dynpselect | TYPE STANDARD TABLE OF DSELC, " | |||
lv_check_table_locked | TYPE DSELC, " | |||
lv_curow | TYPE SY-CUROW, " SY-CUROW | |||
lv_selection | TYPE SY, " | |||
lt_dynpvaluetab | TYPE STANDARD TABLE OF DVAL, " | |||
lv_no_values_for_field | TYPE DVAL, " | |||
lv_display | TYPE DVAL, " SPACE | |||
lv_select_value | TYPE HELP_INFO-FLDVALUE, " | |||
lt_structure_table | TYPE STANDARD TABLE OF SHSTRUC, " | |||
lv_tablefield_does_not_exist | TYPE SHSTRUC, " | |||
lv_fieldinfo | TYPE HELP_INFO, " | |||
lv_next_call | TYPE HELP_INFO, " | |||
lt_values_table | TYPE STANDARD TABLE OF SHVALUE, " | |||
lv_max_entries | TYPE SHVALUE, " 100 | |||
lv_select_index | TYPE SY-TABIX, " | |||
lv_shrink_flag | TYPE SY, " SPACE | |||
lv_number_of_f4_call | TYPE SY, " SPACE | |||
lv_space_means_generic | TYPE SY, " 'X' | |||
lv_do_not_display_values | TYPE SY. " SPACE |
  CALL FUNCTION 'HELP_VALUES_SHOW' " |
EXPORTING | ||
CUCOL | = lv_cucol | |
CUROW | = lv_curow | |
DISPLAY | = lv_display | |
FIELDINFO | = lv_fieldinfo | |
MAX_ENTRIES | = lv_max_entries | |
SHRINK_FLAG | = lv_shrink_flag | |
NUMBER_OF_F4_CALL | = lv_number_of_f4_call | |
SPACE_MEANS_GENERIC | = lv_space_means_generic | |
DO_NOT_DISPLAY_VALUES | = lv_do_not_display_values | |
IMPORTING | ||
RETCODE | = lv_retcode | |
SELECTION | = lv_selection | |
SELECT_VALUE | = lv_select_value | |
NEXT_CALL | = lv_next_call | |
SELECT_INDEX | = lv_select_index | |
TABLES | ||
DYNPSELECT | = lt_dynpselect | |
DYNPVALUETAB | = lt_dynpvaluetab | |
STRUCTURE_TABLE | = lt_structure_table | |
VALUES_TABLE | = lt_values_table | |
EXCEPTIONS | ||
CHECK_TABLE_LOCKED = 1 | ||
NO_VALUES_FOR_FIELD = 2 | ||
TABLEFIELD_DOES_NOT_EXIST = 3 | ||
. " HELP_VALUES_SHOW |
ABAP code using 7.40 inline data declarations to call FM HELP_VALUES_SHOW
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). | ||||
DATA(ld_cucol) | = SY-CUCOL. | |||
"SELECT single SUBRC FROM SY INTO @DATA(ld_retcode). | ||||
"SELECT single CUROW FROM SY INTO @DATA(ld_curow). | ||||
DATA(ld_curow) | = SY-CUROW. | |||
DATA(ld_display) | = ' '. | |||
"SELECT single FLDVALUE FROM HELP_INFO INTO @DATA(ld_select_value). | ||||
DATA(ld_max_entries) | = 100. | |||
"SELECT single TABIX FROM SY INTO @DATA(ld_select_index). | ||||
DATA(ld_shrink_flag) | = ' '. | |||
DATA(ld_number_of_f4_call) | = ' '. | |||
DATA(ld_space_means_generic) | = 'X'. | |||
DATA(ld_do_not_display_values) | = ' '. | |||
Search for further information about these or an SAP related objects