![]() |
T4S4
18.1 C7177 A20283
Teamcenter Gateway for SAP S/4HANA API Reference
|
Mapping namespace for T4S bill of material transfer. More...
Functions | |
SAP_BillOfMaterial2TC_Object TransactionId Status args | |
Customer specific reverse mapping function for the T4S bill of material transfer. More... | |
TC_Object2SAP_BillOfMaterial TransactionId ItemType ItemRevisionType args | |
Customer specific mapping function to define the bill of material header data to be transferred to SAP. More... | |
TC_Object2SAP_BillOfMaterialPosition TransactionId PositionIndex ItemType ItemRevisionType args | |
Customer specific mapping function to define the bill of material position data to be transferred to SAP. More... | |
TC_Object2SAP_BillOfMaterialPostAction TransactionId ItemType ItemRevisionType MappingStatus args | |
This function is called AFTER the general mapping and can be used to perform additional steps after the header and position mapping. More... | |
Variables | |
BomHeaderInfo | |
BomPositionInfo | |
Mapping namespace for T4S bill of material transfer.
The namespace contains the custom specific part of a T4S bill of material transfer:
mapping
). mapping
). reverse
mapping
).::TcData
is used. It contains specific attributes of the Teamcenter object to be transferred and additional information about the current transaction. For the data exchange between T4S and SAP the internal TCL array ::SAPDat
is used.::TcData
with function T4X::TC::MAPPING::IndexedFieldMapping
.::TcData
with function T4X::TC::MAPPING::storeReverseMappingAttribute
.::SAPDat
with $::SAPDat(<key>)
.::SAPDat
with set
::SAPDat(<key>)
value
.T4S_BillOfMaterialTypeList
: list of allowed Teamcenter object types T4S_BillOfMaterialMapping4<ViewType>
: list of Teamcenter view types to read attributes from T4S_BillOfMaterialHeaderTypeList
: list of allowed Teamcenter object types for BOM header. Otherwise T4S_MaterialMasterTypeList
is used T4S_BillOfMaterialHeaderMapping4<ObjectType>
: list of Teamcenter data types for BOM header to read attributes from. Otherwise T4S_MaterialMasterMapping4<ObjectType>
is used T4S_BillOfMaterialLineMapping4<ObjectType>
: list of Teamcenter data types for BOM lines to read attributes from. Otherwise T4S_MaterialMasterMapping4<ObjectType>
is used T4S_BillOfMaterialOccurrenceNotes4<ViewType>
: list of Teamcenter occurence notes for BOM lines to read attributes from. T4S_BillOfMaterialMapping2<ViewType>
: list of Teamcenter view types to write back during reverse mapping T4S_BillOfMaterialFieldMapping2<DataType>
: list of Teamcenter attributes to write back during reverse mapping (optional) T4S::BOM::CUSTOM::MAPPING::SAP_BillOfMaterial2TC_Object | TransactionId Status args | ||
Customer specific reverse mapping function for the T4S bill of material transfer.
The procedure maps status information back to Teamcenter attributes
T4S
transfer
status
-> item_comment
TransactionId | - Unique ID for the transfer transaction |
Status | - SAP transfer status. The following values are valid: SKIPPED -> the transfer was skipped ERROR -> the transfer was stopped by an error EMPTY_BOM_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 |
args | - Not used |
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 References T4X::CORE::getSessionLogChannel(), T4X::TC::MAPPING::IndexedFieldMapping(), T4X::TC::MAPPING::storeReverseMappingAttribute(), and tpwrite().
T4S::BOM::CUSTOM::MAPPING::TC_Object2SAP_BillOfMaterial | TransactionId ItemType ItemRevisionType args | ||
Customer specific mapping function to define the bill of material header data to be transferred to SAP.
This procedure is called one time to prepare the bill of material header data.
It maps the Teamcenter attributes user_data_1
and some default values defined in t4s_mapping_config.sd
to SAP attributes.
For bill of material (BOM) transfer the Teamcenter attribute user_data_1
shall contain the SAP Id of the material master for which the BOM should be created/updated in SAP. Otherwise the user will get an error message.
TransactionId | - Unique ID for the transfer transaction |
ItemType | - Teamcenter item type |
ItemRevisionType | - Teamcenter item revision type |
args | - Not used |
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 ERROR
-> T4S will stop transfer and raise an error References T4X::CORE::getSessionLogChannel(), T4X::TC::MAPPING::IndexedFieldMapping(), T4X::CORE::storeMessage2(), and tpwrite().
T4S::BOM::CUSTOM::MAPPING::TC_Object2SAP_BillOfMaterialPosition | TransactionId PositionIndex ItemType ItemRevisionType args | ||
Customer specific mapping function to define the bill of material position data to be transferred to SAP.
This procedure is called one time to prepare the bill of material position data.
It maps the Teamcenter attributes user_data_1
and bl_quantity
and some default values defined in t4s_mapping_config.sd
to SAP attributes.
Depending on Teamcenter attribute bl_ref_designator
the BOM line position is determined.
The Teamcenter attribute user_data_1
shall contain the SAP Id of the material master for which the BOM line should be created/updated in SAP. Otherwise the user will get an error message if action is not DISPLAY.
TransactionId | - Unique ID for the transfer transaction |
PositionIndex | - Teamcenter BOM line index |
ItemType | - Teamcenter item type |
ItemRevisionType | - Teamcenter item revision type |
args | - Not used |
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 ERROR
-> T4S will stop transfer and raise an error References T4X::CORE::getSessionLogChannel(), T4X::TC::MAPPING::IndexedFieldMapping(), TPSAP::BOM::initPositionStructure(), T4X::CORE::storeMessage2(), and tpwrite().
T4S::BOM::CUSTOM::MAPPING::TC_Object2SAP_BillOfMaterialPostAction | TransactionId ItemType ItemRevisionType MappingStatus args | ||
This function is called AFTER the general mapping and can be used to perform additional steps after the header and position mapping.
TransactionId | - Unique ID for the transfer transaction |
PositionIndex | - Tc BOMLine index |
ItemType | |
ItemRevisionType | |
MappingStatus | |
args | - Not used |
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 ERROR
-> T4S will stop transfer and raise an error References T4X::CORE::getSessionLogChannel(), and tpwrite().
|
static |
|
static |