SAP Knowledge Base Article - Public

3327862 - Custom Logic validation is not working as expected for some users

Symptom

  • You are using Custom Logic app.
  • You created a Custom Logic and the validation is not working as expected for some users.
  • You are implementing a custom logic that reads from any released standard view.

Environment

SAP S/4HANA Cloud

Cause

The users do not have the required authorization for the CDS view that you are using in the validation of your Custom Logic. 

The relevant business catalog is not assigned to the users.

Resolution

In order to resolve this issue, please assign the relevant business catalog to the Business User. If you don't want to provide Write Access to the roles, you can assign the Business Catalogs that are Display Only or restrict the Business Role. 

Standard CDS views

The relevant business catalog/business role template should be mentioned under Virtual Data Model and CDS Views in SAP S/4HANA Cloud > CDS Views

For example,

  • for I_PurchaseOrderAPI01 the relvant business role template is SAP_BR_PURCHASER (see Purchase Order).
  • for I_MPPurchasingSourceItem the relevant busines catalog is SAP_MM_BC_SOS_PROCESS_PC (see Source List)
  • for I_BUSINESSPARTNER  the relevant business catalogs are SAP_CMD_BC_BP_MAINT_PC/SAP_CMD_BC_BP_DISP_PC (see Business Partner)

Custom CDS views

A custom CDS view inherits its protection exclusively from its primary data source (see Access Protection in Custom CDS Views)

See Also

2769193 - No Data in Custom CDS Views Preview

Keywords

Custom Logic, validation, not working, users, CDS View, Custom CDS View, Data Source, authorization, view, data source, main source , KBA , BC-SRV-APS-IAM , Identity and Access Management , BC-SRV-APS-GKE , Generic CDS Key User Editor , BC-SRV-APS-EXT-BL , Custom Business Logic , Problem

Product

SAP S/4HANA Cloud Public Edition all versions