Enterprise Administration > Implementing Windchill ESI > Implementing Windchill ESI in an SAP Environment > SAP API Structures > Create Part > BAPI_MATERIAL_SAVEREPLICA
  
BAPI_MATERIAL_SAVEREPLICA
This API is used to create all material data in SAP and needs to be called for each material to be created in each plant. This API does not process multiple materials in multiple organizations with one API invocation. The following table provides details on this API.
* 
The BAPI_MATERIAL_SAVEREPLICA passes data in English. Additional characterization is required to render other supported languages.
Windchill Attribute Name
API Structure
API Field
API Field Description
Value (if Default used)
Source
Transform
number
HEAD
DATA
MATERIAL
Material
N/A
Windchill
N/A
partType
HEAD
DATA
MATL_
TYPE
Material type
N/A
Windchill
Cross Reference
N/A
HEAD
DATA
BASIC_
VIEW
Basic data view
X
Default
N/A
N/A
HEAD
DATA
IND-SECTOR
Industry sector
M
(Mechanical Engineering)
Default
N/A
N/A
HEAD
DATA
MRP_VIEW
MRP view
X
Default
N/A
defaultunit
CLIENT
DATA
BASE_
UOM
Basic unit of measure
N/A
Windchill
Cross Reference
defaultunit
CLIENT
DATAX
BASE_
UOM
Basic unit of measure
X
Default
N/A
N/A
MATERIAL DESCRIPTION
LANGU_
ISO
Language ISO
EN
Windchill
N/A
name
MATERIAL DESCRIPTION
MATL_
DESC
Material Description
N/A
Windchill
N/A
TargetID
PLANT
DATA
PLANT
Plant
N/A
Windchill
Sub-string
N/A
PLANT
DATA
MRP_TYPE
MRP Type
ND
Default
N/A
org
PLANT
DATAX
PLANT
Plant
N/A
Windchill
Sub-string
N/A
PLANT
DATAX
MRP_TYPE
MRP Type
X
Default
N/A
Source
PLANT
DATA
PROC_TYPE
Procurement Type
N/A
Windchill
Cross Reference
N/A
PLANT
DATAX
PROC_TYPE
Procurement Type
X
Default
N/A
* 
Note the following:
PlantData and PlantdataX should not contain duplicate values for that same part and plant combination. The same part and plant combination may exist in different views, such as design and manufacturing. For this reason you should only enter one entry for the same part and plant combination.
PRTDATA and PRTDATAX should only be populated for Process Material or Tooling of the category Tool, and not for Material.
The MRP view is only required when the Procurement Type (Source) is created or changed.
The procurement type in the PLANTDATA STRUCTURE is required if creating or changing the Procurement Type (Source).
The procurement type in the PLANTDATAX STRUCTURE is required if creating or changing the Procurement Type (Source).