cancel
Showing results for 
Search instead for 
Did you mean: 

JCO Programing

Former Member
0 Kudos

Hi alll,

please help us in resolving the Error with Jco ........

Even though we have given correct username and Password we are getting Error.

Error is as Below:

RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed,

Connect_PM GWHOST=http://ciber:8000/sap/bc/gui/sap/its/webgui, GWSERV=sapgw00, ASHOST=http://ciber:8000/sap/bc/gui/sap/its/webgui, SYSNR=00

LOCATION CPIC (TCP/IP) on local host

ERROR hostname 'http://ciber:8000/sap/bc/gui/sap/its/webgui' unknown

Code related to the above Error is ................

JCO.Pool Pool = JCO.getClientPoolManager().getPool(pool_Name);

JCO.Client mconnection;

if(Pool == null)

{

System.out.println("1");

JCO.addClientPool(pool_Name,10,"100","USER","password","EN","http://ciber:8000/sap/bc/gui/sap/its/webgui","00");

System.out.println("2");

mconnection = JCO.getClient(pool_Name);

System.out.println("3");

System.out.println(mconnection.getAttributes());

}

Waiting for the reply

Thanks and Regards,

Preethi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi preethi,

from the logs, it says that the SAP gateway is failing.

it seems that you are specifying a wrong host name.

"http://ciber:8000/sap/bc/gui/sap/its/webgui"

>JCO.addClientPool(pool_Name,10,"100","USER","password","EN",

>"<b>http://ciber:8000/sap/bc/gui/sap/its/webgui</b>","00");

try changing this to your ASHostName.

regards

jo

Former Member
0 Kudos

hi jo....

Thanks for your Quick reply,

As u can test, the address what i have given "directly connects to my SAP ABAP System".

if it is Still wrong, heartly welcome for your reply.

Thanks and Regards

Preethi

Former Member
0 Kudos

hello preethi,

had you tried specifying the host name of the SAP

application server rather the URL "http://ciber:8000/sap/bc/gui/sap/its/webgui"?

regards

jo

Former Member
0 Kudos

Hi Jo....

Thanks for your Reply and its working Fine..........

Regards

Preethi

Former Member
0 Kudos

HI jo,,,

one more info i need from you....

i am getting Error as:

"RFC_ERROR_SYSTEM_FAILURE: Syntax error in program SAPLZLBSGROUP".

What might be the Problem.......

Thanks and Regards

Preethi

Former Member
0 Kudos

hello preethi,

check on the program SAPLZLBSGROUP; it might have some

syntax related errors as described by the message.

try looking at ST22 dumps or your JCO trace files.

you will be able to get some hints what went wrong.

regards

jo

Former Member
0 Kudos

Hi jo..

Thanks For your suggestions,

its Running fine,

it was a gr8 help...............

Regards

Preethi

Answers (0)