cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the displayname from a privilege after the assignment?

Former Member
0 Kudos

Hello,

my problem is that i must write back the displayname form a privilege after the assignment.

I create a "PasstoAscii"-Task with the values

AttributeValueRemarks
userid%MSKEYVALUE%The "userid" is the Person who is assigned the privilge.
technicalkdtrolename????The Displayname from the privilege.

If i try the Value %Displayname% i geht the Displayname from the User back and not the privilegename.

As i try the Issue from  %PRI:ROLE:%rep.$NAME%:%NAME%% i write back only "NAME"

So i don't know what can i do.

Thanks in  advance

Andreas

Accepted Solutions (0)

Answers (1)

Answers (1)

normann
Advisor
Advisor
0 Kudos

Hi Andreas,

in order to help you it would be interesting to know where/how you try that. Is it a job where you have an SQL query in a source tab or is it a provisioning task - and if it is a provisioning task, when do you call it?

Cheers

Norman

Former Member
0 Kudos

Hello Norman,

it is a provisioning Task.

At the Pictures you can see my call.

normann
Advisor
Advisor
0 Kudos

Hi Andreas,

in this case you have to use a script. With that script you receive the privilege the task got started fro and can get the displayname (or every other attribute) in that script.

The complicated part is to get the privilege, the task actually got started for. I would recommend you to copy the logic from another connector like ABAP.

Regards

Former Member
0 Kudos

Hello,

ok i found the script sap_core_getPendingPrivilegeName and called it with
$Function.sap_core_getPendingPrivilegeName(?????).

So how i get the Name from the script?

normann
Advisor
Advisor
0 Kudos

Hi Andreas,

easiest way is to call the script same way as in ABAP connector ($FUNCTION.sap_abap_getNameOfPendingPrivileges(%MSKEY%!!rep.$NAME%!!ROLE)$$) whereby I am not sure whether your privileges are called roles. But this script will provide you a | separated list of all privileges assigned for the current repository of the user.

Please consider to also copy the links to the other scripts in the pass since this script is calling other scripts.

Regards

Former Member
0 Kudos

Ok, if i try it, i get the error message from the execution log

"Pendig Object MSKEY: not-existing-mskey" and

"PrivilegeMSKEY: !Error:No such Attribute" and

"PrivilegeName: !Error: No such Attribute".

I copied the linked srcipts ( sap_core_getPendingPrivilegeName and sap_core_getPendingPrivilege) in the pass, too.

If i call the SQL-DB so i can see the privilege i want and i see the MSKEY from the privilege.

normann
Advisor
Advisor
0 Kudos

Hi Andreas,

can you share screenshots of source and destination tab of your To ASCII file pass?

Regards