on 11-20-2007 2:52 AM
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 ?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
It works, thanks a lot
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I will try it.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.