on 04-21-2011 9:42 AM
Hi,
Im using SAP JCo 2.1.9 cause of JDK 4.1.2 on server for Sap NetWeaver 7.0
And seems I can't retrieve the value of an import parameter ...
I can set the value of a parameter but not get ...
It worked with 3.0.6
I tried the Demo Example5.java (static metadata with non-unicode layout) ... with this abap program
System.out.println("handleRequest(" + function.getName() + ")");
if (function.getName().equals("STFC_CONNECTION")) {
output.setValue(input.getString("REQUTEXT"),"ECHOTEXT");
output.setValue("This is a response from Example5.java","RESPTEXT");
System.out.println(input.getString("REQUTEXT"));
System.out.println(output.getString("RESPTEXT"));
}
Result :
handleRequest(STFC_CONNECTION)
This is a response from Example5.java
-
> blank for REQUTEXT
Thanks! Have tried this on windows Xp and with my linux server (same result)
DATA: REQUTEXT LIKE SY-LISEL,
RESPTEXT LIKE SY-LISEL,
ECHOTEXT LIKE SY-LISEL.
DATA: RFCDEST like rfcdes-rfcdest VALUE 'NONE'.
DATA: RFC_MESS(128).
REQUTEXT = 'HELLO WORLD'.
RFCDEST = 'OTRSJCO'. "corresponds to the destination name defined in the SM59
CALL FUNCTION 'STFC_CONNECTION'
DESTINATION RFCDEST
EXPORTING
REQUTEXT = REQUTEXT
IMPORTING
RESPTEXT = RESPTEXT
ECHOTEXT = ECHOTEXT
EXCEPTIONS
SYSTEM_FAILURE = 1 MESSAGE RFC_MESS
COMMUNICATION_FAILURE = 2 MESSAGE RFC_MESS.
IF SY-SUBRC NE 0.
WRITE: / 'Call STFC_CONNECTION SY-SUBRC = ', SY-SUBRC.
WRITE: / RFC_MESS.
ENDIF.
Thanks, I dont know where tofind support for this old version
is there any better version for JDK4 than 2.1.9 ?
Somoene tried it and it worked ? or not SAPJCo 2.1.9 on Windows XP.
please provide link sap jco 2.1.9 in linux
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm facing the exact same issue.
Does someone knows the answer ?
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 | |
10 | |
7 | |
6 | |
6 | |
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.