SAP BAPI_TRLSRVAPS_SAVEMULTI2 Function Module for Create or Change Transportation Lanes









BAPI_TRLSRVAPS_SAVEMULTI2 is a standard bapi trlsrvaps savemulti2 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create or Change 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 savemulti2 FM, simply by entering the name BAPI_TRLSRVAPS_SAVEMULTI2 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_SAVEMULTI2 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_SAVEMULTI2'"Create or Change Transportation Lanes
EXPORTING
LOGICAL_SYSTEM = "Logical System from which Message Originates
* BUSINESS_SYSTEM_GROUP = "Business System Group
* COMMIT_CONTROL = "Transaction Control
* AUTO_DELETE = "Automatic Deletion of Transportation Lane
* PARALLEL_PROCESS = ' ' "

TABLES
* TRANSPORTATION_LANE = "Transportation Lane: Header Data
* EXTERNAL_PROCUREMENT_VERSION_X = "Transportation Lane: Version-Dependent External Procurements, Change Parameter
* MEANS_OF_TRANSPORT = "Transportation Lane: Means of Transport
* MEANS_OF_TRANSPORT_X = "Transportation Lane: Means of Transport, Change Parameter
* PROD_PROC_MEANS_OF_TRANSPORT = "Transportation Lane: Product-Specific Means of Transport
* PROD_PROC_MEANS_OF_TRANSPORT_X = "Transportation Lane: Prd. Means of Transport, Change Parameter
* EXT_PROC_MEANS_OF_TRANSPORT = "Transportation Lane: Prd. Means of Transport (External Procurement)
* EXT_PROC_MEANS_OF_TRANSPORT_X = "Transportation Lane: Prd. Means of Transport, Change Parameter
* CARRIER = "Transportation Lane: Transportation Service Provider
* CARRIER_X = "Transportation Lane: Transportation Service Provider, Change Parameter
* RETURN = "Return Parameters
* TRANSPORTATION_LANE_X = "Transportation Lane: Header Data, Change Parameter
* EXTENSION_IN = "Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
* MEANS_OF_TRANSPORT_VERSION = "Transportation Lane: Version-Dependent Means of Transport
* MEANS_OF_TRANSPORT_VERSION_X = "Transportation Lane: Version-Dependent Means of Transport
* PROD_PROC_MEANS_OF_TR_VERSION = "Transportation Lane: Product-Specific Means of Transport
* PROD_PROC_MEANS_OF_TR_VERSIONX = "Transportation Lane: Prd. Means of Transp., Change Parameter
* EXT_PROC_MEANS_OF_TR_VERSION = "Transportation Lane: Prd. Means of Transport (Ext. Procmnt)
* EXT_PROC_MEANS_OF_TR_VERSION_X = "Transportation Lane: Prd. Means of Transp., Change Parameter
* PRODUCT_PROCUREMENT = "Transportation Lane: Product Procurements
* PRODUCT_PROCUREMENT_X = "Transportation Lane: Product Procurement, Change Parameter
* PRODUCT_PROCUREMENT_VERSION = "Transportation Lane: Version-Dependent Product Procurements
* PRODUCT_PROCUREMENT_VERSION_X = "Transportation Lane: Version-Dependent Product Procurement, Change Parameter
* EXTERNAL_PROCUREMENT = "Transportation Lane: External Procurements
* EXTERNAL_PROCUREMENT_X = "Transportation Lane: External Procurements, Change Parameter
* EXTERNAL_PROCUREMENT_VERSION = "Transportation Lane: Version-Dependent External Procurements
.



IMPORTING Parameters details for BAPI_TRLSRVAPS_SAVEMULTI2

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)

COMMIT_CONTROL - Transaction Control

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

AUTO_DELETE - Automatic Deletion of Transportation Lane

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

PARALLEL_PROCESS -

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

TABLES Parameters details for BAPI_TRLSRVAPS_SAVEMULTI2

TRANSPORTATION_LANE - Transportation Lane: Header Data

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

EXTERNAL_PROCUREMENT_VERSION_X - Transportation Lane: Version-Dependent External Procurements, Change Parameter

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

MEANS_OF_TRANSPORT - Transportation Lane: Means of Transport

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

MEANS_OF_TRANSPORT_X - Transportation Lane: Means of Transport, Change Parameter

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

PROD_PROC_MEANS_OF_TRANSPORT - Transportation Lane: Product-Specific Means of Transport

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

