cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

RAP Managed - Show/Hide standard buttons

dev_logan
Explorer
0 Likes
4,530

In RAP Managed scenario,  is it possible to control CREATE, EDIT and DELETE buttons based on User Authorizations?

Depending on the User authorization, the standard buttons should be visible or hidden.

Accepted Solutions (1)

Accepted Solutions (1)

lars_kr
Participant

Hello,

Yes, that is possible. First, you need the authorization master in your behaviour definition.

authorization master ( global, instance )

Global is required for the create operation and instance for update and delete. In your behavior definition, you can specify it as follows for the standard operations.

create (features : global);
update (features : instance);
delete (features : instance);

For the create operation, you can then implement the authorization query in the “get_global_authorizations” method.

I hope I was able to help you

Further Information:

Blog 

regards

Lars

 

 

dev_logan
Explorer
0 Likes

Hi Lars,

Thanks for the response. It helped. Accepting as Solution.

Answers (1)

Answers (1)

0 Likes
READ ENTITIES OF zre_determination IN LOCAL MODE
ENTITY deter
ALL FIELDS
WITH CORRESPONDING #( keys )
RESULT DATA(entities).

result = VALUE #( FOR entity IN entities
( %tky = entity-%tky
%update = COND #( WHEN entity-Description IS INITIAL
THEN if_abap_behv=>fc-o-disabled
ELSE if_abap_behv=>fc-o-enabled ) ) ).