Symptom
Returned with error "User has no authorization for operation DISPLAY on object QMQMEL" when trying to display an original from Fiori app "Manage Documents", Same original can be displayed from back end CV03n transaction
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely
coincidental."
Environment
SAP S/4HANA, Cloud
Reproducing the Issue
-
Open Fiori APP "Manage Documents
- Search and open Document Number "XXXX"
- Go to Originals tab then click the attachment file url
- Returned with mentioned error "User has no authorization for operation DISPLAY on object QMQMEL"
Resolution
-
The BAdI implementation method IF_EX_CV_ODATA_ATTACHMENT_AUTH~CHECK_AUTHORIZATION must be implemented to handle authorization check for the object types "QMQMEL
- If the BAdI BADI_CV_ODATA_ATTACHMENTS_AUTH is not implemented, the system by default does not provide the authorization. Kindly implement the BAdI method IF_EX_CV_ODATA_ATTACHMENT_AUTH~CHECK_AUTHORIZATION and add a filter for object type "QMQMEL"
- The customizing SPRO path is: Cross-Application Components > Document Management > Additional Settings - Simplification > BusinessAdd-ins (BAdIs) > BAdI: Attachment Service - Authorization Check.
-
BADI_CV_ODATA_ATTACHMENTS_AUTH
method IF_EX_CV_ODATA_ATTACHMENT_AUTH~CHECK_AUTHORIZATION.
CV_NO_AUTHORIZATION = ''.
endmethod. - Below screen shot is sample of filter settings
6. Please note that the described behavior is not limited to the object type QMQMEL and is also valid for several other object types.
Keywords
CV_ODATA_ATTACHMENTS_AUTH, CV_ATTACHMENTS/012, WebDynpro, Download, NWBC , KBA , CA-DMS , Document management , PLM-WUI-OBJ-DMS , Document , Problem