Skip to Content
avatar image
Former Member

JCO.Server Error while trying to execute a RFC program from SAP


We are connecting to an external registered server program from SAP via Web Methods.

The external server program is registered with the SAP Gateway. We have created a TCP/IP RFC destination and are able to connect to the destination successfully via SM59.

An RFC function is created in SAP and is called using the syntax CALL FUNCTION "/NGN/BAPI_STRE_SEARCH_PROCESS" DESTINATION 'PRDB2B'. We have also handled the COMM_FALIURE and SYSTEM_FALIURE exceptions in the function call.

We are monitoring the gateway via SMGW and see a connection log to the RFC destination as below

Number - 10

LUname - dev01

TPName - sapgw00



Symbolic - PRDB2B

Conversation - 86520353

Prot - REG

SAP return code - 0

CPIC rtn code - 0

The external program returns results as expected.

However sometimes the RFC fails and returns the message “JCO.Server could not create server function /NGN/BAPI_STRE_SEARCH_PROCESS”.

We are not able to figure what exactly is causing this error. Any help will be highly appreciated.


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Apr 25, 2006 at 10:31 AM


    Refer these threads




    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Kiran,

      I assume the external program registers itself on one specific GW e.g. sapgw00. Make sure this gw and ther gw-server are also entered in the rfc-desitnation under gw-options. Otherwise the connection won't work when you try to call from a different system-id.



  • avatar image
    Former Member
    Feb 02, 2007 at 05:29 AM
    Add comment
    10|10000 characters needed characters exceeded