cancel
Showing results for 
Search instead for 
Did you mean: 

User Defined MSKEYVALUE

Former Member
0 Kudos

Hi,

I am working on SAP NW IDM 7.1.

I had a small requirement, which says whenever we create a user, independent of the source from where the data is coming from,

the attribute MSKEYVALUE should be populated with User ID which is unique. I have written a script for generating unique User ID, using user's first name , middle name and last name.

Now I don't know how to assign it to MSKEYVALUE.

I refered many documents, and did according to whatever was specified, but it seems that the system is automatically populating MSKEYVALUE in the format

MX_%MSKEY% and not what I had assigned .

This is the link that I had referred

/people/matthew.pollicove/blog/2009/03/19/renaming-the-nw-idm-mskeyvalue-attribute

It would be really helpful, if anybody could help me with it.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thank you all.

My query is resolved. I just used one statement in my script :

"var value = uIS_SetValue(Par.get('MSKEY'), 1,'MSKEYVALUE',Par.get('UID'));"

and my issue was resolved

Edited by: Rashma M on Nov 4, 2009 4:45 AM

Former Member
0 Kudos

Hi,

What script you used?

Can you paste the script here so that we can have a look at that?

Regards

Sahad

Former Member
0 Kudos

I had used JScript for generating User Id, which is working fine, as it is populating unique value for User Id, everytime, even if the name is same for two different users.

But when i am using the script in To Generic Pass : Next Entry as specified in the above mentioned link, I am getting 2 errors saying :

org.mozilla.javascript.EvaluatorException: Invalid JavaScript value of type com.sap.idm.ic.DSEEntry

putNextEntry failed storing2151

And a warning saying :

Executing RenameEntry(2228 - {MSKEY=2228, UID=sharmaan}) got RuntimeException - org.mozilla.javascript.EvaluatorException: Invalid JavaScript value of type com.sap.idm.ic.DSEEntry HINT: Check line 2 in the script RenameEntry

Following is the script that I had included within To Generic Pass:

function RenameEntry(Par){

var mskey = uIS_nGetValues(Par,"MSKEY");

var uid = uIS_nGetValues(Par,"UID");

OutString = uIS_SetValue(mskey, 1 , 'MSKEYVALUE' ,uid);

OutString.ErrInfo = uGetErrorInfo();

}

Edited by: Rashma M on Oct 27, 2009 10:45 AM