1.1 Overview
This section describes how to exchange a DocumentVersion from an external PLM system to the SAP system and vice versa. As a result, a SAP DMS Document Info record is created or updated.
The Integration allows to do the following use cases:
Direction: External PLM System --> SAP
- Create a new Document Info Record in SAP
- Update a Document Info Record in SAP
- Receive physical files (originals) in SAP
Direction: SAP --> External PLM System
- Create a document in the external PLM system based on an SAP Document Info Record
- Update a document in the external PLM system based on an SAP Document Info Record
Supported Entities | ECC | S/4HANA Cloud, private edition | S/4HANA Cloud, public edition |
---|---|---|---|
Documented Info Record | SUPPORTED | SUPPORTED |
2. Object Definition
Fieldname | Description | PLMSI Behaviour | |||||||||||||
key | Key of the document version | MANDATORY | |||||||||||||
| DocumentVersion id |
In case the SAP key should be changed based on customer-specific logic. E.g. create an internal ID despite receiving an external one or set the document part of the DIR based on a special logic (e.g. language key) you can use a BADI. A default document info record part can be set via PLMSI configuration. | |||||||||||||
| DocumentVersion type | DocumentVersion Type is mapped to an SAP Document Info Record Type. | |||||||||||||
| DocumentVersion version |
| |||||||||||||
| temporary PLM ID of the business entity | The PLM ID is provided if the direction of External PLM System --> SAP or in the response. | |||||||||||||
| temporary ERP ID of the business entity | The ERP ID is provided if the direction of SAP --> External PLM System or in the response. The ERP Id contains the concatenated SAP Document Info Record Key | |||||||||||||
controlParameters | Structure with parameters how to create/update the DV (e.g. keepExistingLinkedProductVersions) | OPTIONAL | |||||||||||||
| Determines if existing (previously sent) files should be kept or not | This flag is only influencing the business logic in case of an update of a document info record maintenance request.
| |||||||||||||
| Determines if existing (previously sent) linked product versions should be kept or not | This flag is only influencing the business logic in case of an update of a document info record maintenance request.
| |||||||||||||
changeObject | Key of the change object (only if object is sent in the context of the change object) | OPTIONAL | |||||||||||||
| key of the Change Object MDM entity | Provided COs and corresponding linked SAP ECMs/Change Records must exist in the SAP system, otherwise, the payload gets rejected.
| |||||||||||||
describedChangeObject (only for posting data) | Key of the change object, which this DocumentVersion is describing | OPTIONAL | |||||||||||||
| key of the Change Object MDM entity | This identifies if a Document Info Record describes a change by providing additional information. The DIR was not created as part of the change. The DIR is attached (object link) to either the SAP ECM or Change Record header. | |||||||||||||
Attributes | OPTIONAL | ||||||||||||||
validFrom | Contains date and time of the FROM effectivity or release date directly assigned to the object. e.g. "2022-12-01T07:42:28Z" | This property is only influencing the business logic in case a DV is represented by a SAP DIR with Revision Levels
| |||||||||||||
status | Contains the status of the business object | The combination of DM Status and DM Maturity is translated based on the PLMSI configuration to an SAP DIR status | |||||||||||||
maturity | Contains the maturity of the business object | The combination of DM Status and DM Maturity is translated based on the PLMSI configuration to an SAP DIR status | |||||||||||||
displayURL | URL for data federation a show link to SAP/TC object | URL for the WebGui SAPGUI for SAP Document Info Record | |||||||||||||
names[] | Contains multi-language short descriptions. | OPTIONAL Behavior: You either have to provide names[] or descriptions [] during initial create of a PV Linked to the SAP Document Info Record short text. | |||||||||||||
| Language (according ISO 639-1) | ISO Language Key like e.g. "EN,"DE", ... | |||||||||||||
| Short text | Text | |||||||||||||
descriptions[] | Contains multi-language descriptions. | OPTIONAL Behavior: You either have to provide names[] or descriptions [] during initial create of a PV Linked of SAP Document Info Record Description | |||||||||||||
| Language (according ISO 639-1) | ISO Language Key like e.g. "EN,"DE", ... | |||||||||||||
| Long text | Text | |||||||||||||
files[] | Files of a document which are transfered | A file is represented by a SAP original | |||||||||||||
| Key of a file | ||||||||||||||
| Unique Identifier of the file | technical id and not exposed to the UI | |||||||||||||
| temporary PLM ID of the business entity | The PLM ID is provided if the direction of External PLM System --> SAP or in the response. | |||||||||||||
| temporary ERP ID of the business entity | The ERP ID is provided if the direction of SAP --> External PLM System or in the response. The ERP Id contains the LOIO. | |||||||||||||
| Mimetype (as defined by IANA) | Mime Type and file type is used to determine the SAP workstation application and Storage Category. Configuration to be performed within PLMSI config. | |||||||||||||
| description of the file | SAP Original description | |||||||||||||
| file name | File name of the original within SAP | |||||||||||||
| Upload Url for a file | Generated upload URL to store the physical file in the configured content repository | |||||||||||||
| Download Url for a file | Generated download URL to retrieve the physical file in the configured content repository | |||||||||||||
linkedProductVersions[] | ProductVersions which are linked | ||||||||||||||
| Linked ProductVersion keys | Provided PVs and corresponding linked SAP Material Masters must exist in the SAP system, otherwise, the payload gets rejected. Within SAP a Material Master ↔ Document Infor Record object link is created. Update logic is controlled to keepExistingLinkedProductVersions flag of the control key section. | |||||||||||||
linkedVendors[] | Vendors which are linked | S/4HANA ONLY | |||||||||||||
- key | Linked Vendor keys | Provided Vendors and corresponding linked SAP Business Partners must exist in the SAP system, otherwise, the payload gets rejected. Within SAP a Document Info Record ↔ Vendor( LFA1) object link is created. | |||||||||||||
extensionFields[] | extension fields to exchange additional attributes | OPTIONAL Extension Fields can be mapped based on the PLMSI Field and Value mapping (FVM) to SAP standard fields and DIR classification. | |||||||||||||
| Key to identifying the extension field | Key must be unique per entity | |||||||||||||
| SubKey to further identify the extension field | The subkey must be unique per entity and per key. | |||||||||||||
| Readable name for the extension field | Display name of readability only and for data federation | |||||||||||||
| Value of the extension field | Only one of the value fields must be provided. An error message is returned if more than one value field is filled. The value can also be empty/initial. | |||||||||||||
| Value Description | ||||||||||||||
| Value Integer | ||||||||||||||
| Value Decimal | ||||||||||||||
| Value Date | ||||||||||||||
| Value Duration |
Payload Examples: Direction → PLM2SAP & SAP2PLM