cancel
Showing results for 
Search instead for 
Did you mean: 

Access context for embedded component.

danielepiazza
Explorer
0 Kudos

Dears,

we created a custom BO that is used as embedded component in Lead and Opportunity object.

What we want now to set the same access restriction used for the main Object (Lead or Opportunity) also for our custom embedded component.

Please note that we created just the BO and the embedded component.

Do you have any suggestions for us?

Best Regards,

Daniele

Accepted Solutions (1)

Accepted Solutions (1)

andy_blankley
Participant

Dear Daniele,

The scenario in which you could be seeking is by using an access context set for employee. The standard SAP Business Objects Lead and Opportunity follow the Access Context : 1015 - Employee, Territory, Account, Sales Data. for example.

You can view this in the Administrator work centre - Business Users (or roles) - Edit Access Restrictions > Access Restriction tab.

In general you do not model a custom BO access context off another BTD (business transactional document) BO. You would usually use the above mentioned contexts (please note there are other codes) as these are the master context control fir access, and BTD BO's will have an association to the Access Context Control node from the master BO's.

Access rights in the cloud solution are based on work center and work center views. For each view, an access context is predefined that defines for which business data administrators can restrict user access rights, for example, by company, site, sales, or employee. For example, if business users have access rights for a work center view but should only see company-specific data, you can define your business object so that it inherits the access control list (ACL) from an SAP business object that is assigned the company access context.

The following UI Components below are assigned to this, such as the OWL, QV, QC, TI are assigned to the work centre view (RBAM Data - Assigned Objects).

So, you ask how can this be achieved with a Custom Business Object and EC added to standard screen? A custom EC added to the screen will behave only as you have done the configurations in the SDK and UI Designer. Also, remember that when returning data to the EC from your custom BO, you are using a query with parameters in the UI Designer setup anyway. Hint: RBAM properties ;).

We have a brilliant guide on how to do this in our help documentation for the SAP Cloud Application Studio!

Links:

- Create Access Control.

https://help.sap.com/viewer/cbcebe3cfb1647a8b0322c18dbb0b481/1811/en-US/74fb943b73e21014b74aa0b48e27...

- Add Embedded Component to Floorplan:

https://help.sap.com/viewer/cbcebe3cfb1647a8b0322c18dbb0b481/1811/en-US/720e5a8f73e210149140b5fa11cb...

Hope this helps! If so, you can confirm this question as answered.

Kind regards,

Andy Blankley

Answers (0)