cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI call with JCO too slow

Former Member
0 Kudos

Hello everybody,

I have an application which a call a BAPI in an ECC System. This BAPI is a specific one, and it is developed in Batch input to create a Billing document from a sales order.

This call take too much time and my java program don't wait for the answer of it. I have done some performance check on the program and this call take more of 1 minutes to finish.

Here is my program :

//-Fill the entry parameter-

//Import parameter

paramImport = function.getImportParameterList();

paramImport.setValue(SalesOrder, Constants.IV_VBELN);

//Define Export parameter list for the returning Data

paramExport = function.getExportParameterList();

//Execute the BAPI

client.execute(function.getName(), paramImport, paramExport);

The fact it is developped in Batch input could be a problem ? Tell me if there is a solution to speed up the process or to say to my java program to wait until the answer of the BAPI.

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

p330068
Active Contributor
0 Kudos

Hi

Please check this [BLOG|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/5003] for analysing your Web Dynpro for Java Application.

For your specific JCO slowness : Please check the following things :-

> Network connectivities

> IP and Host name entries maintainted in host file(Start>RUN>drivers>etc>host) or not.

>Check SLD (http://host:port/sld) and SLD DATA Suppiler (in Visual Administrator)..Check the status and parameters are currectly maintainted or not

Hope this will helps you.

Thanks

Arun

Former Member
0 Kudos

Hello Sir,

I am a student who is pursuing a project that deals with JCo 3.

I read your question on the forum and think that you have done the JCo stuff and can answer my questions.

Kindly, try to shed some light on following question:

Q1: I simply want to start with connecting my SAP system. I have a user ID and password for the same.

I saw some examples where they use "JCo.createClient(....)" and "JCo.client.connect()" to simply connect the client but

when I type in the code it shows me an error, because they are using package "com.sap.mw.jco" but since I am using JCo3,

I don't have that package instead I have "com.sap.conn.jco" which do not have createClient function.

Q2: By setting the classpath for "sapjco.jar" I was able to compile one of the sample programs but could not run it. Do you

know how to run the SAP JCo program.

Your guidance will be highly appreciated

-Thanks

-Dmukhi

Former Member
0 Kudos

Nobody have an answer???

It's really important for me please?

Former Member
0 Kudos

Hi,

Try this

http://www.sap2048.com/rfc-adapter-wait-during-call-to-bapi_transaction_commit-96.htm

handle the bulk input activities in the R/3 and get the final output in java.

Priya