Symptom
- The API API_CV_ATTACHMENT_SRV and Entity GetAllOriginals is called with GET operation to return Attachments linked to Journal Entries but the response is empty
- Not clear what values to specify for the fields BusinessObjectTypeName and LinkedSAPObjectKey in the API API_CV_ATTACHMENT_SRV , Entity GetAllOriginals to show Attachments for Journal Entries
- The API API_CV_ATTACHMENT_SRV and Entity AttachmentContentSet is called with POST operation to create Attachments linked to Journal Entries but the returns the error "You have no authorization for attachments" although the communication scenario SAP_COM_0002 is assigned
Environment
- SAP Document Management ( DMS )
- SAP S/4HANA Cloud Public Edition
Resolution
For Journal Entry , the BusinessObjectTypeName is BKPF
For Journal Entry, the LinkedSAPObjectKey ( object key) should be built by combination of key fields which is company, document number and year.
Please take care of the document number. The document number field has length 10. if you document number length is less than 10, please add leading zero.
For Example if the Company code is EU01 , Journal Entry is 100016973 and Year is 20201 the LinkedSAPObjectKey whould be EU01010001697320201
Keywords
BUKRS , BELNR , GJAHR , SAP_COM_0002 , KBA , CA-DMS , Document management , FI-FIO-GL-TRA , Transaction Apps , How To