![]() |
T4S4
18.1 C7177 A20283
Teamcenter Gateway for SAP S/4HANA API Reference
|
Mapping namespace for T4S document info record transfer. More...
Functions | |
SAP_DocumentInfoRecord2TC_Object TransactionId Status DocumentNumber DocumentType DocumentPart DocumentVersion args | |
Customer specific reverse mapping function for the T4S document info record transfer. More... | |
TC_Object2SAP_DocumentInfoRecord TransactionId ObjectTypeName ObjectClassName ItemType ItemRevisionType args | |
Customer specific mapping function to define the document info record to be transferred to SAP. More... | |
Mapping namespace for T4S document info record transfer.
The namespace contains the custom specific part of a T4S document info record 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_DocumentInfoRecordTypeList
: list of allowed Teamcenter object types T4S_DocumentInfoRecordMapping4<ObjectType>
: list of Teamcenter data types to read attributes from T4S_DocumentInfoRecordMapping2<ObjectType>
: list of Teamcenter data types to write back during reverse mapping T4S_DocumentInfoRecordFieldMapping2<DataType>
: list of Teamcenter attributes to write back during reverse mapping (optional) T4S_DocumentInfoRecordDefaultDocumentKey4<DataType>
: defines document type, part and version for Teamcenter data type T4S_DocumentInfoRecordMappingNamedFileList4<DataType>
: list of Teamcenter data types to read files from T4S::DIR::CUSTOM::MAPPING::SAP_DocumentInfoRecord2TC_Object | TransactionId Status DocumentNumber DocumentType DocumentPart DocumentVersion args | ||
Customer specific reverse mapping function for the T4S document info record transfer.
The procedure maps the following SAP attributes back to Teamcenter attributes:
SAP
Document
number
-> SAP_DirNo
SAP
Document
type
-> SAP_DirType
SAP
Document
part
-> SAP_DirPart
SAP
Document
version
-> SAP_DirVersion
T4S
transfer
status
-> SentDIRToSAP
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 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 |
DocumentNumber | - SAP Id of document info record |
DocumentType | - SAP Type of document info record |
DocumentPart | - SAP Part of document info record |
DocumentVersion | - SAP Version of document info record |
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 TPSAP::DIR::getExternalDocumentNumber(), T4X::CORE::getSessionLogChannel(), TPSAP::RfcGetAttributes(), T4X::TC::MAPPING::storeReverseMappingAttribute(), and tpwrite().
T4S::DIR::CUSTOM::MAPPING::TC_Object2SAP_DocumentInfoRecord | TransactionId ObjectTypeName ObjectClassName ItemType ItemRevisionType args | ||
Customer specific mapping function to define the document info record to be transferred to SAP.
The procedure maps the following Teamcenter attributes to SAP attributes:
object_name
-> SAP
Description
SAP_DirNo
-> SAP
Id
SAP_DirType
-> SAP
Document
type
SAP_DirPart
-> SAP
Document
part
SAP_DirVersion
-> SAP
Document
version
No original files are transferred but object links are created in SAP.
TransactionId | - Unique ID for the transfer transaction |
ObjectTypeName | - Teamcenter object type |
ObjectClassName | - Teamcenter object class |
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 T4S::DIR::MAPPING::checkSAPDocumentKey(), T4X::TC::MAPPING::FieldMapping(), T4X::CORE::getSessionLogChannel(), TPSAP::DIR::setSAPDocumentDescription(), T4X::CORE::storeMessage2(), and tpwrite().