SAP BAPI_TRLSRVAPS_GETLIST Function Module for Reading of Transportation Lanes for Selection Criteria









BAPI_TRLSRVAPS_GETLIST is a standard bapi trlsrvaps 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 Reading of Transportation Lanes 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 trlsrvaps getlist FM, simply by entering the name BAPI_TRLSRVAPS_GETLIST into the relevant SAP transaction such as SE37 or SE38.

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



Function BAPI_TRLSRVAPS_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_TRLSRVAPS_GETLIST'"Reading of Transportation Lanes for Selection Criteria
EXPORTING
LOGICAL_SYSTEM = "Logical System from which Message Originates
* BUSINESS_SYSTEM_GROUP = "Business System Group
MODEL = "Model Name in Supply Chain Network
* EXCLUDE_EXPORT_FLAGS = "Restriction of Return Tables to be Filled

IMPORTING
NUMBER_OF_LANES = "Number of Entries Found for a Selection

TABLES
* LOCATION_ID_FROM = "Locations From GUIDs (Length 32)
* PROD_PROCUREMENT = "Return Structure: Product Procurement (TRPROD)
* MEANS_OF_TRANSPORT = "Return Structure: Means of Transport (TRM)
* PROD_MEANS_OF_TRANSPORT = "Return Structure: Product Specific Means of Transport TRPRODM
* CARRIER = "Return Structure: Transportation Service Provider (TRMCARR)
* AGG_PROD_PROC_MEANS_OF_TRANS = "Return Structure for Complete Procurement and Transportation
* RETURN = "Return Parameters
* EXTENSION_IN = "Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
* EXTENSION_OUT = "Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
* PLANNING_VERSION_SELECTION = "RANGE Table for Planning Versions
* PROD_PROCUREMENT_VERSION = "Version-Dependent Product Procurement
* LOCATION_ID_TO = "Locations To GUIDs (Length 32)
* LOCATION_FROM = "RANGES Table for Locations
* LOCATION_TO = "RANGES Table for Locations
* LOCATION_KEYS_FROM = "Key for Location From
* LOCATION_KEYS_TO = "Key for Location To
* PRODUCT_ID = "Product GUIDs (Length 32)
* PRODUCT_SELECTION = "RANGES Table for Products
* TRANSPORT_LANE = "Return Structure: Transportation Lane: Header Entry (TR)
.



IMPORTING Parameters details for BAPI_TRLSRVAPS_GETLIST

LOGICAL_SYSTEM - Logical System from which Message Originates

Data type: BAPISCMBGENFIELDS-LOGICAL_SYSTEM
Optional: No
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)

MODEL - Model Name in Supply Chain Network

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

EXCLUDE_EXPORT_FLAGS - Restriction of Return Tables to be Filled

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

EXPORTING Parameters details for BAPI_TRLSRVAPS_GETLIST

NUMBER_OF_LANES - Number of Entries Found for a Selection

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

TABLES Parameters details for BAPI_TRLSRVAPS_GETLIST

LOCATION_ID_FROM - Locations From GUIDs (Length 32)

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

PROD_PROCUREMENT - Return Structure: Product Procurement (TRPROD)

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

MEANS_OF_TRANSPORT - Return Structure: Means of Transport (TRM)

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

PROD_MEANS_OF_TRANSPORT - Return Structure: Product Specific Means of Transport TRPRODM

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

CARRIER - Return Structure: Transportation Service Provider (TRMCARR)

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

AGG_PROD_PROC_MEANS_OF_TRANS - Return Structure for Complete Procurement and Transportation

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

RETURN - Return Parameters

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: No ( called with pass by value option)

EXTENSION_OUT - Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut

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

PLANNING_VERSION_SELECTION - RANGE Table for Planning Versions

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

PROD_PROCUREMENT_VERSION - Version-Dependent Product Procurement

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

LOCATION_ID_TO - Locations To GUIDs (Length 32)

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

LOCATION_FROM - RANGES Table for Locations

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

LOCATION_TO - RANGES Table for Locations

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

LOCATION_KEYS_FROM - Key for Location From

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

LOCATION_KEYS_TO - Key for Location To

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

PRODUCT_ID - Product GUIDs (Length 32)

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

PRODUCT_SELECTION - RANGES Table for Products

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

TRANSPORT_LANE - Return Structure: Transportation Lane: Header Entry (TR)

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

