SAP BAPI_SETMSRVAPS_GETLIST Function Module for Read from Setup Matrices for Selection Criteria









BAPI_SETMSRVAPS_GETLIST is a standard bapi setmsrvaps getlist SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read from Setup Matrices for Selection Criteria 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 bapi setmsrvaps getlist FM, simply by entering the name BAPI_SETMSRVAPS_GETLIST into the relevant SAP transaction such as SE37 or SE38.

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



Function BAPI_SETMSRVAPS_GETLIST 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 'BAPI_SETMSRVAPS_GETLIST'"Read from Setup Matrices for Selection Criteria
EXPORTING
LOGICAL_SYSTEM = "Logical System from which Message Originates
* EXCLUDE_EXPORT_FLAGS = "Restriction of Return Tables to be Filled

IMPORTING
NUMBER_OF_SETUP_GROUPS = "Number of Entries Found for a Selection
NUMBER_OF_SETUP_MATRICES = "Number of Entries Found for a Selection

TABLES
* SETUP_MATRIX_SELECTION = "Selection Criteria for Setup Matrix Name (RANGES Table)
* SETUP_GROUP_TEXT = "Setup Group Short Texts for Return Structure (/SAPAPO/SET_GRPT)
* SETUP_ITEM_TEXT = "Setup Groups and Keys (Return Structure)
* RETURN = "Return Parameters
* EXTENSION_IN = "Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
* EXTENSION_OUT = "Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
* LOCATION_SELECTION = "RANGES Table for Locations
* LOCTYPE_SELECTION = "RANGES Table for Location Types
* LOCATION_GUIDS = "Location GUIDs (Length 32)
* MATRIX_NAMES = "Setup Matrix Name
* MATRIX_IDS = "Setup Matrix ID (GUID)
* SETUP_MATRIX = "Setup Matrix Header Entry (Return Structure)
* SETUP_MATRIX_TEXT = "Setup Matrix Short Texts (Return Structure)
* SETUP_ENTRIES = "Matrix Entries for Return Structure (/SAPAPO/SET_MAT)
.



IMPORTING Parameters details for BAPI_SETMSRVAPS_GETLIST

LOGICAL_SYSTEM - Logical System from which Message Originates

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

EXCLUDE_EXPORT_FLAGS - Restriction of Return Tables to be Filled

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

EXPORTING Parameters details for BAPI_SETMSRVAPS_GETLIST

NUMBER_OF_SETUP_GROUPS - Number of Entries Found for a Selection

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

NUMBER_OF_SETUP_MATRICES - Number of Entries Found for a Selection

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

TABLES Parameters details for BAPI_SETMSRVAPS_GETLIST

SETUP_MATRIX_SELECTION - Selection Criteria for Setup Matrix Name (RANGES Table)

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

SETUP_GROUP_TEXT - Setup Group Short Texts for Return Structure (/SAPAPO/SET_GRPT)

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

SETUP_ITEM_TEXT - Setup Groups and Keys (Return Structure)

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

RETURN - Return Parameters

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

EXTENSION_IN - Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut

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

EXTENSION_OUT - Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut

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

LOCATION_SELECTION - RANGES Table for Locations

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

LOCTYPE_SELECTION - RANGES Table for Location Types

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

LOCATION_GUIDS - Location GUIDs (Length 32)

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

MATRIX_NAMES - Setup Matrix Name

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

MATRIX_IDS - Setup Matrix ID (GUID)

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

SETUP_MATRIX - Setup Matrix Header Entry (Return Structure)

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

SETUP_MATRIX_TEXT - Setup Matrix Short Texts (Return Structure)

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

SETUP_ENTRIES - Matrix Entries for Return Structure (/SAPAPO/SET_MAT)

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

Copy and paste ABAP code example for BAPI_SETMSRVAPS_GETLIST 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_logical_system  TYPE BAPIGENFIELDS-LOGSYSTEM, "   
lv_number_of_setup_groups  TYPE BAPIGENFIELDS-SEL_ROWS, "   
lt_setup_matrix_selection  TYPE STANDARD TABLE OF BAPISETMGRPNAME, "   
lt_setup_group_text  TYPE STANDARD TABLE OF BAPISETMGROUPOUT, "   
lt_setup_item_text  TYPE STANDARD TABLE OF BAPISETMKEYOUT, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lt_extension_in  TYPE STANDARD TABLE OF BAPIPAREX, "   
lt_extension_out  TYPE STANDARD TABLE OF BAPIPAREX, "   
lt_location_selection  TYPE STANDARD TABLE OF BAPILOCRANGE, "   
lv_exclude_export_flags  TYPE BAPISETMSELRETFLAGS, "   
lv_number_of_setup_matrices  TYPE BAPIGENFIELDS-SEL_ROWS, "   
lt_loctype_selection  TYPE STANDARD TABLE OF BAPILOCTYPERANGE, "   
lt_location_guids  TYPE STANDARD TABLE OF BAPI10002LOCATIONIDS, "   
lt_matrix_names  TYPE STANDARD TABLE OF BAPISETMNAME, "   
lt_matrix_ids  TYPE STANDARD TABLE OF BAPISETMIDS, "   
lt_setup_matrix  TYPE STANDARD TABLE OF BAPISETMIDENTIFICATIONOUT, "   
lt_setup_matrix_text  TYPE STANDARD TABLE OF BAPISETMTEXTOUT, "   
lt_setup_entries  TYPE STANDARD TABLE OF BAPISETMENTRIESOUT. "   

  CALL FUNCTION 'BAPI_SETMSRVAPS_GETLIST'  "Read from Setup Matrices for Selection Criteria
    EXPORTING
         LOGICAL_SYSTEM = lv_logical_system
         EXCLUDE_EXPORT_FLAGS = lv_exclude_export_flags
    IMPORTING
         NUMBER_OF_SETUP_GROUPS = lv_number_of_setup_groups
         NUMBER_OF_SETUP_MATRICES = lv_number_of_setup_matrices
    TABLES
         SETUP_MATRIX_SELECTION = lt_setup_matrix_selection
         SETUP_GROUP_TEXT = lt_setup_group_text
         SETUP_ITEM_TEXT = lt_setup_item_text
         RETURN = lt_return
         EXTENSION_IN = lt_extension_in
         EXTENSION_OUT = lt_extension_out
         LOCATION_SELECTION = lt_location_selection
         LOCTYPE_SELECTION = lt_loctype_selection
         LOCATION_GUIDS = lt_location_guids
         MATRIX_NAMES = lt_matrix_names
         MATRIX_IDS = lt_matrix_ids
         SETUP_MATRIX = lt_setup_matrix
         SETUP_MATRIX_TEXT = lt_setup_matrix_text
         SETUP_ENTRIES = lt_setup_entries
. " BAPI_SETMSRVAPS_GETLIST




ABAP code using 7.40 inline data declarations to call FM BAPI_SETMSRVAPS_GETLIST

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 LOGSYSTEM FROM BAPIGENFIELDS INTO @DATA(ld_logical_system).
 
"SELECT single SEL_ROWS FROM BAPIGENFIELDS INTO @DATA(ld_number_of_setup_groups).
 
 
 
 
 
 
 
 
 
"SELECT single SEL_ROWS FROM BAPIGENFIELDS INTO @DATA(ld_number_of_setup_matrices).
 
 
 
 
 
 
 
 


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!