on 05-02-2007 1:47 PM
Dear All,
did somebody solved the problem with JCO Exception Nr. 120? What does it mean exactly? I call a JCO Server with a function from SAP and i receive the following error:
2007-05-02 14:32:03,781 INFO [STDOUT] Exception in Server JavaServer:
com.sap.mw.jco.JCO$Exception: (120) JCO_: JCO.Server could not find server function 'SERVER_SIGN'
2007-05-02 14:32:03,781 ERROR [STDERR] com.sap.mw.jco.JCO$Exception: (120) JCO_: JCO.Server could not find server function 'SERVER_SIGN'
2007-05-02 14:32:03,781 ERROR [STDERR] at com.sap.mw.jco.rfc.MiddlewareRFC$Server.nativeListen(Native Method)
2007-05-02 14:32:03,781 ERROR [STDERR] at com.sap.mw.jco.rfc.MiddlewareRFC$Server.listen(MiddlewareRFC.java:1395)
2007-05-02 14:32:03,781 ERROR [STDERR] at com.sap.mw.jco.JCO$Server.listen(JCO.java:7067)
2007-05-02 14:32:03,781 ERROR [STDERR] at com.sap.mw.jco.JCO$Server.run(JCO.java:6996)
2007-05-02 14:32:03,781 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
The function in SAP looks like this:
FUNCTION ZES3_SERVER_SIGN.
*"----
*" IMPORTING
*" REFERENCE(DOCUMENT) TYPE STRING
*" REFERENCE(DOC_TYPE) TYPE SSFTYPE
*" REFERENCE(DOSSIER_TITLE) TYPE STRING
*" REFERENCE(DOC_TITLE) TYPE STRING
*" REFERENCE(SIGNED_DOSSIER) TYPE STRING
*"----
DATA: s_cust TYPE zescust.
DATA: ret TYPE i,
l_docmim(30) VALUE 'application/msword',
l_signed(100) VALUE 'c:\Rfc\new2.es3'.
SELECT SINGLE * INTO s_cust FROM zescust WHERE sorcside = 'G'.
IF sy-subrc <> 0.
ret = -1.
EXIT.
ENDIF.
CONCATENATE 'application/' doc_type INTO l_docmim.
MOVE signed_dossier TO l_signed.
CALL FUNCTION 'SERVER_SIGN'
DESTINATION
s_cust-destination
EXPORTING
document = document
dossier_title = dossier_title
doc_title = doc_title
doc_mime = l_docmim
signed_dossier = l_signed
esigno_directory = s_cust-esdir
xadestype = s_cust-xades
tsurllist = s_cust-tsurllist
authlist = s_cust-authlist
revchk = s_cust-revchk
IMPORTING
return = ret.
Thanks in advance
hi,
is 'SERVER_SIGN' a host name of JCO server?
if yes then has the entry been done in host file
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Andras,
Sorry for my earlier post, It was mistake on my part. Neglect that post.
Well the thing is , your FM name is ZES3_SERVER_SIGN and not SERVER_SIGN(this is inturn getting called from ZES3_SERVER_SIGN ), so the Dynpro wont know SERVER_SIGN. So your JCO call should be to ZES3_SERVER_SIGN, and not SERVER_SIGN.
also make sure that they are Rmote enabled
hope it helps
regards
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.