Skip to Content
1
Jun 21, 2018 at 09:06 AM

Assign access control on custom OVS

817 Views Last edit Dec 05, 2018 at 01:32 PM 2 rev

Dear community,


I would like to assign an access context restriction on a custom OVS to restrict the access of a custom BO in an OVS (Object Value Selector)


The background is that we created a customer specific object that has an association to the product. The assocation is "RelevantForAccessControl". The user should only see the instances he is allowed to, based on the assigned sales data of the product. The Basic Scenario is similar to the one defined in this blog and I could also follow these steps to create an OWL with the same Access Control context as on the products OWL:

https://blogs.sap.com/2014/07/21/instance-based-access-control/
This works as expected: In the custom OWL the business users see only instances with an association to products they are also allowed to see!

The next step would be that we want to use an OVS on the opportunity to select the products based on our custom BO's query. In this OVS the user should see the same instances that are visible in the custom OWL, based on his Access Context.

The OVS is based on the same query as the OWL and I set the property "Access Control UI Component" for the ValueHelpQuery to my OWL.

Nevertheless the OVS always shows all instances of my custom Business Object and the Access Control is not applied.

Does anyone know if there are any more settings that I can do to enable the samé Access Control restrictions on my OVS as in the OWL?

Kind regards,

Christine