Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

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

Tags:
replied

Hello,

this seems exactly like I expected. You have an other program registred with the same program ID. You need to look after this. It may be a test / development instance of your webmethods server, but it also maybe something else. Maybe you can ask some of your administrators, wether they know that what they have configured.

Alternative solution: You choose a different program ID for your webmethods server, and you try to create a new separate RFC destionation for it.

Regards,

Dezso

1 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question