Symptom
Even after restricting Plants in the "Maintain Business Roles" app, when creating a Sales Order, the user is still able to view/swap plants.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Go to "Maintain Business roles"
- Search for your CB User
- Go to "Business catalogs" and there select the Sales - Sales Order Processing - SAP_SD_BC_SO_PROC_MC
- Click in "Restrictions types" and search for "Plant", you can see how the table looks below.
Restriction TypeWriteReadValue HelpRestriction Type StatusField NameField DescriptionPlantWERKS Plant - Now, even if you restrict the "Plant" field, from the Sales and Distribution perspective, the information from the field WERKS will still be available,
Cause
The CDS for plant search help is C_SalesDocumentItemPlantVH, it is with @AccessControl.authorizationCheck: #NOT_REQUIRED, this means there is no authorization check on the search help, in this case, the intersection of below two sets will return:
- The plant of the material (stored in the field name MARC)
- Allowed plant of the sales area (stored in the field name TVKWZ)
This is why, even after restricting the field in the steps above, when you create a new Sales Order, other plants will show in the search help and you will be able to swap the plant as well.
Resolution
At the moment, this is considered a new feature request.
Submit this requirement as a feature request through the Customer Influence Portal under the session SAP S/4HANA Cloud for Sales.
See Also
- KBA 2963059 - How to Submit Feature Requests for SAP S/4HANA Cloud Product
Keywords
plant, sales, restriction, access, swap, view, Sales Order, , KBA , SD-SLS-SO-MO-2CL , Make-to-order, assembly order (Public Cloud) , Problem
SAP Knowledge Base Article - Public