Skip to Content

Assign access control on custom OVS

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jul 11, 2018 at 08:57 AM

    Hello Horst,

    it finally worked with SADL Query on the OVS and the setting "Access Control UI Component"!

    My problem was, that I did not use a SADL Query.

    Hope that helps someone else in future!

    Kind regards,

    Christine


    Add comment
    10|10000 characters needed characters exceeded

    • Hello Christine,

      could you describe a bit more in detail what you did to get it working? (i.E. how did you use/configure the SADL Querry)

      I'm facing the same issue but it doesn't work so far.

      Best Regards

      Tobias

  • Jun 22, 2018 at 09:25 AM

    Hello Christine,

    Is it possible to maintain a RBAM Context for the OVS similar to the one for the OWL?

    HTH,
    . Horst

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Christine,

      Sorry for overlooking your setting in the image (it was just too small :-( )

      As you can see from my snapshot that's the way we do it for our standard UIs.
      You may hint this in your incident.

      But else I don't know what else can be done.

      Sorry,
      . Horst