cancel
Showing results for 
Search instead for 
Did you mean: 

MSKEYVALUE to MSKEY

Former Member
0 Kudos

Hi All,

I need mskey of a mskeyvalue via javascript. I have written below script to return MSKEYVALUE of MSKEY input. But I am unable to write MSKEYVALUE to MSKEY. Can anyone guide me? How I can modify the same function to return MSKEY?

function ECP_MSKEYfromMSKEYVALUE(Position)

  {

  var idStore = UserFunc.uGetIDStore();

      
if(idStore != 2)
  
{
         
uError("Cannot determine MSKEY for MSKEYVALUE " + Position + ";
function not run as part of a provisioning job");

          
return "";

    
}
 
var mcmsKey = "";

 
if(Position != null && Position != "")

{
      
mcmsKey = UserFunc.uIS_GetValue(Position, idStore, "MCMSKEY");

}
return mcmsKey;

Thanks,

Dhiman PAul.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dhiman,

Would this internal function do what you want:

http://help.sap.com/saphelp_nwidmic72/en/using_functions/internal_functions/dse_uis_get.htm

Regards,

Rannveig Østevik

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi All,

Yes, uIS_GetValue worked for me.

Thanks,

Dhiman PAul.

Steffi_Warnecke
Active Contributor
0 Kudos

Hello Dhiman,

you use uIS_GetValue. I think, you need uIS_sGet to get the mskey. You'll find the description in the IdM help.

Regards,

Steffi.

EDIT: Aaaand Rannveig came out of nowhere. What he said. ^^