SAP BAPI_LOCSRVAPS_GETLIST Function Module for Read Location List









BAPI_LOCSRVAPS_GETLIST is a standard bapi locsrvaps 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 Location List 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 getlist FM, simply by entering the name BAPI_LOCSRVAPS_GETLIST into the relevant SAP transaction such as SE37 or SE38.

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



Function BAPI_LOCSRVAPS_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_LOCSRVAPS_GETLIST'"Read Location List
EXPORTING
* LOGICAL_SYSTEM = "Source Logical System for Request
* BUSINESS_SYSTEM_GROUP = "Destination System Group for Request
* EXCLUDE_EXPORT_FLAGS = "Restriction of Return Tables to be Filled
* MAX_NUMBER_OF_LOCATIONS = "Maximum Number of Objects

IMPORTING
NUMBER_OF_LOCATIONS = "Number of Objects

TABLES
* LOCATION_GUIDS = "Location GUIDs (Length 32)
* RETURN = "Messages Generated During Call
* EXTENSION_IN = "Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
* EXTENSION_OUT = "Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
* LOCATION_SMTP = "Location: Email
* LOCATION_FAX = "Location: Fax
* LOCATION_TEL = "Location: Telephone Number
* LOCATION_URI = "Location: Universal Resource Identifier
* LOCATION_SELECTION = "RANGES Table for Locations
* LOCTYPE_SELECTION = "RANGES Table for Location Types
* LOCATION_KEYS = "Location Key
* LOCATION_HEAD = "Locations: Header Data (Output Structure)
* LOCATION_VMI = "Location: VMI-Specific Fields (Output Structure)
* LOCATION_TEXT = "Location: Short Texts (Output Structure)
* LOCATION_ADDRESS = "Location: Address Data (Output Structure)
* LOCATION_VERS = "Location: Version-Dependent Data (Output Structures)
.




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_GETLIST

LOGICAL_SYSTEM - Source Logical System for Request

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

BUSINESS_SYSTEM_GROUP - Destination System Group for Request

Data type: BAPISCMBGENFIELDS-LOGQS
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)

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)

EXPORTING Parameters details for BAPI_LOCSRVAPS_GETLIST

NUMBER_OF_LOCATIONS - Number of Objects

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

TABLES Parameters details for BAPI_LOCSRVAPS_GETLIST

LOCATION_GUIDS - Location GUIDs (Length 32)

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

RETURN - Messages Generated During Call

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

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_SMTP - Location: Email

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

LOCATION_FAX - Location: Fax

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

LOCATION_TEL - Location: Telephone Number

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

LOCATION_URI - Location: Universal Resource Identifier

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

LOCATION_HEAD - Locations: Header Data (Output Structure)

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

LOCATION_VMI - Location: VMI-Specific Fields (Output Structure)

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

LOCATION_TEXT - Location: Short Texts (Output Structure)

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

LOCATION_ADDRESS - Location: Address Data (Output Structure)

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

LOCATION_VERS - Location: Version-Dependent Data (Output Structures)

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

Copy and paste ABAP code example for BAPI_LOCSRVAPS_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:
lt_location_guids  TYPE STANDARD TABLE OF BAPI10002LOCATIONIDS, "   
lv_logical_system  TYPE BAPISCMBGENFIELDS-LOGICAL_SYSTEM, "   
lv_number_of_locations  TYPE BAPI10002GENFIELDS-NO_OF_LOCS, "   
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_smtp  TYPE STANDARD TABLE OF BAPI10002LOCSMTPO, "   
lt_location_fax  TYPE STANDARD TABLE OF BAPI10002LOCFAXO, "   
lt_location_tel  TYPE STANDARD TABLE OF BAPI10002LOCTELO, "   
lt_location_uri  TYPE STANDARD TABLE OF BAPI10002LOCURIO, "   
lt_location_selection  TYPE STANDARD TABLE OF BAPILOCRANGE, "   
lv_business_system_group  TYPE BAPISCMBGENFIELDS-LOGQS, "   
lt_loctype_selection  TYPE STANDARD TABLE OF BAPILOCTYPERANGE, "   
lv_exclude_export_flags  TYPE BAPI10002SELRETFLAGS, "   
lt_location_keys  TYPE STANDARD TABLE OF BAPI10002KEY, "   
lv_max_number_of_locations  TYPE BAPI10002GENFIELDS-MAX_LOCS, "   
lt_location_head  TYPE STANDARD TABLE OF BAPI10002LOCO, "   
lt_location_vmi  TYPE STANDARD TABLE OF BAPI10002VMIO, "   
lt_location_text  TYPE STANDARD TABLE OF BAPI10002LOCTEXTO, "   
lt_location_address  TYPE STANDARD TABLE OF BAPI10002LOCADDRESSO, "   
lt_location_vers  TYPE STANDARD TABLE OF BAPI10002LOCVERSO. "   

  CALL FUNCTION 'BAPI_LOCSRVAPS_GETLIST'  "Read Location List
    EXPORTING
         LOGICAL_SYSTEM = lv_logical_system
         BUSINESS_SYSTEM_GROUP = lv_business_system_group
         EXCLUDE_EXPORT_FLAGS = lv_exclude_export_flags
         MAX_NUMBER_OF_LOCATIONS = lv_max_number_of_locations
    IMPORTING
         NUMBER_OF_LOCATIONS = lv_number_of_locations
    TABLES
         LOCATION_GUIDS = lt_location_guids
         RETURN = lt_return
         EXTENSION_IN = lt_extension_in
         EXTENSION_OUT = lt_extension_out
         LOCATION_SMTP = lt_location_smtp
         LOCATION_FAX = lt_location_fax
         LOCATION_TEL = lt_location_tel
         LOCATION_URI = lt_location_uri
         LOCATION_SELECTION = lt_location_selection
         LOCTYPE_SELECTION = lt_loctype_selection
         LOCATION_KEYS = lt_location_keys
         LOCATION_HEAD = lt_location_head
         LOCATION_VMI = lt_location_vmi
         LOCATION_TEXT = lt_location_text
         LOCATION_ADDRESS = lt_location_address
         LOCATION_VERS = lt_location_vers
. " BAPI_LOCSRVAPS_GETLIST




ABAP code using 7.40 inline data declarations to call FM BAPI_LOCSRVAPS_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 LOGICAL_SYSTEM FROM BAPISCMBGENFIELDS INTO @DATA(ld_logical_system).
 
"SELECT single NO_OF_LOCS FROM BAPI10002GENFIELDS INTO @DATA(ld_number_of_locations).
 
 
 
 
 
 
 
 
 
"SELECT single LOGQS FROM BAPISCMBGENFIELDS INTO @DATA(ld_business_system_group).
 
 
 
 
"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!