Skip to Content
author's profile photo Former Member
Former Member

bapi_document_checkoutview2 extremely slow

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

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 17, 2008 at 02:15 PM

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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2008 at 03:29 PM

    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

    Add comment
    10|10000 characters needed characters exceeded