PROD_PROC_MEANS_OF_TRANSPORT_X - Transportation Lane: Prd. Means of Transport, Change Parameter

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

EXT_PROC_MEANS_OF_TRANSPORT - Transportation Lane: Prd. Means of Transport (External Procurement)

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

EXT_PROC_MEANS_OF_TRANSPORT_X - Transportation Lane: Prd. Means of Transport, Change Parameter

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

CARRIER - Transportation Lane: Transportation Service Provider

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

CARRIER_X - Transportation Lane: Transportation Service Provider, Change Parameter

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

RETURN - Return Parameters

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

TRANSPORTATION_LANE_X - Transportation Lane: Header Data, Change Parameter

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

EXTENSION_IN - Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut

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

MEANS_OF_TRANSPORT_VERSION - Transportation Lane: Version-Dependent Means of Transport

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

MEANS_OF_TRANSPORT_VERSION_X - Transportation Lane: Version-Dependent Means of Transport

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

PROD_PROC_MEANS_OF_TR_VERSION - Transportation Lane: Product-Specific Means of Transport

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

PROD_PROC_MEANS_OF_TR_VERSIONX - Transportation Lane: Prd. Means of Transp., Change Parameter

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

EXT_PROC_MEANS_OF_TR_VERSION - Transportation Lane: Prd. Means of Transport (Ext. Procmnt)

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

EXT_PROC_MEANS_OF_TR_VERSION_X - Transportation Lane: Prd. Means of Transp., Change Parameter

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

PRODUCT_PROCUREMENT - Transportation Lane: Product Procurements

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

PRODUCT_PROCUREMENT_X - Transportation Lane: Product Procurement, Change Parameter

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

PRODUCT_PROCUREMENT_VERSION - Transportation Lane: Version-Dependent Product Procurements

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

PRODUCT_PROCUREMENT_VERSION_X - Transportation Lane: Version-Dependent Product Procurement, Change Parameter

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

EXTERNAL_PROCUREMENT - Transportation Lane: External Procurements

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

EXTERNAL_PROCUREMENT_X - Transportation Lane: External Procurements, Change Parameter

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

EXTERNAL_PROCUREMENT_VERSION - Transportation Lane: Version-Dependent External Procurements

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

