cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

Hi,

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

User - KRAORANE

Status - CONNECTED

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.

-Kiran

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Please see the below links..

/people/kathirvel.balakrishnan2/blog/2005/07/26/remote-enable-your-rfchosttoip-to-return-host-ip-to-jco

http://help.sap.com/saphelp_nw04/helpdata/en/47/80f671ee6e4b41b63c0fe46bd6e4f8/content.htm

http://www.sapgenie.com/faq/jco.htm

Regards

Chilla..

Former Member
0 Kudos

hi

Refer these threads

Regards,

Tanveer.

Former Member
0 Kudos

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.

hth

Torsten