Skip to Content
0
Jan 16, 2020 at 04:07 AM

Call BAPI from Non SAP to S4 HANA on Premise

149 Views

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_cache=true

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