SAP BAPI_TRLSRVAPS_REQUESTLIST2 Function Module for Query: Reading of Transportation Lanes









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

Function Group: 11201
Program Name: SAPL11201
Main Program: SAPL11201
Appliation area:
Release date: 09-Jun-2004
Mode(Normal, Remote etc): Normal Function Module
Update:



Function BAPI_TRLSRVAPS_REQUESTLIST2 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_REQUESTLIST2'"Query: Reading of Transportation Lanes
EXPORTING
LOGICAL_SYSTEM = "Logical System from which Message Originates
* BUSINESS_SYSTEM_GROUP = "Business System Group
* EXCLUDE_EXPORT_FLAGS = "Restriction of Return Tables to be Populated
* MAX_NUMBER_OF_LANES = "Maximum Number of Objects
* READ_OPTIONS = "Read Options
* REQUEST_INTERFACE = "Query Structure: Asynchronous Communication BAPI/ALE

TABLES
* TRANSPORTATION_LANE_KEYS = "Transportation Lane: External Key
* LOCATION_TO_INT_SELECTION = "RANGES Table for Internal Key for Location
* PRODUCT_INT_SELECTION = "RANGES Table for Internal Product ID
* RETURN = "Return Parameters
* EXTENSION_IN = "Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
* RETURN_GET_CALL = "Messages Generated During the Read Method
* RETURN_RECEIVE_CALL = "Messages Generated During the Receipt Method
* SOURCE_KEYS = "Product Spec. Transportation Lane: External Key
* MODEL_SELECTION = "RANGES Table for Supply Chain Model Name
* LOCATION_FROM_SELECTION = "RANGES Table for Locations
* LOCTYPE_FROM_SELECTION = "RANGES Table for Location Types
* LOCATION_TO_SELECTION = "RANGES Table for Locations
* LOCTYPE_TO_SELECTION = "RANGES Table for Location Types
* PRODUCT_SELECTION = "RANGES Table for Products
* LOCATION_FROM_INT_SELECTION = "RANGES Table for Internal Key for Location
.



IMPORTING Parameters details for BAPI_TRLSRVAPS_REQUESTLIST2

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)

EXCLUDE_EXPORT_FLAGS - Restriction of Return Tables to be Populated

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

MAX_NUMBER_OF_LANES - Maximum Number of Objects

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

READ_OPTIONS - Read Options

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

TABLES Parameters details for BAPI_TRLSRVAPS_REQUESTLIST2

TRANSPORTATION_LANE_KEYS - Transportation Lane: External Key

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

LOCATION_TO_INT_SELECTION - RANGES Table for Internal Key for Location

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

PRODUCT_INT_SELECTION - RANGES Table for Internal Product ID

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

RETURN_GET_CALL - Messages Generated During the Read Method

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

RETURN_RECEIVE_CALL - Messages Generated During the Receipt Method

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

SOURCE_KEYS - Product Spec. Transportation Lane: External Key

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

MODEL_SELECTION - RANGES Table for Supply Chain Model Name

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

LOCATION_FROM_SELECTION - RANGES Table for Locations

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

LOCTYPE_FROM_SELECTION - RANGES Table for Location Types

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

LOCATION_TO_SELECTION - RANGES Table for Locations

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

LOCTYPE_TO_SELECTION - RANGES Table for Location Types

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

PRODUCT_SELECTION - RANGES Table for Products

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

LOCATION_FROM_INT_SELECTION - RANGES Table for Internal Key for Location

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

Copy and paste ABAP code example for BAPI_TRLSRVAPS_REQUESTLIST2 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, "   
lt_transportation_lane_keys  TYPE STANDARD TABLE OF BAPI11201TRKEY2, "   
lt_location_to_int_selection  TYPE STANDARD TABLE OF BAPILOCTOINTRANGE, "   
lt_product_int_selection  TYPE STANDARD TABLE OF BAPIPRODUCTINTRANGE, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lt_extension_in  TYPE STANDARD TABLE OF BAPIPAREX, "   
lt_return_get_call  TYPE STANDARD TABLE OF BAPIAPORETURNGETCALL, "   
lt_return_receive_call  TYPE STANDARD TABLE OF BAPIAPORETURNRECEIVECALL, "   
lt_source_keys  TYPE STANDARD TABLE OF BAPI11201TRPRODKEY, "   
lv_business_system_group  TYPE BAPISCMBGENFIELDS-LOGQS, "   
lt_model_selection  TYPE STANDARD TABLE OF BAPIMODELRANGE, "   
lv_exclude_export_flags  TYPE BAPI11201SELRETFLAGS2, "   
lv_max_number_of_lanes  TYPE BAPI11201GENFIELDS-MAX_LANES, "   
lt_location_from_selection  TYPE STANDARD TABLE OF BAPILOCFROMRANGE, "   
lv_read_options  TYPE BAPI11201READOPTIONS, "   
lt_loctype_from_selection  TYPE STANDARD TABLE OF BAPILOCTYPEFROMRANGE, "   
lv_request_interface  TYPE BAPIALE_AREQ, "   
lt_location_to_selection  TYPE STANDARD TABLE OF BAPILOCTORANGE, "   
lt_loctype_to_selection  TYPE STANDARD TABLE OF BAPILOCTYPETORANGE, "   
lt_product_selection  TYPE STANDARD TABLE OF BAPIPRODUCTRANGE, "   
lt_location_from_int_selection  TYPE STANDARD TABLE OF BAPILOCFROMINTRANGE. "   

  CALL FUNCTION 'BAPI_TRLSRVAPS_REQUESTLIST2'  "Query: Reading of Transportation Lanes
    EXPORTING
         LOGICAL_SYSTEM = lv_logical_system
         BUSINESS_SYSTEM_GROUP = lv_business_system_group
         EXCLUDE_EXPORT_FLAGS = lv_exclude_export_flags
         MAX_NUMBER_OF_LANES = lv_max_number_of_lanes
         READ_OPTIONS = lv_read_options
         REQUEST_INTERFACE = lv_request_interface
    TABLES
         TRANSPORTATION_LANE_KEYS = lt_transportation_lane_keys
         LOCATION_TO_INT_SELECTION = lt_location_to_int_selection
         PRODUCT_INT_SELECTION = lt_product_int_selection
         RETURN = lt_return
         EXTENSION_IN = lt_extension_in
         RETURN_GET_CALL = lt_return_get_call
         RETURN_RECEIVE_CALL = lt_return_receive_call
         SOURCE_KEYS = lt_source_keys
         MODEL_SELECTION = lt_model_selection
         LOCATION_FROM_SELECTION = lt_location_from_selection
         LOCTYPE_FROM_SELECTION = lt_loctype_from_selection
         LOCATION_TO_SELECTION = lt_location_to_selection
         LOCTYPE_TO_SELECTION = lt_loctype_to_selection
         PRODUCT_SELECTION = lt_product_selection
         LOCATION_FROM_INT_SELECTION = lt_location_from_int_selection
. " BAPI_TRLSRVAPS_REQUESTLIST2




ABAP code using 7.40 inline data declarations to call FM BAPI_TRLSRVAPS_REQUESTLIST2

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 MAX_LANES FROM BAPI11201GENFIELDS INTO @DATA(ld_max_number_of_lanes).
 
 
 
 
 
 
 
 
 


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!