SAP APIs
To complete Windchill ESI functions such as Create Part, Change BOM, Windchill ESI needs to invoke multiple SAP APIs in a predetermined sequence. The following table lists these APIs categorized by Windchill ESI functions. Refer to SAP API Structures for details on the API structures.
Windchill ESI Function
SAP APIs
Create Part
BAPI_MATERIAL_SAVEREPLICA
CCAP_REV_LEVEL_MAINTAIN CALO_INIT_API BAPI_TRANSACTION_COMMIT BAPI_TRANSACTION_ROLLBACK
Change Part
BAPI_MATERIAL_SAVEREPLICA CCAP_REV_LEVEL_MAINTAIN CALO_INIT_API BAPI_TRANSACTION_COMMIT BAPI_TRANSACTION_ROLLBACK
Create BOM
BAPI_MATERIAL_BOM_GROUP_CREATE CALO_INIT_API
Change BOM
CSAP_MAT_BOM_MAINTAIN BAPI_TRANSACTION_COMMIT
Create Document Info Record
BAPI_DOCUMENT_CREATE2 BAPI_TRANSACTION_COMMIT BAPI_TRANSACTION_ROLLBACK
Change Document Info Record
BAPI_DOCUMENT_CREATENEWVRS2 BAPI_DOCUMENT_CHANGE2 BAPI_TRANSACTION_COMMIT BAPI_TRANSACTION_ROLLBACK
Create CN
CCAP_ECN_CREATE CCAP_ECN_MAINTAIN CALO_INIT_API
Get Part Details
BAPI_MATERIAL_GET_DETAIL BAPI_MATERIAL_AVAILABILITY
Create ProcessPlan (Routing)
BAPI_ROUTING_CREATE BAPI_TRANSACTION_COMMIT BAPI_TRANSACTION_ROLLBACK
Change ProcessPlan (Routing) using /PTC/ZRFC_MODIFY_ROUTING
/PTC/ZRFC_MODIFY_ROUTING
Change ProcessPlan (Routing) using CP_BD_DIRECT_INPUT_PLAN
/PTC/ZRFC_OPR_LABEL CP_BD_DIRECT_INPUT_PLAN BAPI_TRANSACTION_COMMIT RFC_READ_TABLE CSAP_MAT_BOM_READ BAPI_MESSAGE_GETDETAIL
Create Process Material
BAPI_MATERIAL_SAVEREPLICA CCAP_REV_LEVEL_MAINTAIN CALO_INIT_API BAPI_TRANSACTION_COMMIT BAPI_TRANSACTION_ROLLBACK
Change Process Material
BAPI_MATERIAL_SAVEREPLICA CCAP_REV_LEVEL_MAINTAIN CALO_INIT_API BAPI_TRANSACTION_COMMIT BAPI_TRANSACTION_ROLLBACK
Create Equipment using ZRFC
/PTC/ZRFC_CREATE_EQUIPMENT
Create Equipment using BAPI
BAPI_EQUI_CREATE BAPI_TRANSACTION_COMMIT RFC_CALL_TRANSACTION_USING
Change Equipment using ZRFC
/PTC/ZRFC_UPDATE_EQUIPMENT
Change Equipment using BAPI
BAPI_EQUI_CHANGE
BAPI_TRANSACTION_COMMIT
Read BOM
CSAP_MAT_BOM_READ
Control Characteristic Mapping
The following tables lists the mapping for control characteristics:
Windchill
SAP (QS21) Master Inspection Characteristics (MIC)
Details
CC Number
MIC Number
CC Name
MIC Name
Transformed to Name – Plant
Because Name must be unique for each plant.
CC Description
Short text
Severity
Not mapped
Version
Note mapped
Distribution Target /Plant
Plant
Model Item Reference
Qualitative or Quantitative selection
Based on the Model Item Type/subtype and other attributes, Windchill-MPMLink decides if the CC is Qualitative or Quantitative.
Model Item Reference / Target Value
Target Value indicator and Target Value
Model Item Reference / Upper Target Value
Upper Specification Limit indicator and Upper Limit
Model Item Reference / Lower Target Value
Lower Specification indicator and Lower Limit
Model Item Reference / No Of Decimal places
Decimal places
Windchill-MPMLink API calculate programmatically based on the certain attributes
Model Item Reference / Unit of Measurement
Msmt Unit
The following tables lists the mapping for control characteristics associations with parts:
Windchill
SAP (QS61 : Material Specification)
Details
Part Number
Material Number
CC Number
MIC Number
Distribution Target/Plant
Plant
* 
In SAP the association is created as a reference association. This means all modifications are reflected from the actual master data at the MIC.
The following tables lists the mapping for control characteristics associations with a process plan operations:
Windchill to Windchill MPMLink Link for Operation to Control Characteristic Consumption
SAP (CA02 : Inspection Characteristics)
Details
CC Number
MIC Number, MIC Description and other quantitative values from Model Item referenced attributes like Target Value, Upper Limit, Lower Limit are mapped with this link as well.
Operation Label
Operation Label of that Operation
Distribution Target/Plant
Plant
這是否有幫助?