cancel
Showing results for 
Search instead for 
Did you mean: 

Is SSO support in Portal - R3 backend ?

Former Member
0 Kudos

Hi all:

I would like to use jsp/servlet instead of webdynpro to write one application to connect to backend R/3 backend.

Is it supported in EP 7.0 ? How to init this JCO connection ?

Accepted Solutions (1)

Accepted Solutions (1)

prashil
Advisor
Advisor
0 Kudos

Hi Jianhong,

Yes, you can write JSP/Servlet to connect to R/3.

Moreover, the only way to communicate with the R/3 is through RFC enabled function module.

You need to create a JCO object from the default connection factory and pass the parameter like client name, hostname, userid, pwd. language.

Here is the example:

JCO.Client mConnection;

JCO.Repository mRepository;

JCO.Function function;

mConnection = JCO.createClient(client, userid, pwd, lang,hostname, systemID);

mConnection.connect();

Hope this clarify your query.

Regards,

Prashil

null

Former Member
0 Kudos

Thanks, Prashil

But I need to connect to backend R/3 system using SSO Logon ticket from jsp.

How can I use this SSO to backend , through JCO ?

former_member182374
Active Contributor
0 Kudos

Hi jianhong gu,

For using SSO you need to use the line:

mConnection = JCO.createClient(client, userid, pwd, lang,hostname, systemID); 

where userid is $MYSAPSSO2$ (hardcoded) and pwd is the the mysapsso2 cookie (you get it by grabbing the cookies through the request object).

Also, the portal certificate should be imported to the backend (like in any SSO configuration).

Regards,

Omri

Answers (3)

Answers (3)

Former Member
0 Kudos

It works, thanks a lot

Former Member
0 Kudos

Hi Sir:

When I write code like following:

JCO.Client jcoclient =

JCO.createClient(

"110",

"MYSAPSSO2",

mysapcookievalue,

"zh",

"cnhost002",

"02" );

jcoclient.connect();

mysapcookievalue is the cookie value,

I meet this error:

ISUser SAPSYS has no RFC authorization for function group SYST.[Ljava.lang.StackTraceElement;@758b758b

If I write one certain username and password, the jco can be connected without any problems.

Former Member
0 Kudos

I will try it.

Thanks