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

Functions

 callCustomerRuleHandler TransactionId SourceObjectInfo Action RuleName args
 Customer specific object RuleHandler function template. More...
 
 getContextObjectType Cfg0ConfiguratorPerspective args
 This function extracts the context type out of the given TcData The result might be Cfg0Dictionary, Cfg0ProductItem, ... 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_VariantClass2TC_Object TransactionId SourceObjectInfo TargetTypeName Status ObjectKey args
 Customer specific object reverse mapping function template for TargetTypeName. More...
 
 TC_Object2SAP_ConfigurationProfile TransactionId SourceObjectInfo TargetTypeName args
 Customer specific object mapping function template to maintain the configuration profile for a given material. More...
 
 TC_Object2SAP_MaterialMasterClassAssignment TransactionId SourceObjectInfo TargetTypeName args
 Customer specific object mapping function template for Material Master Variant Class assignment. This function can be used to assign each variant class to a given material master. More...
 
 TC_Object2SAP_VariantClass TransactionId SourceObjectInfo TargetTypeName args
 Customer specific object mapping function template for VariantClass. More...
 
 TC_Object2SAP_VariantClassCharacteristics TransactionId SourceObjectInfo TargetTypeName args
 Customer specific object mapping function template for VariantClassCharacteristics. This function can be used to assign each characteristic represented by an option family to the parent SAP class mapped using the procedure TC_Object2SAP_VariantClass. More...
 

Function Documentation

◆ callCustomerRuleHandler()

T4S::VARIANT_CLASS::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

◆ getContextObjectType()

T4S::VARIANT_CLASS::CUSTOM::MAPPING::getContextObjectType   Cfg0ConfiguratorPerspective args  

This function extracts the context type out of the given TcData The result might be Cfg0Dictionary, Cfg0ProductItem, ...

Parameters
Cfg0ConfiguratorPerspective
argsnot used
Returns
Context Type or empty string

◆ getObjectInfo()

T4S::VARIANT_CLASS::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_CLASS::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_VariantClass2TC_Object()

T4S::VARIANT_CLASS::CUSTOM::MAPPING::SAP_VariantClass2TC_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_ConfigurationProfile()

T4S::VARIANT_CLASS::CUSTOM::MAPPING::TC_Object2SAP_ConfigurationProfile   TransactionId SourceObjectInfo TargetTypeName args  

Customer specific object mapping function template to maintain the configuration profile for a given material.

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_MaterialMasterClassAssignment()

T4S::VARIANT_CLASS::CUSTOM::MAPPING::TC_Object2SAP_MaterialMasterClassAssignment   TransactionId SourceObjectInfo TargetTypeName args  

Customer specific object mapping function template for Material Master Variant Class assignment. This function can be used to assign each variant class to a given material master.

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_VariantClass()

T4S::VARIANT_CLASS::CUSTOM::MAPPING::TC_Object2SAP_VariantClass   TransactionId SourceObjectInfo TargetTypeName args  

Customer specific object mapping function template for VariantClass.

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_VariantClassCharacteristics()

T4S::VARIANT_CLASS::CUSTOM::MAPPING::TC_Object2SAP_VariantClassCharacteristics   TransactionId SourceObjectInfo TargetTypeName args  

Customer specific object mapping function template for VariantClassCharacteristics. This function can be used to assign each characteristic represented by an option family to the parent SAP class mapped using the procedure TC_Object2SAP_VariantClass.

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