cancel
Showing results for 
Search instead for 
Did you mean: 

Connection with SAP NetWeaver

Former Member
0 Kudos

Hi All,

I am very new for SAP. I just want to know is there java API's to connect NetWeaver.

Let me explan it more I want to create user in NetWeaver Portal without login just by java API's. For that i need to connect with portal. Is there any way to connect it?

Thanx

Shant

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Shanth,

You can create a WebDynpro Project, add the com.security.api.jar in its build path and write the following code in the iView or controllers init() method:

String userId= "ABC"

IUserMaint newUser = null;

try {

//Create User

newUser = UMFactory.getUserFactory().newUser(userId);

//Create User Account

IUserAccount uacc = UMFactory.getUserAccountFactory().newUserAccount(userId, newUser.getUniqueID());

uacc.setPassword("XXXXX");

uacc.setPasswordChangeRequired(true);

uacc.save();

uacc.commit();

}

catch(Exception e)

{

e.getmessage();

}

save the project, create an application for the project and deploy it on the Enterprise Portal server you want to create the user on.

If you have any more queries feel free to ask.

Regards,

Seema Rane.

P.S. Please reward points if reply found helpful.

former_member698570
Active Participant
0 Kudos

Hi,

you can use the J2EE UME API to access the User Store used by the portal. But this only works in Context of the underlying J2EE. This means that you will have to call a component that is actually deployed on the j2ee. You can than call this component from "outside" (http). This component can be an enterprise application (running on j2ee) or portal component (running in portal) but it could also be a WebService invoked from outside.

Here are some links concerning UME

http://help.sap.com/saphelp_nw70/helpdata/EN/7d/003c41325fa831e10000000a1550b0/frameset.htm

http://help.sap.com/saphelp_nw70/helpdata/EN/5b/5d2706ebc04e4d98036f2e1dcfd47d/frameset.htm

Hope this helps

Cheers