SAP BAPI_LOCSRVAPS_REQUESTLIST Function Module for Query: Read Locations by Selection Criteria









BAPI_LOCSRVAPS_REQUESTLIST is a standard bapi locsrvaps requestlist SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Query: Read Locations by 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 locsrvaps requestlist FM, simply by entering the name BAPI_LOCSRVAPS_REQUESTLIST into the relevant SAP transaction such as SE37 or SE38.

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



Function BAPI_LOCSRVAPS_REQUESTLIST 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_LOCSRVAPS_REQUESTLIST'"Query: Read Locations by Selection Criteria
EXPORTING
* LOGICAL_SYSTEM = "Logical System from which Message Originates
* BUSINESS_SYSTEM_GROUP = "Business System Group
* TRANSFER_MODE = "Transfer Mode for Selection
* REQUEST_INTERFACE = "Query Structure: Asynchronous Communication BAPI/ALE
* MAX_NUMBER_OF_LOCATIONS = "Maximum Number of Objects
* EXCLUDE_EXPORT_FLAGS = "Restriction of Return Tables to be Filled

TABLES
* LOCATION_GUIDS = "Location GUIDs (Length 32)
* LOCATION_SELECTION = "RANGES Table for Locations
* LOCTYPE_SELECTION = "RANGES Table for Location Types
* LOCATION_KEYS = "Location Key
* RETURN = "Return Parameters
* EXTENSION_IN = "Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPL10002_001 User Exit for Method 'SaveMultiple' of Business Object BUS10002
EXIT_SAPL10002_002 User Exit for Method 'GetList' of Business Object BUS10002
EXIT_SAPL10002_003 User Exit for Method 'DeleteMultiple' of Business Object BUS10002

IMPORTING Parameters details for BAPI_LOCSRVAPS_REQUESTLIST

LOGICAL_SYSTEM - Logical System from which Message Originates

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

BUSINESS_SYSTEM_GROUP - Business System Group

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

TRANSFER_MODE - Transfer Mode for Selection

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

REQUEST_INTERFACE - Query Structure: Asynchronous Communication BAPI/ALE

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

MAX_NUMBER_OF_LOCATIONS - Maximum Number of Objects

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

EXCLUDE_EXPORT_FLAGS - Restriction of Return Tables to be Filled

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

TABLES Parameters details for BAPI_LOCSRVAPS_REQUESTLIST

LOCATION_GUIDS - Location GUIDs (Length 32)

Data type: BAPI10002LOCATIONIDS
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_KEYS - Location Key

Data type: BAPI10002KEY
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

Copy and paste ABAP code example for BAPI_LOCSRVAPS_REQUESTLIST 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_location_guids  TYPE STANDARD TABLE OF BAPI10002LOCATIONIDS, "   
lv_logical_system  TYPE BAPISCMBGENFIELDS-LOGICAL_SYSTEM, "   
lt_location_selection  TYPE STANDARD TABLE OF BAPILOCRANGE, "   
lv_business_system_group  TYPE BAPISCMBGENFIELDS-LOGQS, "   
lv_transfer_mode  TYPE BAPISCMBGENFIELDS-TRANSMODE, "   
lt_loctype_selection  TYPE STANDARD TABLE OF BAPILOCTYPERANGE, "   
lt_location_keys  TYPE STANDARD TABLE OF BAPI10002KEY, "   
lv_request_interface  TYPE BAPIALE_AREQ, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_max_number_of_locations  TYPE BAPI10002GENFIELDS-MAX_LOCS, "   
lt_extension_in  TYPE STANDARD TABLE OF BAPIPAREX, "   
lv_exclude_export_flags  TYPE BAPI10002SELRETFLAGS. "   

  CALL FUNCTION 'BAPI_LOCSRVAPS_REQUESTLIST'  "Query: Read Locations by Selection Criteria
    EXPORTING
         LOGICAL_SYSTEM = lv_logical_system
         BUSINESS_SYSTEM_GROUP = lv_business_system_group
         TRANSFER_MODE = lv_transfer_mode
         REQUEST_INTERFACE = lv_request_interface
         MAX_NUMBER_OF_LOCATIONS = lv_max_number_of_locations
         EXCLUDE_EXPORT_FLAGS = lv_exclude_export_flags
    TABLES
         LOCATION_GUIDS = lt_location_guids
         LOCATION_SELECTION = lt_location_selection
         LOCTYPE_SELECTION = lt_loctype_selection
         LOCATION_KEYS = lt_location_keys
         RETURN = lt_return
         EXTENSION_IN = lt_extension_in
. " BAPI_LOCSRVAPS_REQUESTLIST




ABAP code using 7.40 inline data declarations to call FM BAPI_LOCSRVAPS_REQUESTLIST

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 LOGICAL_SYSTEM FROM BAPISCMBGENFIELDS INTO @DATA(ld_logical_system).
 
 
"SELECT single LOGQS FROM BAPISCMBGENFIELDS INTO @DATA(ld_business_system_group).
 
"SELECT single TRANSMODE FROM BAPISCMBGENFIELDS INTO @DATA(ld_transfer_mode).
 
 
 
 
 
"SELECT single MAX_LOCS FROM BAPI10002GENFIELDS INTO @DATA(ld_max_number_of_locations).
 
 
 


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!