Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Programmatically set (or change) the master role

Former Member
0 Likes
1,215

Hi all.

Is there a way, maybe a function, to set the master role of a single role?

Fill the "Derive from role" field.

I mean, other than a direct UPDATE AGR_DEFINE .... which works, btw

I would prefer a "lawful" method.

Any hint?

As an alternative also the creation of a new role with the master role set.

My current method is to create the roles via PRGN_RFC_CREATE_ACTIVITY_GROUP and then use SECATT to set the master and do other things.

Thank you

1 ACCEPTED SOLUTION
Read only

michael_kozlowski
Active Contributor
0 Likes
961

Check FM S_AUTH_CREATE_AGR whether it fulfills your requirement.

4 REPLIES 4
Read only

michael_kozlowski
Active Contributor
0 Likes
962

Check FM S_AUTH_CREATE_AGR whether it fulfills your requirement.

Read only

0 Likes
961

Great ... it works!

Thank you

Read only

Former Member
0 Likes
961

Great ... it works!

Thank you

Read only

0 Likes
961

Hi again.

Yes it works but..... I was too fast in the test.

It seems that the function creates a new role.

In other words if I execute the function against role XXX which was created before (with texts, profile generated, etc) and then I execute S_AUTH_CREATE_AGR, the result is a NEW role with the same name, with the parent role assigned but without all the features previously set.

Any further hint?

Thank you

Lorenzo