on 05-13-2016 9:12 AM
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
Attribute | Value | Remarks |
---|---|---|
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.