Enterprise Administration > Implementing Windchill ESI > Implementing Windchill ESI in an SAP Environment > SAP API Structures > Create and Update Equipment Using ZRFC > Creating Control Characteristic Associations to Operations
  
Creating Control Characteristic Associations to Operations
The following API structure tables list all the APIs and the respective API fields that are required to create routings with Inspection characteristic within the current version of SAP distribution targets. These APIs are listed in the order in which they are invoked.
BAPI_Routing_Create
This BAPI is used to create Routings with having Operations associated with MICs (Control characteristic link with Operation). The invocation of BAPI_Routing_Create is followed by the BAPI_Transaction_Commit or BAPI_Transaction_Rollback based on success or failure of the call.
* 
Note the following:
This BAPI requires an explicit COMMIT WORK. So, the BAPI_TRANSACTION_COMMIT needs to be called along with for database updations (Function module Sequence call)
The creation will always be one time for a particular Routing i.e. you have to pass the values for the tables TASK, OPERATION & INSPCHARACTERISTIC in the single run. It is not possible to first to create the routing & then to transfer/create the MIC association.
Windchill Attribute Name
API Structure
API Field
API Field Description
Value (if Default used)
Source
Transform
Process plan number
TASK
TASK_LIST_G ROUP
Task list group number
N/A
Windchill
N/A
Change Number
TASK
CHANGE_NO
Change number (ECN)
N/A
Windchill
N/A
 
TASK
TASK_LIST_U SAGE
Task list usage
N/A
TIBCO
Get value from ESIDefaults.properties
 
TASK
TASK_LIST_S TATUS
Task list status
4
TIBCO
Get value from ESIDefaults.properties
Lot
TASK
LOT_SIZE_FR OM
Lot size from
N/A
Windchill
N/A
 
TASK
LOT_SIZE_TO
Lot size to
N/A
N/A
N/A
Distribution Target /Plant
TASK
PLANT
Plant of the Task list
N/A
Windchill
N/A
Description
TASK
DESCRIPTION  
Short description of the Task list
N/A
Windchill
N/A
Process plan number
OPERATION
TASK_LIST_GROUP
Task list group number
N/A
Windchill
N/A
Sequence Line Number
OPERATION
SEQUENCE_NO
Sequence number
N/A
Windchill
N/A
Change Number
OPERATION
CHANGE_NO
Change number
N/A
Windchill
N/A
Operation Label
OPERATION
ACTIVITY
Operation number
N/A
Windchill
N/A
ErpValidati onCode
OPERATION
CONTROL_KEY                              
Control Key for the operation
N/A
Windchill/TIBCO
Cross reference
Work Center
OPERATION
WORK_CNTR                      
Work center of the Operation
N/A
Windchill
N/A
Distribution Target /Plant
OPERATION
PLANT
Operation Plant 
N/A
Windchill
N/A
OPERATION
STANDARD_TEXT_KEY              
Standard text key
N/A
 
 
Description
OPERATION
DESCRIPTION
Operation description
N/A
Windchill
 
BaseUnitOf Measure
OPERATION
OPERATION_MEASURE_UNIT         
Operation unit of measurement
N/A
Windchill/TIBCO
 Cross reference
OPERATION
DENOMINATOR
Denominator value
N/A
TIBCO
N/A
OPERATION
NOMINATOR  
Nominator value
N/A
TIBCO
N/A
Quantity
OPERATION
BASE_QUANTITY                             
Operation base quantity
N/A
Windchill
N/A
Process plan number
INSPCHARACTERISTIC
TASK_LIST_GROUP         
Task list group number
N/A
Windchill
N/A
Sequence Line Number
INSPCHARACTERISTIC
SEQUENCE_NO             
Sequence number
N/A
Windchill
N/A
Operation Label
INSPCHARACTERISTIC
ACTIVITY                
Operation number
N/A
Windchill
N/A
INSPCHARACTERISTIC
INSPCHAR
Inspection Characteristic Number. (The number that explicitly identifies an inspection characteristic within an operation in an inspection plan)
N/A
 SAP/ZRFC
