Enterprise Administration > Implementing Windchill ESI > Implementing Windchill ESI in an SAP Environment > SAP API Structures > Change Part > BAPI_MATERIAL_SAVEREPLICA
  
BAPI_MATERIAL_SAVEREPLICA
This API is used to change all the material data in SAP. It should be called for each material to be changed in each plant. The API does not process multiple materials in multiple organizations with one API invocation.
All data is not sent for a change so that data maintained by the distribution target user is not overwritten. The following table provides details on this API.
* 
The BAPI_MATERIAL_SAVEREPLICA function 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
Source
Transform
Number
HEADDATA
MATERIAL
Material
N/A
Windchill
N/A
PartType
HEADDATA
MATL_TYPE
Material Type
N/A
Windchill
Cross Reference
N/A
HEADDATA
BASIC_VIEW
Basic Data View
X (Indi-cator)
Default
N/A
N/A
HEADDATA
IND_SECTOR
Industry Sector
M (Mechanical Engineering)
Default
N/A
N/A
HEADDATA
MRP_VIEW
MRP View
X (Indicator)
Default
N/A
defaultUnit
CLIENTDATA
BASE_UOM
Base Unit Of Measure
N/A
Windchill
Cross Reference
defaultUnit
CLIENTDATAX
BASE_UOM
Base Unit Of Measure
X
Default
N/A
name
MATERIAL DESCRIPTION
MATL_DESC
Material Description
N/A
Windchill
N/A
N/A
MATERIAL DESCRIPTION
LANGU_ISO
Language ISO
EN
Windchill
N/A
TargetID
PLANTDATA
PLANT
Plant
N/A
Windchill
Sub-string
org
PLANTDATAX
PLANT
Plant
N/A
Windchill
Sub-string
N/A
PLANTDATA
MRP_TYPE
MRP Type
ND
Default
N/A
N/A
PLANTDATAX
MRP_TYPE
MRP Type
X
Default
N/A
Source
PLANTDATA
PROC_TYPE
Procurement Type
N/A
Windchill
Cross Reference
N/A
PLANTDATAX
PROC_TYPE
Procurement Type
X (Indicator)
Default
N/A
1. The MPR view is only required when the Procurement Type (Source) is changed.
2. The Procurement type in the PLANTDATA STRUCTURE is required if changing the Procurement Type (Source)
3. Procurement type in the PLANTDATAX STRUCTURE is required if changing the Procurement Type (Source)