![]() |
T4S4
18.1 C7177 A20283
Teamcenter Gateway for SAP S/4HANA API Reference
|
Mapping namespace for T4S engineering change master transfer. More...
Functions | |
SAP_ChangeMaster2TC_Object TransactionId ItemType ItemRevisionType Status ObjectKey args | |
Customer specific reverse mapping function for the T4S engineering change master transfer. More... | |
TC_Object2SAP_ChangeMaster TransactionId ItemType ItemRevisionType args | |
Customer specific mapping function to define the engineering change master to be transferred to SAP. More... | |
Mapping namespace for T4S engineering change master transfer.
The namespace contains the custom specific part of a T4S engineering change master transfer:
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::FieldMapping
.::TcData
with function T4X::TC::MAPPING::storeReverseMappingAttribute
.::SAPDat
using function T4S::TC::MAPPING::SAPFieldMapping
.::SAPDat
with set
::SAPDat(<key>)
value
.T4S_ChangeMasterTypeList
: list of allowed Teamcenter object types T4S_ChangeMasterMapping4<ObjectType>
: list of Teamcenter data types to read attributes from T4S_ChangeMasterMapping2<ObjectType>
: list of Teamcenter data types to write back during reverse mapping T4S_ChangeMasterFieldMapping2<DataType>
: list of Teamcenter attributes to write back during reverse mapping (optional) T4S::ECM::CUSTOM::MAPPING::SAP_ChangeMaster2TC_Object | TransactionId ItemType ItemRevisionType Status ObjectKey args | ||
Customer specific reverse mapping function for the T4S engineering change master transfer.
For ItemRevision
the procedure maps the following SAP attributes back to Teamcenter attributes:
SAP
Id
-> user_data_1
SAP
Valid
from
date
-> user_data_2
T4S
transfer
status
-> item_comment
For EngChange
Revision
the procedure maps the following SAP attributes back to Teamcenter attributes:
SAP
Id
-> EngChange
user_data_1
SAP
Valid
from
date
-> EngChange
user_data_2
T4S
transfer
status
-> EngChange
item_comment
For ChangeNoticeRevision
the procedure maps following SAP attributes back to Teamcenter attributes:
SAP
Reason
c\ for change
, SAP
Valid
from
date
, SAP
Id
and T4S
transfer
status
-> object_desc
TransactionId | - Unique ID for the transfer transaction |
ItemType | - Teamcenter item type |
ItemRevisionType | - Teamcenter item revision type |
Status | - SAP transfer status. The following values are valid: SKIPPED -> the transfer was skipped 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 |
ObjectKey | - SAP Id of change master |
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(), T4S::TC::MAPPING::SAPFieldMapping(), T4X::TC::MAPPING::storeReverseMappingAttribute(), and tpwrite().
T4S::ECM::CUSTOM::MAPPING::TC_Object2SAP_ChangeMaster | TransactionId ItemType ItemRevisionType args | ||
Customer specific mapping function to define the engineering change master to be transferred to SAP.
For ItemRevision
the procedure maps the following Teamcenter attributes to SAP attributes:
object_name
-> SAP
Description
object_desc
-> SAP
Reason
for
change
user_data_1
-> SAP
Id
user_data_2
-> SAP
Valid
from
date
For EngChange
Revision
the procedure maps the following Teamcenter attributes to SAP attributes:
EngChange
object_name
-> SAP
Description
EngChange
object_desc
-> SAP
Reason
for
change
EngChange
user_data_1
-> SAP
Id
EngChange
user_data_2
-> SAP
Valid
from
date
For ChangeNoticeRevision
the procedure maps following Teamcenter attributes to SAP attributes:
object_name
-> Description
object_desc
-> line 1: Reason
for
change
; line 2: Valid
from
date
; line 3: SAP
Id
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::TC::MAPPING::FieldMapping(), TPSAP::ECM::getInternalChangeNumber(), T4X::CORE::getSessionLogChannel(), and tpwrite().