cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Logon ticket

Former Member
0 Kudos

Hi all!

Hi i have folowing issue: i have a WebDynpro Application. In an Iframe of this Application i want to load a java web application. This java web application use beans to cal RFC in R/3. I use the JCO destination of Webdynpro.

Can somebody give me a step by step guide to use Sap logon ticket. I think it is the best solution in my case.

At first i want to know how to get a from browser generated logon screen for my java web application using logon ticket.

Regards Waldemar.

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

Hi Waldemar,

Are J2EE web application and WD running on the same server? Actually SSO ticket generated by engine automaticaly by login, so mark your WD app as reuired authentication.

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Thanks for fast reply!

Yes both applications running on the same Server!

I try the issue now!

Regards!

Waldemar!

Answers (1)

Answers (1)

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Waldemar,

1. Logged in portal user name should have authorization to R/3 system otherwise do user mapping for the portal user with authorized R/3 user name.

2. Login to Content Administrator using Administrator rights.

http://localhost:50000/webdynpro/welcome/Welcome.jsp

3. Navigate to corresponding application and click on JCO connection tab.

4. Click on first interface Model Data (Application data).

Select the ticket option.

5. Click on Metadata interface.

Give the Service username and password of R/3 system.

Service user name of the Destination R/3 system: Administrator has to create these users.

Make sure service user has authorizations to corresponding system.

Let me know if you need more details.

Regards, Suresh KB

Former Member
0 Kudos

Hi Suresh

Thanks for Reply!

I created 2 destinations(Modeladata/Metadata)

Modeldata use ticket athentification.

Metadata use user and password authentification.

At the moment i'm at this point:

At EJB i want to get the JCO Connection. I do it with:

<i>IWDJCOClientConnection cc = WDSystemLandscape.getJCOClientConnection("Modeldata");</i>

When i use user and password in Modeldata of my JCO destination it works fine, but when i switch to ticket authentification i get a

WDSystemLandscapeException: Error while obtaining JCO connection.

How can i get this JCO.Destination?

Reagrds

Former Member
0 Kudos

Is it posible to get a JCO-Destination defined in WebDynpro Content Administrator which has a SSO ticket authentification.

Maybe i am on the wrong way!

I have allready lost much of time on this issue.

Maybe i should define one destination in J2EE Visual Administrator and use it for my J2EE web app. And define a second destination in WebDynpro content administrator which will be used for Webdynpro?

This is not the best solution, but it will work!

Anybody an Idea?

Regards!

Former Member
0 Kudos

I try folowing issue now -> it was not succesfull and i don't know why

I load a J2EE Web app in the Iframe of WebDynpro app. I must login to launch WebDynpro app!

In the J2EE app i create a JCO as follows:

String user="MYSAPSSO2";

String passwd="";

try{

Cookie[] my_cockies = request.getCookies();

Hashtable htbl = new Hashtable();

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

htbl.put(my_cockies.getName(),my_cockies.getValue());

}

passwd = (String)htbl.get("MYSAPSSO2");

}catch (Exception e){

passwd= "error";

}

JCO.Client cl = JCO.createClient("001",user,passwd,"DE",192.168.0.15","00","","")

cl.connect();

cl.ping();

cl.disconnect();

I start the WebDynpro application. After login i get folowing Exception:

com.sap.mw.jco.JCO$Exception: <b>User SAPSYS has no RFC authorization for function group SYST</b>

The exception occurs when JCO client try to connect.-->cl.connect();

I'm totaly confused!

Anybody an idea?

Regards

Former Member
0 Kudos

I solved it now it was a small stupid error!

I had used MYSAPSSO2 as user instead of $MYSAPSSO2$

Regards and nice Weekend!