cancel
Showing results for 
Search instead for 
Did you mean: 

Adding custom attributes to UME user

Former Member
0 Kudos

I have created a UME user using the code listed here.

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/createandeditEPuserwithJava+cod

For e.g. i have an attribute, BusinessPartner, associated with the user.

How can i add it to the user information?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
Former Member
0 Kudos

If i created the custom attribute.

How can i get and set the attribute in the java code?

Former Member
0 Kudos

Please go through this link. I think this one is more appropriate as per your requirement:

http://help.sap.com/saphelp_nw2004s/helpdata/en/44/0316d50bbe025ce10000000a1553f7/content.htm

Former Member
0 Kudos

I have actually set some attribute using this code.

userMaint.setAttribute("MyNamespace", "MyAttribute", "12345");

and i can retrieve it using

String[] myString = epUser.getAttribute("MyNamespace", "MyAttribute");

for (int i = 0; i < myString.length; i++) {

messageMgr.reportSuccess("MyAttribute is: "+myString<i>);

}

I did not do any settings in the portal or what.

So what is the disadvantage of this solution?

Answers (0)