cancel
Showing results for 
Search instead for 
Did you mean: 

Call BAPI from Non SAP to S4 HANA on Premise

0 Kudos

Hi Friends,

We are calling BAPI from Non SAP, and referring below link, but the connectivity is not happened.

https://help.sap.com/doc/saphelp_470/4.7/en-US/76/4a42f4f16d11d1ad15080009b0fb56/content.htm?no_cach...

I have a doubt here, in the below code which is written in Non SAP, the connectinfo is 3 for RfcMode R3, but in out case it is S4 HANA on premise, do we need to change any thing here ?

//Connection information:

aConnectInfo = new ConnectInfo (

3, // int aRfcMode 3=R/3 or 2=R/2

null, // String aDestination

"9.7.12.7", // String aHostName YOUR HOSTNAME (e.g. IP-
//address)

0, // int aSystemNo YOUR SYSTEM-NUMBER

null, // String aGatewayHost

null, // String aGatewayService

null, // String aSystemName

null, // String aGroupName

null, // String aMsgServer

false, // Boolean isLoadBalancing

true); // Boolean isCheckAuthorization

//User information:

aUserInfo = new UserInfo (

"MUSTER", // String aUserName, YOUR USERID

"IDES", // String aPassword, YOUR PASSWORD

"800", // String aClient, YOUR CLIENT NUMBER

"e", // String aLanguage, YOUR PREFERRED
//LANGUAGE

1103); // int aCodePage YOUR REQUIRED CODEPAGE

Regards,

Nitin Garg

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member602690
Active Participant
0 Kudos

Hi Nitin,

1. In SAP Transaction Code SM59: Test RFC connection(s) to ensure they are working correctly

2. Though you wrote that you are using JOC connector, you should be using JCO connector (not JOC).

0 Kudos

Hi Joanna,

Thanks for your response. We have four RFC connections in SM59, and all are working fine. But how to ensure that which one is going to call via JCO Connector ?

I am sorry, it was typo mistake, i am using JCO connector and create it using below reference :-

//Connection information:

aConnectInfo = new ConnectInfo (

3, // int aRfcMode 3=R/3 or 2=R/2

null, // String aDestination

"9.7.12.7", // String aHostName YOUR HOSTNAME (e.g. IP-
//address)

0, // int aSystemNo YOUR SYSTEM-NUMBER

null, // String aGatewayHost

null, // String aGatewayService

null, // String aSystemName

null, // String aGroupName

null, // String aMsgServer

false, // Boolean isLoadBalancing

true); // Boolean isCheckAuthorization

//User information:

aUserInfo = new UserInfo (

"MUSTER", // String aUserName, YOUR USERID

"IDES", // String aPassword, YOUR PASSWORD

"800", // String aClient, YOUR CLIENT NUMBER

"e", // String aLanguage, YOUR PREFERRED
//LANGUAGE

1103); // int aCodePage YOUR REQUIRED CODEPAGE

0 Kudos
RAF
Active Contributor
0 Kudos

Hi,

wich connector you are using Jco?

https://support.sap.com/en/product/connectors/jco.html

RAF
Active Contributor
0 Kudos

Have you maintained the connection in SM59?

0 Kudos

Hi Robert,

Thanks for your response, Yes the RFC connection is already created, but i am not sure how it will called.

Like, there are many RFC connections in SM59, which is used for different objects and work,