on 08-22-2007 2:04 PM
Hello everybody,
I have deployed a Java application (not WebDynpro) in the portal (EP 7.0) and I want to call a function module in the backend (xRPM 4.0) via RFC. I want to use SSO to connect Java application and backend. I already figured out how to grab LogonTicket from portal cookie to use it with JCO functions. As soon as i want to establish the JCO connection I get the following errors depending on how many times I try to connect:
1. No RFC authorization for function gruop SYST for user SAPSYS.
2. Connection closed without message (CM_NO_DATA_RECEIVED).
3. No valid trusted entry for the calling system.
Can anyone help me please?
Thanx in advance.
Rainer
Hi Rainer,
you have to use the user MYSAPSSO2 between "$" signs. For example, this way: "$MYSAPSSO2$" This is necessary for the SAP system to know, that this is a SSO user.
Please refer to the JCO class documentation and search for $MYSAPSSO2$.
The password could be the ticket content that you get from a SSO System.
Greetings,
Sigi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Sigi,
thanx a lot. It works perfectly.
Regards,
Rainer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rainer,
Logon Ticket is working fine. But only problem is the user SAPSYS does not have proper authorization to execute the function group SYST. The function modules which you are trying to execute are part of function group SYST. Contact your BASIS team to provide required authorizations for user in in backend.
Regards
Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abhilash,
thanks for your quick reply. The error already appears if I try to connect to the SAP-System via JCo -- accordingly before the invocation of the function module.
Maybe the code explains my problem a bit better.
Regards,
Rainer
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
JCO.Client jcoClient = null;
String user = "MYSAPSSO2";
String passwd="";
PrintWriter aWriter = response.getWriter();
try {
Cookie[] myCookies = request.getCookies();
Hashtable aHashtable = new Hashtable();
for(int i=0; i < myCookies.length;i++) {
aHashtable.put(myCookies<i>.getName),
URLDecoder.decode(myCookies<i>.getValue(),"UTF-8"));
aWriter.println("Name = ");
aWriter.print(myCookies<i>.getName());
aWriter.println("Wert = ");
aWriter.print(myCookies<i>.getValue());
}
passwd = (String) aHashtable.get(user);
// Verbindungsaufbau
aWriter.println("Attempt to establish connection");
jcoClient = JCO. createClient("910", user, passwd, "EN", "sapm0200.sbb.ch", "01");
jcoClient.connect();
aWriter.println("Connection established");
aWriter.println(jcoClient.getASHost());
jcoClient.disconnect();
}
catch (Exception e) {
aWriter.println(e.getMessage());
}
}
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.