cancel
Showing results for 
Search instead for 
Did you mean: 

JCO.SERVER could not find the server function

Former Member
0 Kudos

Hi,

I am calling "BAPI_COMPANY_GETDETAIL".thuough the zprogram"ZBAPI_COMPANY_GETDETAIL"

REPORT ZBAPI_COMPANY_GETDETAIL.

DATA:BEGIN OF ITAB,

RCOMP LIKE T880-RCOMP,

END OF ITAB.

ITAB-RCOMP = 99999.

CALL FUNCTION 'BAPI_COMPANY_GETDETAIL'

EXPORTING

COMPANYID = ITAB.

  • IMPORTING

  • COMPANY_DETAIL =

  • RETURN =

.

The Details I Gave......

In SM59 of R/3:

PROGRAMID:LCRSAPRFC_PIT

GATEWAYHOST:PITEST

GATEWAYSERVICE:sapgw01

Tested the connection and it is running

ID:

In Communication Channel.

Application server (Gateway):PITEST

Application server Service (Gateway):

PROGRAMID:LCRSAPRFC_PIT

RFC Metadata Repository parameter.

ip of XI Server

System No Xi System NO

username

pwd

In SM58 I find the Following error.

"JCO.SERVER could not find the server function BAPI_COMPANY_GETDETAIL.

I Tested RFC ADAPTOR in RWG and it is ok.

I do not Understand where the problem is.

Please clarify.

Thanks,

Srinivasa

Accepted Solutions (0)

Answers (1)

Answers (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

You have not mentioned if it is a Sender RFC or Receiver RFC.

From your configuration it lookslike you are using a Sender RFC adapter.

1. The Gateway Host and Gateway Service in the TCP IP Connection should actually point to the Gateway host and service values of the R3 system itself.

Go to tcode - SMICM --> Go to --> Parameters --> Display and this will giev you the values for the same. Check if they are correct.

2. Make sure you have COMMIT in your RFC report.

Regards

Bhavesh

Former Member
0 Kudos

Thanks for the reply,

Yes RFC is in the Sender side.

I am calling "BAPI_COMPANY_GETDETAIL".thuough the zprogram"ZBAPI_COMPANY_GETDETAIL"

REPORT ZBAPI_COMPANY_GETDETAIL.

DATA:BEGIN OF ITAB,

RCOMP LIKE T880-RCOMP,

END OF ITAB.

ITAB-RCOMP = 99999.

CALL FUNCTION 'BAPI_COMPANY_GETDETAIL'

EXPORTING

COMPANYID = ITAB.

  • IMPORTING

  • COMPANY_DETAIL =

  • RETURN =

.

The Details I Gave......

In SM59 of R/3:

PROGRAMID:LCRSAPRFC_PIT

GATEWAYHOST:PITEST(XI system name)

GATEWAYSERVICE:sapgw01

Tested the connection and it is running

ID:

In Communication Channel.

Application server (Gateway):PITEST(XI system name)

Application server Service (Gateway):

PROGRAMID:LCRSAPRFC_PIT

RFC Metadata Repository parameter.

ip of XI Server

System No Xi System NO

username

pwd

In SM58 I find the Following error.

"JCO.SERVER could not find the server function BAPI_COMPANY_GETDETAIL.

I Tested RFC ADAPTOR in RWG and it is ok.

I do not Understand where the problem is.

These is what I gave,

bhavesh_kantilal
Active Contributor
0 Kudos

<i>PROGRAMID:LCRSAPRFC_PIT

GATEWAYHOST:<b>PITEST(XI system name)</b>

GATEWAYSERVICE:sapgw01</i>

Exactly what I mentioned in my previous reply. Gateway Host and Service will be the R3 's host and service itself.

<b>SMGW -> Goto-> Parameters -> Display</b>

Use the same Program ID used here in the Sender RFC adapter in XI.

Regards

Bhavesh