SAP /SCMTMS/BAPI_TLOC_READMULTI Function Module for BAPI FM for reading of Transshipment Loc assignments
/SCMTMS/BAPI_TLOC_READMULTI is a standard /scmtms/bapi tloc readmulti SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for BAPI FM for reading of Transshipment Loc assignments 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 /scmtms/bapi tloc readmulti FM, simply by entering the name /SCMTMS/BAPI_TLOC_READMULTI into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SCMTMS/BAPI_LOC_TRANS
Program Name: /SCMTMS/SAPLBAPI_LOC_TRANS
Main Program: /SCMTMS/SAPLBAPI_LOC_TRANS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function /SCMTMS/BAPI_TLOC_READMULTI 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 '/SCMTMS/BAPI_TLOC_READMULTI'"BAPI FM for reading of Transshipment Loc assignments.
EXPORTING
LOGICAL_SYSTEM = "Logical System
* MAX_NUMBER_OF_TLOCS = 100 "Maximum Number of Objects
TABLES
* LOC_TRANS_ASSIGN = "BAPI Structure for Location/Zone TLoc Assignments
* RETURN = "Return Parameter
IMPORTING Parameters details for /SCMTMS/BAPI_TLOC_READMULTI
LOGICAL_SYSTEM - Logical System
Data type: BAPISCMBGENFIELDS-LOGICAL_SYSTEMOptional: No
Call by Reference: No ( called with pass by value option)
MAX_NUMBER_OF_TLOCS - Maximum Number of Objects
Data type: APO_BAPI_MAXOBJECTSDefault: 100
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for /SCMTMS/BAPI_TLOC_READMULTI
LOC_TRANS_ASSIGN - BAPI Structure for Location/Zone TLoc Assignments
Data type: /SCMTMS/BAPI_TLOC_ASSIGN_TABOptional: Yes
Call by Reference: Yes
RETURN - Return Parameter
Data type: BAPIRET2_TABOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for /SCMTMS/BAPI_TLOC_READMULTI 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_loc_trans_assign | TYPE STANDARD TABLE OF /SCMTMS/BAPI_TLOC_ASSIGN_TAB, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2_TAB, " | |||
| lv_max_number_of_tlocs | TYPE APO_BAPI_MAXOBJECTS. " 100 |
|   CALL FUNCTION '/SCMTMS/BAPI_TLOC_READMULTI' "BAPI FM for reading of Transshipment Loc assignments |
| EXPORTING | ||
| LOGICAL_SYSTEM | = lv_logical_system | |
| MAX_NUMBER_OF_TLOCS | = lv_max_number_of_tlocs | |
| TABLES | ||
| LOC_TRANS_ASSIGN | = lt_loc_trans_assign | |
| RETURN | = lt_return | |
| . " /SCMTMS/BAPI_TLOC_READMULTI | ||
ABAP code using 7.40 inline data declarations to call FM /SCMTMS/BAPI_TLOC_READMULTI
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). | ||||
| DATA(ld_max_number_of_tlocs) | = 100. | |||
Search for further information about these or an SAP related objects