cancel
Showing results for 
Search instead for 
Did you mean: 

bapi_document_checkoutview2 extremely slow

Former Member
0 Kudos

Hi,

when I call bapi_document_checkoutview2 it is extremely slow. It needs >= 60s for a 32KB File.

My Code extract is:

function = this.createFunction("BAPI_DOCUMENT_CHECKOUTVIEW2");

function.getImportParameterList().

setValue("DSORG12345", "DOCUMENTNUMBER");

function.getImportParameterList().

setValue("001", "DOCUMENTPART");

function.getImportParameterList().

setValue("DRW", "DOCUMENTTYPE");

function.getImportParameterList().setValue("00", "DOCUMENTVERSION");

function.getImportParameterList().setValue("C:
TEMP
", "ORIGINALPATH");

JCO.setMiddlewareProperty("jco.middleware.allow_start_of_programs","sapftp");

System.out.println(new Date());

mConnection.execute(function);

System.out.println(new Date());

Can anyone help me to increase the performance?

Regards,

Michael

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Have you tried using the Throughput functionality in JCo? That shows you exactly how much time your side (the JCo application) took to manage the data and when you substract that time from the total time, you get the time which the SAP System took to process the request.

If the SAP System takes up most of the time to process the request, your program is in the clear

T00th

Former Member
0 Kudos

we are experiencing similar performance issues doing basically just this, does anyone have any suggestions?