Symptom
- An attempt to use the Attachment API for Safety Data sheets and BusinessObjectTypeName = EHSDS_DOC results in a 400 Bad request.
- An error message displayed with 'Authorization check for Temporary link failed' when using API API_CV_ATTACHMENT_SRV and Entity AttachmentContentSet in a Post Request
- Error 'Authorization check for Temporary link failed' is raised and not known why as Scenario 'Product Compliance - Integration (SAP_COM_0797)' is correctly assigned to the Communication User
Environment
- SAP Document Management ( DMS )
- SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Use the Attachment API API_CV_ATTACHMENT_SRV , Entity AttachmentContentSet and BusinessObjectTypeName = EHSDS_DOC in a POST Request
- Supply LinkedSAPObjectKey as 1D50BF18-057F-1EDF-A6D6-80661CA095B6
- Error is raised 'Authorization check for Temporary link failed' not know known why
Cause
The value maintained for LinkedSAPObjectKey is not in the right format
Resolution
For Safety Data sheets, the LinkedSAPObjectKey ( object key ) should be the field CmplRqRsltDocInfoUUID which can retrieved from the CDS view A_CmplRqRsltSftyDataShtDocTP
without hyphens and in uppercase. For example: 1D50BF18057F1EDFA6D680661CA095B6
Keywords
Attachment API, Safety Data sheets, BusinessObjectTypeName, EHSDS_DOC, 400 Bad request, Authorization check, temporary link failed, SAP S/4HANA Cloud Public Edition. ' 'Authorization check for Temporary link failed' ' , DMS , CmplRqRsltDocInfoUUID , A_CmplRqRsltSftyDataShtDocTP , KBA , EHS-SUS-SDS , Product Compliance - Safety Data Sheets , CA-DMS , Document management , How To