Symptom
- Error 'User has no authorization for operation 03 on object PMPLKO' when calling API API_CV_ATTACHMENT_SRV, Entity GetAllOriginals.
- Unable to download Attachments for Maintenance Task List using API API_CV_ATTACHMENT_SRV.
- The API API_CV_ATTACHMENT_SRV is unable to attachment documents due to an authorization errror despite having SAP_COM_0395 assigned to the Communication User.
Environment
- SAP S/4HANA Cloud Public Edition
- Document Management
Reproducing the Issue
Call the API using a GET request with sap/opu/odata/sap/API_CV_ATTACHMENT_SRV/GetAllOriginals?BusinessObjectTypeName='PMPLKO'&LinkedSAPObjectKey='A0GRP12301'
Cause
The value for BusinessObjectTypeName or LinkedSAPObjectKey is incorrect.
Resolution
- For Maintenance Task List Header, the BusinessObjectTypeName should be PMPLKO; for Task List Operation should be PMPLPO.
- The CDS view I_DOCUMENTINFORECORDOBJECTLINK can be used to get the correct LinkedSAPObjectKey.
- Use app Customer Data Browser to view the data of CDS view I_DOCUMENTINFORECORDOBJECTLINK.
- The CDS view I_DOCUMENTINFORECORDOBJECTLINK can also be used to get LinkedSAPObjectKey for other objects than Maintenance Task List, for example, Maintenance Order, Journal Entry, etc..
See Also
Help Documentation - Get All Originals
Keywords
API_CV_ATTACHMENT_SRV, GetAllOriginals, User has no authorization for operation 03 on object, Attachment, Maintenance Task List, BusinessObjectTypeName, LinkedSAPObjectKey, I_DOCUMENTINFORECORDOBJECTLINK, PMPLKO, PMPLPO , KBA , CA-DMS , Document management , How To
Product
SAP S/4HANA Cloud Public Edition all versions
SAP Knowledge Base Article - Public