Copy and paste ABAP code example for BAPI_TRLSRVAPS_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 BAPISCMBGENFIELDS-LOGICAL_SYSTEM, "   
lv_number_of_lanes  TYPE BAPISCMBGENFIELDS-SEL_ROWS, "   
lt_location_id_from  TYPE STANDARD TABLE OF BAPI11201LOCATIONIDFROM, "   
lt_prod_procurement  TYPE STANDARD TABLE OF BAPI11201SOURCESOUT, "   
lt_means_of_transport  TYPE STANDARD TABLE OF BAPI11201MEANSOFTRANSPORTOUT, "   
lt_prod_means_of_transport  TYPE STANDARD TABLE OF BAPI11201PRODPROCTRNOUT, "   
lt_carrier  TYPE STANDARD TABLE OF BAPI11201CARRIEROUT, "   
lt_agg_prod_proc_means_of_trans  TYPE STANDARD TABLE OF BAPI11201PRDPROCSPECMEANS, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lt_extension_in  TYPE STANDARD TABLE OF BAPIPAREX, "   
lt_extension_out  TYPE STANDARD TABLE OF BAPIPAREX, "   
lt_planning_version_selection  TYPE STANDARD TABLE OF BAPIVERSRANGE, "   
lt_prod_procurement_version  TYPE STANDARD TABLE OF BAPI11201SOURCESVERSO, "   
lt_location_id_to  TYPE STANDARD TABLE OF BAPI11201LOCATIONIDTO, "   
lv_business_system_group  TYPE BAPISCMBGENFIELDS-LOGQS, "   
lv_model  TYPE BAPI11201GENFIELDS-MODEL, "   
lt_location_from  TYPE STANDARD TABLE OF BAPILOCFROMRANGE, "   
lt_location_to  TYPE STANDARD TABLE OF BAPILOCTORANGE, "   
lv_exclude_export_flags  TYPE BAPI11201SELRETFLAGS, "   
lt_location_keys_from  TYPE STANDARD TABLE OF BAPI11201KEYFROM, "   
lt_location_keys_to  TYPE STANDARD TABLE OF BAPI11201KEYTO, "   
lt_product_id  TYPE STANDARD TABLE OF BAPI10001PRODUCTIDS, "   
lt_product_selection  TYPE STANDARD TABLE OF BAPIPRODUCTRANGE, "   
lt_transport_lane  TYPE STANDARD TABLE OF BAPI11201TRLANEOUT. "   

  CALL FUNCTION 'BAPI_TRLSRVAPS_GETLIST'  "Reading of Transportation Lanes for Selection Criteria
    EXPORTING
         LOGICAL_SYSTEM = lv_logical_system
         BUSINESS_SYSTEM_GROUP = lv_business_system_group
         MODEL = lv_model
         EXCLUDE_EXPORT_FLAGS = lv_exclude_export_flags
    IMPORTING
         NUMBER_OF_LANES = lv_number_of_lanes
    TABLES
         LOCATION_ID_FROM = lt_location_id_from
         PROD_PROCUREMENT = lt_prod_procurement
         MEANS_OF_TRANSPORT = lt_means_of_transport
         PROD_MEANS_OF_TRANSPORT = lt_prod_means_of_transport
         CARRIER = lt_carrier
         AGG_PROD_PROC_MEANS_OF_TRANS = lt_agg_prod_proc_means_of_trans
         RETURN = lt_return
         EXTENSION_IN = lt_extension_in
         EXTENSION_OUT = lt_extension_out
         PLANNING_VERSION_SELECTION = lt_planning_version_selection
         PROD_PROCUREMENT_VERSION = lt_prod_procurement_version
         LOCATION_ID_TO = lt_location_id_to
         LOCATION_FROM = lt_location_from
         LOCATION_TO = lt_location_to
         LOCATION_KEYS_FROM = lt_location_keys_from
         LOCATION_KEYS_TO = lt_location_keys_to
         PRODUCT_ID = lt_product_id
         PRODUCT_SELECTION = lt_product_selection
         TRANSPORT_LANE = lt_transport_lane
. " BAPI_TRLSRVAPS_GETLIST




ABAP code using 7.40 inline data declarations to call FM BAPI_TRLSRVAPS_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 SEL_ROWS FROM BAPISCMBGENFIELDS INTO @DATA(ld_number_of_lanes).
 
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single LOGQS FROM BAPISCMBGENFIELDS INTO @DATA(ld_business_system_group).
 
"SELECT single MODEL FROM BAPI11201GENFIELDS INTO @DATA(ld_model).
 
 
 
 
 
 
 
 
 


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!