N/A
INSPCHARACTERISTIC
VALID_FROM              
Valid from date of the MIC association with Routing's operation
Current system date
TIBCO
Convert to SAP date format
Change Number
INSPCHARACTERISTIC
CHANGE_NO               
Engineering Change number (ECN)
N/A
Windchill
N/A
Model Item Reference
INSPCHARACTERISTIC
QUANTITATIVE_IND
The indicator for Quantitative type
X
TIBCO
Get value from ESIDefaults.properties
CC Number
INSPCHARACTERISTIC
MSTR_CHAR              
Number to uniquely identify a MIC
N/A
Windchill
N/A
Distribution Target /Plant
INSPCHARACTERISTIC
PMSTR_CHAR           
Plant of the Master Inspection Characteristics (MIC)
N/A
Windchill
N/A
INSPCHARACTERISTIC
CHA_MASTER_IMPORT_MODUS  
Mode for Reference to Master Inspection Characteristic 
N/A
 TIBCO
Get value from ESIDefaults.properties
CC Description
INSPCHARACTERISTIC
CHAR_DESCR               
Inspection Characteristic description
N/A
Windchill
N/A
INSPCHARACTERISTIC
UP_TOL_LMT_IND    
Indicator for Upper specification limit
X
 TIBCO
Get value from ESIDefaults.properties
INSPCHARACTERISTIC
LW_TOL_LMT_IND        
Indicator for Lower specification limit
X
 TIBCO
Get value from ESIDefaults.properties
INSPCHARACTERISTIC
TARGET_VAL_CHECK_IND  
Indicator for Target value
X
 TIBCO
Get valueESIDefaults.properties
Model Item Reference /No Of Decimal places
INSPCHARACTERISTIC
DEC_PLACES    
Number of decimal places for accuracy
N/A
Windchill
N/A
Model Item Reference / Unit of Measurement
INSPCHARACTERISTIC
MEAS_UNIT
Unit-of-Measurement
Windchill/TIBCO
Cross referenced from ESILookups.properties
Model Item Reference / Target Value
INSPCHARACTERISTIC
TARGET_VAL    
Target value
N/A
Windchill
N/A
Model Item Reference / Upper Target Value
INSPCHARACTERISTIC
UP_TOL_LMT    
Upper specification limit
N/A
Windchill
N/A
Model Item Reference / Lower Target Value
INSPCHARACTERISTIC
LW_TOL_LMT    
Lower specification limit
N/A
Windchill
N/A
BAPI_TRANSACTION_COMMIT
This API is used to commit a transaction to the SAP system. If the return message generated from executing the BAPI_ROUTING_CREATE API is a success, then this API will be executed. When this API is executed, all MIC data sent from Windchill PDMLink are committed to the QMSP database table. Refer to the Windchill Enterprise Systems Integration Customizer's Guide - SAP for an explanation of howWindchill ESI interprets the results of the SAP API calls. The following table provides details on this API.
* 
No data is passed through the BAPI_TRANSACTION_COMMIT function module but it is necessary to call the module to release the material in case invalid data is passed through. There are no variations of data inputs for this API for different data requirements. Refer to Windchill Enterprise Systems Integration Customizer's Guide - SAP for an explanation of how SAP APIs are called in sequence to execute each business function.
Windchill Attribute Name
API Structure
API Field
API Field Description
Value (if Default used)
Source
Transform
N/A
HEADER
Wait
Wait
X
Default
N/A
BAPI_TRANSACTION_ROLLBACK
This API is used to rollback a transaction to the SAP distribution target. If the return message generated from the BAPI_ROUTING_CREATE function is not a success then this API will be executed. When this API is executed, all MIC data sent from Windchill PDMLink is rolled back. Refer to the Windchill Enterprise Systems Integration Customizer's Guide - SAPfor an explanation of how Windchill ESI interprets the results of the SAP API calls. The following table provides details on this API.
* 
No data is passed through the BAPI_TRANSACTION_ROLLBACK function module but it is necessary to call the module. Refer to the Windchill Enterprise Systems Integration Customizer's Guide - SAP for an explanation of how SAP APIs are called in sequence to execute each Windchill ESI business function.