Ansicht
Dokumentation

CRM_DOC_AUTHORITY - BAdI: Authorization Check on Document Level

CRM_DOC_AUTHORITY - BAdI: Authorization Check on Document Level

Vendor Master (General Section)   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

In Service, user authorizations for a business object to which documents are assigned are copied to the documents: For example, if a user only has read authorization for an application, then he or she only has read authorization for the associated documents.

By implementing this BAdI, you can implement authorization checks at document level, taking the following activities into account:

  • Create
  • Modify
  • Delete
  • Read

If a user does not have the respective authorization, you can return an error message to prevent actions being executed on the document. In the implementation, if necessary, you can use the Application Programming Interface (API) in Content Management for Service.

Note:

  • Your BAdI implementation is called only for the Content Management documents in your application, and not for other SAP document services, particularly ArchiveLink documents.
  • Unless you have read authorization for specific documents, the documents do not appear in the folder structure on the document tab page or in the search result list. Therefore, you cannot display these documents or execute specific functions. The documents for which you have no read authorization remain completely hidden.
  • Authorization checks are performed at the end of an action, that is, if you do not have authorization to create a document, you can in fact create one but you cannot save it.
  • During a user action, there may be multiple authorization checks with different activities. For example, in the Change Settings user activity, the BAdI is checked for authorization to read the settings and then for authorization to change the settings.






Fill RESBD Structure from EBP Component Structure   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 2075 Date: 20240523 Time: 174527     sap01-206 ( 50 ms )