Copy and paste ABAP code example for BAPI_TRLSRVAPS_SAVEMULTI2 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  TYPE STANDARD TABLE OF BAPI11201TR2, "   
lt_external_procurement_version_x  TYPE STANDARD TABLE OF BAPI11201TRPRODVSRC2X, "   
lt_means_of_transport  TYPE STANDARD TABLE OF BAPI11201TRM2, "   
lt_means_of_transport_x  TYPE STANDARD TABLE OF BAPI11201TRM2X, "   
lt_prod_proc_means_of_transport  TYPE STANDARD TABLE OF BAPI11201TRPRODMLANE2, "   
lt_prod_proc_means_of_transport_x  TYPE STANDARD TABLE OF BAPI11201TRPRODMLANE2X, "   
lt_ext_proc_means_of_transport  TYPE STANDARD TABLE OF BAPI11201TRPRODMSRC2, "   
lt_ext_proc_means_of_transport_x  TYPE STANDARD TABLE OF BAPI11201TRPRODMSRC2X, "   
lt_carrier  TYPE STANDARD TABLE OF BAPI11201TRMCARR2, "   
lt_carrier_x  TYPE STANDARD TABLE OF BAPI11201TRMCARR2X, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_business_system_group  TYPE BAPISCMBGENFIELDS-LOGQS, "   
lt_transportation_lane_x  TYPE STANDARD TABLE OF BAPI11201TR2X, "   
lt_extension_in  TYPE STANDARD TABLE OF BAPIPAREX, "   
lt_means_of_transport_version  TYPE STANDARD TABLE OF BAPI11201TRMV2, "   
lt_means_of_transport_version_x  TYPE STANDARD TABLE OF BAPI11201TRMV2X, "   
lt_prod_proc_means_of_tr_version  TYPE STANDARD TABLE OF BAPI11201TRPRODMVLANE2, "   
lt_prod_proc_means_of_tr_versionx  TYPE STANDARD TABLE OF BAPI11201TRPRODMVLANE2X, "   
lt_ext_proc_means_of_tr_version  TYPE STANDARD TABLE OF BAPI11201TRPRODMVSRC2, "   
lt_ext_proc_means_of_tr_version_x  TYPE STANDARD TABLE OF BAPI11201TRPRODMVSRC2X, "   
lv_commit_control  TYPE BAPI11201GENFIELDS-COMMCTRL, "   
lt_product_procurement  TYPE STANDARD TABLE OF BAPI11201TRPRODLANE2, "   
lv_auto_delete  TYPE BAPI11201GENFIELDS-AUTO_DELETE, "   
lt_product_procurement_x  TYPE STANDARD TABLE OF BAPI11201TRPRODLANE2X, "   
lv_parallel_process  TYPE BAPIYESNO, "   ' '
lt_product_procurement_version  TYPE STANDARD TABLE OF BAPI11201TRPRODVLANE2, "   
lt_product_procurement_version_x  TYPE STANDARD TABLE OF BAPI11201TRPRODVLANE2X, "   
lt_external_procurement  TYPE STANDARD TABLE OF BAPI11201TRPRODSRC2, "   
lt_external_procurement_x  TYPE STANDARD TABLE OF BAPI11201TRPRODSRC2X, "   
lt_external_procurement_version  TYPE STANDARD TABLE OF BAPI11201TRPRODVSRC2. "   

  CALL FUNCTION 'BAPI_TRLSRVAPS_SAVEMULTI2'  "Create or Change Transportation Lanes
    EXPORTING
         LOGICAL_SYSTEM = lv_logical_system
         BUSINESS_SYSTEM_GROUP = lv_business_system_group
         COMMIT_CONTROL = lv_commit_control
         AUTO_DELETE = lv_auto_delete
         PARALLEL_PROCESS = lv_parallel_process
    TABLES
         TRANSPORTATION_LANE = lt_transportation_lane
         EXTERNAL_PROCUREMENT_VERSION_X = lt_external_procurement_version_x
         MEANS_OF_TRANSPORT = lt_means_of_transport
         MEANS_OF_TRANSPORT_X = lt_means_of_transport_x
         PROD_PROC_MEANS_OF_TRANSPORT = lt_prod_proc_means_of_transport
         PROD_PROC_MEANS_OF_TRANSPORT_X = lt_prod_proc_means_of_transport_x
         EXT_PROC_MEANS_OF_TRANSPORT = lt_ext_proc_means_of_transport
         EXT_PROC_MEANS_OF_TRANSPORT_X = lt_ext_proc_means_of_transport_x
         CARRIER = lt_carrier
         CARRIER_X = lt_carrier_x
         RETURN = lt_return
         TRANSPORTATION_LANE_X = lt_transportation_lane_x
         EXTENSION_IN = lt_extension_in
         MEANS_OF_TRANSPORT_VERSION = lt_means_of_transport_version
         MEANS_OF_TRANSPORT_VERSION_X = lt_means_of_transport_version_x
         PROD_PROC_MEANS_OF_TR_VERSION = lt_prod_proc_means_of_tr_version
         PROD_PROC_MEANS_OF_TR_VERSIONX = lt_prod_proc_means_of_tr_versionx
         EXT_PROC_MEANS_OF_TR_VERSION = lt_ext_proc_means_of_tr_version
         EXT_PROC_MEANS_OF_TR_VERSION_X = lt_ext_proc_means_of_tr_version_x
         PRODUCT_PROCUREMENT = lt_product_procurement
         PRODUCT_PROCUREMENT_X = lt_product_procurement_x
         PRODUCT_PROCUREMENT_VERSION = lt_product_procurement_version
         PRODUCT_PROCUREMENT_VERSION_X = lt_product_procurement_version_x
         EXTERNAL_PROCUREMENT = lt_external_procurement
         EXTERNAL_PROCUREMENT_X = lt_external_procurement_x
         EXTERNAL_PROCUREMENT_VERSION = lt_external_procurement_version
. " BAPI_TRLSRVAPS_SAVEMULTI2




ABAP code using 7.40 inline data declarations to call FM BAPI_TRLSRVAPS_SAVEMULTI2

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 COMMCTRL FROM BAPI11201GENFIELDS INTO @DATA(ld_commit_control).
 
 
"SELECT single AUTO_DELETE FROM BAPI11201GENFIELDS INTO @DATA(ld_auto_delete).
 
 
DATA(ld_parallel_process) = ' '.
 
 
 
 
 
 


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!