cancel
Showing results for 
Search instead for 
Did you mean: 

Exception: (120) JCO_: JCO.Server could not find server function

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

abhijeet_mukkawar
Active Contributor
0 Kudos

hi,

is 'SERVER_SIGN' a host name of JCO server?

if yes then has the entry been done in host file

regards

Former Member
0 Kudos

Hi Abhijeet,

thank you for your reply. I've tried your solution but it didn' t help.

I renamed the function im ABAP code to BAPI_COMPANYCODE_GETLIST, and it worked. I have to check why the code with SERVER_SIGN didn' t work.

Thank you again.

Andras

abhijeet_mukkawar
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Ok, fine, i renamed SERVER_SIGN to ZES3_SERVER_SIGN and it works well.

Thank you for your help again.

Andras

abhijeet_mukkawar
Active Contributor
0 Kudos

Andras,

Congrats!!!!!! buddy

if my posts help you solve problem , please reward points for helpful answer.

regards

Former Member
0 Kudos

Of course, how can i do that?

Answers (0)