SAP SEA_SHLP_GET_VALUES_IMPL Function Module for Retrieves the possible values for the given type









SEA_SHLP_GET_VALUES_IMPL is a standard sea shlp get values impl SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Retrieves the possible values for the given type 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 sea shlp get values impl FM, simply by entering the name SEA_SHLP_GET_VALUES_IMPL into the relevant SAP transaction such as SE37 or SE38.

Function Group: SEA_SHLP
Program Name: SAPLSEA_SHLP
Main Program: SAPLSEA_SHLP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SEA_SHLP_GET_VALUES_IMPL 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 'SEA_SHLP_GET_VALUES_IMPL'"Retrieves the possible values for the given type
EXPORTING
IV_SHLP_NAME = "The name of the value-help element
* IV_SHLP_TYPE = 'SH' "Type of an input help (see fixed values)
* IV_LANG = '' "Language for which to return help values
* IV_GET_SHLP_VALUES = 'X' "If set to 'X' the search help-values will be returned too
* IV_DO_AUTH_CHECK = 'X' "If set to 'X' the authorization check will be enforced for search help entries.
* IV_MAX_ROWS = 0 "Maximum returned values, 0 - no limit
* IV_SORT = "Use 'X' to sort the result by its primary key
* IT_SEL_OPT = "Selection Options for Search Helps

IMPORTING
ET_MESSAGES = "Table with BAPI Return Information
EV_MAXROWS_EXCEEDED = "Set to TRUE in case there more results to be returned
ES_SHLP_DESCR = "Description of Search Help
ET_SHLP_VALUES = "Contains the returned value-help entries
.



IMPORTING Parameters details for SEA_SHLP_GET_VALUES_IMPL

IV_SHLP_NAME - The name of the value-help element

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

IV_SHLP_TYPE - Type of an input help (see fixed values)

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

IV_LANG - Language for which to return help values

Data type: LAISO
Default: ''
Optional: Yes
Call by Reference: Yes

IV_GET_SHLP_VALUES - If set to 'X' the search help-values will be returned too

Data type: DDBOOL_D
Default: 'X'
Optional: Yes
Call by Reference: Yes

IV_DO_AUTH_CHECK - If set to 'X' the authorization check will be enforced for search help entries.

Data type: DDBOOL_D
Default: 'X'
Optional: Yes
Call by Reference: Yes

IV_MAX_ROWS - Maximum returned values, 0 - no limit

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

IV_SORT - Use 'X' to sort the result by its primary key

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

IT_SEL_OPT - Selection Options for Search Helps

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

EXPORTING Parameters details for SEA_SHLP_GET_VALUES_IMPL

ET_MESSAGES - Table with BAPI Return Information

Data type: BAPIRETTAB
Optional: No
Call by Reference: Yes

EV_MAXROWS_EXCEEDED - Set to TRUE in case there more results to be returned

Data type: DDBOOL_D
Optional: No
Call by Reference: Yes

ES_SHLP_DESCR - Description of Search Help

Data type: SEA_SHLP_DESCR
Optional: No
Call by Reference: Yes

ET_SHLP_VALUES - Contains the returned value-help entries

Data type: SEA_SHLP_VALUES_T
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SEA_SHLP_GET_VALUES_IMPL 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_et_messages  TYPE BAPIRETTAB, "   
lv_iv_shlp_name  TYPE SHLPNAME, "   
lv_iv_shlp_type  TYPE DDSHLPTYP, "   'SH'
lv_ev_maxrows_exceeded  TYPE DDBOOL_D, "   
lv_iv_lang  TYPE LAISO, "   ''
lv_es_shlp_descr  TYPE SEA_SHLP_DESCR, "   
lv_et_shlp_values  TYPE SEA_SHLP_VALUES_T, "   
lv_iv_get_shlp_values  TYPE DDBOOL_D, "   'X'
lv_iv_do_auth_check  TYPE DDBOOL_D, "   'X'
lv_iv_max_rows  TYPE I, "   0
lv_iv_sort  TYPE DDBOOL_D, "   
lv_it_sel_opt  TYPE SEA_SHLP_SEL_OPT_T. "   

  CALL FUNCTION 'SEA_SHLP_GET_VALUES_IMPL'  "Retrieves the possible values for the given type
    EXPORTING
         IV_SHLP_NAME = lv_iv_shlp_name
         IV_SHLP_TYPE = lv_iv_shlp_type
         IV_LANG = lv_iv_lang
         IV_GET_SHLP_VALUES = lv_iv_get_shlp_values
         IV_DO_AUTH_CHECK = lv_iv_do_auth_check
         IV_MAX_ROWS = lv_iv_max_rows
         IV_SORT = lv_iv_sort
         IT_SEL_OPT = lv_it_sel_opt
    IMPORTING
         ET_MESSAGES = lv_et_messages
         EV_MAXROWS_EXCEEDED = lv_ev_maxrows_exceeded
         ES_SHLP_DESCR = lv_es_shlp_descr
         ET_SHLP_VALUES = lv_et_shlp_values
. " SEA_SHLP_GET_VALUES_IMPL




ABAP code using 7.40 inline data declarations to call FM SEA_SHLP_GET_VALUES_IMPL

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_iv_shlp_type) = 'SH'.
 
 
DATA(ld_iv_lang) = ''.
 
 
 
DATA(ld_iv_get_shlp_values) = 'X'.
 
DATA(ld_iv_do_auth_check) = 'X'.
 
 
 
 


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!