T4S4  19.1 C8540 A23673
Teamcenter Gateway for SAP S/4HANA API Reference
T4S::VARIANT_CHARACTERISTIC::CUSTOM::MAPPING Namespace Reference

Functions

 callCustomerRuleHandler TransactionId SourceObjectInfo Action RuleName args
 Customer specific object RuleHandler function template. More...
 
 getObjectInfo TransactionId TargetTypeName ObjectKey args
 Customer specific Mapping function to retrieve the object information from SAP. More...
 
 getTcData ObjectTag args
 This function is called to extract the Tc data for a given tag, the resulting Tc data is stored in the TcData buffer. More...
 
 SAP_VariantCharacteristic2TC_Object TransactionId SourceObjectInfo TargetTypeName Status ObjectKey args
 Customer specific object reverse mapping function template for TargetTypeName. More...
 
 TC_Object2SAP_VariantCharacteristic TransactionId SourceObjectInfo TargetTypeName args
 Customer specific object mapping function template for TargetTypeName. More...
 
 TC_Object2SAP_VariantCharacteristicValues TransactionId SourceObjectInfo TargetTypeName args
 Customer specific object mapping function template for VariantCharacteristicValues. This function can be used to assign each value represented by an option value to the parent SAP characteristic mapped using the procedure TC_Object2SAP_VariantCharacteristic. More...
 

Function Documentation

◆ callCustomerRuleHandler()

T4S::VARIANT_CHARACTERISTIC::CUSTOM::MAPPING::callCustomerRuleHandler   TransactionId SourceObjectInfo Action RuleName args  

Customer specific object RuleHandler function template.

Parameters
TransactionIdunique ID for the transfer transaction
SourceObjectInfosource object information dict structure
ActionWork flow action
RuleNamespecified rule name in the work flow arguments
argsnot used
Returns
EPM_nogo or EPM_go

◆ getObjectInfo()

T4S::VARIANT_CHARACTERISTIC::CUSTOM::MAPPING::getObjectInfo   TransactionId TargetTypeName ObjectKey args  

Customer specific Mapping function to retrieve the object information from SAP.

Parameters
TransactionIdunique ID for the transfer transaction
TargetTypeNamespecified transaction target type name for generic TC object transfer
ObjectKeySAP object id information
argsnot used
Returns
ITK_ok (=0) or List of ITK status and error message.

◆ getTcData()

T4S::VARIANT_CHARACTERISTIC::CUSTOM::MAPPING::getTcData   ObjectTag args  

This function is called to extract the Tc data for a given tag, the resulting Tc data is stored in the TcData buffer.

Parameters
ObjectTagof the Teamcenter object
argsnot used
Returns
ITK_ok (=0) or List of ITK status and error message.

◆ SAP_VariantCharacteristic2TC_Object()

T4S::VARIANT_CHARACTERISTIC::CUSTOM::MAPPING::SAP_VariantCharacteristic2TC_Object   TransactionId SourceObjectInfo TargetTypeName Status ObjectKey args  

Customer specific object reverse mapping function template for TargetTypeName.

Parameters
TransactionIdunique ID for the transfer transaction
SourceObjectInfosource object information dict structure
TargetTypeNamespecified transaction target type name for generic TC object transfer
StatusTransfer Status The following values are valid:
  • SKIPPED the transfer was skipped
  • ADDITIONALUPDATESONLY -> T4S skipped the main transfer but excecuted all additional transfers (if activated in the mapping)
  • ERROR the transfer was stopped by an error
  • UNKNOWN the transfer was stopped by an unknown error
  • UPDATED_WITH_ERROR the transfer was stopped by an minor error in one of the additional transfer steps
  • CREATED, CHANGED, UPDATED and some other values are used for a successful transfer
ObjectKeySAP object id information
argsnot used
Returns
MappingStatus used by the following Tc object update function. The following values are valid:
  • OK T4S will update the Tc object based on the reverse mapping preferences and the reverse mapping buffer.
  • SKIPPED T4S will skip the TcData object
  • ERROR T4S will stop transfer and raise an error

◆ TC_Object2SAP_VariantCharacteristic()

T4S::VARIANT_CHARACTERISTIC::CUSTOM::MAPPING::TC_Object2SAP_VariantCharacteristic   TransactionId SourceObjectInfo TargetTypeName args  

Customer specific object mapping function template for TargetTypeName.

Parameters
TransactionIdunique ID for the transfer transaction
SourceObjectInfosource object information dict structure
TargetTypeNamespecified transaction target type name for generic TC object transfer
Returns
MappingStatus used by the following transfer function. The following values are valid:
  • OK T4S will continue with the next transfer step
  • REVERSEMAPPINGONLY T4S will skip the transfer to SAP and will just do the reverse mapping
  • SKIPPED T4S will skip the transfer to SAP
  • ADDITIONALUPDATESONLY -> T4S will skip the main transfer but will excecute all additional transfers (if activated in the mapping)
  • ERROR T4S will stop transfer and raise an error

◆ TC_Object2SAP_VariantCharacteristicValues()

T4S::VARIANT_CHARACTERISTIC::CUSTOM::MAPPING::TC_Object2SAP_VariantCharacteristicValues   TransactionId SourceObjectInfo TargetTypeName args  

Customer specific object mapping function template for VariantCharacteristicValues. This function can be used to assign each value represented by an option value to the parent SAP characteristic mapped using the procedure TC_Object2SAP_VariantCharacteristic.

Parameters
TransactionIdUnique ID for the transfer transaction
SourceObjectInfosource object information dict structure
TargetTypeNameSpecified transaction target type name for generic TC object transfer
Returns
MappingStatus used by the following transfer function. The following values are valid:
  • OK T4S will continue with the next transfer step
  • REVERSEMAPPINGONLY T4S will skip the transfer to SAP and will just do the reverse mapping
  • SKIPPED T4S will skip the transfer to SAP
  • ADDITIONALUPDATESONLY -> T4S will skip the main transfer but will excecute all additional transfers (if activated in the mapping)
  • ERROR T4S will stop transfer and raise an error