SAP /SCTM/BAPI_ZONE_SAVEMULTI Function Module for BAPI FM for creating and changing Transportation Zones
/SCTM/BAPI_ZONE_SAVEMULTI is a standard /sctm/bapi zone savemulti 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 creating and changing Transportation Zones 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 /sctm/bapi zone savemulti FM, simply by entering the name /SCTM/BAPI_ZONE_SAVEMULTI into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SCTM/BAPI_ZONE
Program Name: /SCTM/SAPLBAPI_ZONE
Main Program: /SCTM/SAPLBAPI_ZONE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function /SCTM/BAPI_ZONE_SAVEMULTI 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 '/SCTM/BAPI_ZONE_SAVEMULTI'"BAPI FM for creating and changing Transportation Zones.
EXPORTING
* CHECK_LOCATION_EXIST = "Check if location exists
TABLES
* ZONE_HD = "Zone BAPI: Zone Header
* ZONE_DESCRIPTION = "Zone BAPI: Zone Description
* ZONE_LOCATION = "Zone BAPI: Directly assigned Locations
* ZONE_PCODE_INTERVAL = "Zone BAPI: Postal Code Interval
* ZONE_REGION = "Zone BAPI: Region
* ZONE_HIERARCHY = "Zone BAPI: Hierarchy
* RETURN = "Return Parameter
IMPORTING Parameters details for /SCTM/BAPI_ZONE_SAVEMULTI
CHECK_LOCATION_EXIST - Check if location exists
Data type: BOOLE_DOptional: Yes
Call by Reference: Yes
TABLES Parameters details for /SCTM/BAPI_ZONE_SAVEMULTI
ZONE_HD - Zone BAPI: Zone Header
Data type: /SCTM/BAPI_ZONE_HEADEROptional: Yes
Call by Reference: Yes
ZONE_DESCRIPTION - Zone BAPI: Zone Description
Data type: /SCTM/BAPI_ZONE_DESCOptional: Yes
Call by Reference: Yes
ZONE_LOCATION - Zone BAPI: Directly assigned Locations
Data type: /SCTM/BAPI_ZONE_LOCOptional: Yes
Call by Reference: Yes
ZONE_PCODE_INTERVAL - Zone BAPI: Postal Code Interval
Data type: /SCTM/BAPI_ZONE_PCODE_INTOptional: Yes
Call by Reference: Yes
ZONE_REGION - Zone BAPI: Region
Data type: /SCTM/BAPI_ZONE_REGIONOptional: Yes
Call by Reference: Yes
ZONE_HIERARCHY - Zone BAPI: Hierarchy
Data type: /SCTM/BAPI_ZONE_HIERARCHYOptional: Yes
Call by Reference: Yes
RETURN - Return Parameter
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for /SCTM/BAPI_ZONE_SAVEMULTI 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_zone_hd | TYPE STANDARD TABLE OF /SCTM/BAPI_ZONE_HEADER, " | |||
| lv_check_location_exist | TYPE BOOLE_D, " | |||
| lt_zone_description | TYPE STANDARD TABLE OF /SCTM/BAPI_ZONE_DESC, " | |||
| lt_zone_location | TYPE STANDARD TABLE OF /SCTM/BAPI_ZONE_LOC, " | |||
| lt_zone_pcode_interval | TYPE STANDARD TABLE OF /SCTM/BAPI_ZONE_PCODE_INT, " | |||
| lt_zone_region | TYPE STANDARD TABLE OF /SCTM/BAPI_ZONE_REGION, " | |||
| lt_zone_hierarchy | TYPE STANDARD TABLE OF /SCTM/BAPI_ZONE_HIERARCHY, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2. " |
|   CALL FUNCTION '/SCTM/BAPI_ZONE_SAVEMULTI' "BAPI FM for creating and changing Transportation Zones |
| EXPORTING | ||
| CHECK_LOCATION_EXIST | = lv_check_location_exist | |
| TABLES | ||
| ZONE_HD | = lt_zone_hd | |
| ZONE_DESCRIPTION | = lt_zone_description | |
| ZONE_LOCATION | = lt_zone_location | |
| ZONE_PCODE_INTERVAL | = lt_zone_pcode_interval | |
| ZONE_REGION | = lt_zone_region | |
| ZONE_HIERARCHY | = lt_zone_hierarchy | |
| RETURN | = lt_return | |
| . " /SCTM/BAPI_ZONE_SAVEMULTI | ||
ABAP code using 7.40 inline data declarations to call FM /SCTM/BAPI_ZONE_SAVEMULTI
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.Search for further information about these or an SAP related objects