BAPI call with JCO too slow

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.

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

Similar Messages

  • Newbie with "disk too slow" issues

    Hi folks,
    TOTAL newbie (Mac newbie, audio newbie) here, up front disclaimer. I've just been trying to play the "Numbers Game" demo project in Logic Pro on my new MacBook Pro and I'm getting the "disk too slow" message (error 10010)...This is a 2.66 GHz MacBook with 4GB of RAM. I'm just using the internal drive (500 GB, 5400 RPM)...The system is new, so it's clean.
    All my software is up to date...Logic Pro is 9.1.2. The same thing happens in 32 or 64 bit mode, at the same spot in the playback (about 41 seconds in).
    I've read various threads here regarding this message and have tried some of the suggestions (like disabling the Airport). I've tried both extremes (32 and 1024) on the disk buffer size, etc...
    Like I said, total newbie so I'm probably doing something stupid. Has anyone else had this particular issue? I notice this demo project is rather complex...so maybe it really is overloading the system?
    Thanks in advance for any suggestions.
    Will

    Nope, not trying to play from the optical... I'm not quite that much of a newbie.
    Never hurts to ask
    BTW, if you hit that spot and get the overload message, and then start playback over again from the beginning, will it play back the project without incident? If so, you've run across one of the longtime and well documented issues of Logic. Once you play through that first time around, you're good to go.
    If it's doing it every time you playback the project even if you haven't closed Logic, then it is indeed bogging down your system. Fuzzy is right, you'll have better performance if you put the project and its contents on an external drive. Also, if you have a Unibody MBP, the HD's are super easy to swap out. Mine came with a 500GB 5400RPM drive, and I put in a 500GB 7200 speed drive, and it makes a HUGE difference. The original drive is in an external enclosure that I use for a back-up. It's a very nice set-up.
    Good Luck!

  • First webservice call with UTL_HTTP is slow

    Hi,
    When i do several webservice calls with the utl_http methods, the first webservice call takes a lot of time (sometimes more than 10-20 seconds). Every other webservice call (after this one) goes very fast (not even a second).
    Any ideas to make that first call faster?
    Thx.

    Davy wrote:
    When i do several webservice calls with the utl_http methods, the first webservice call takes a lot of time (sometimes more than 10-20 seconds). Every other webservice call (after this one) goes very fast (not even a second).Don't see how this is an Oracle problem.
    Oracle creates a tcp socket and makes a socket call using the http application protocol. If this is slow, then there is either a performance issue at networking level, or a performance issue at the remote server that accepts and services the tcp connection.
    Network level - as Sybrand mentioned, it can be DNS related. You make the call using a hostname. That hostname needs to be resolved into an IP address. The network layer is slow (because of a problematic DNS server for example) to resolve that hostname into an IP address. Similar thing can be happening on the web server side. Reverse DNS lookup is used to determine what the hostname of the Oracle server is, using the IP address of the incoming connection.
    The web server/service can be slow - the 1st request may make a lot of physical I/O calls. The kernel buffers the data. Subsequent I/O from this web service servicing new calls finds the data in the file cache via must faster logical I/O.
    So you need to isolate and monitor these layers, the network and the web server, to determine what the reason is for the 1st call to be seemingly slow and subsequent calls not.

  • Problem with 5800, call processing is too slow.

    i have a problem with rejecting calls and recieving as well as dialling. it takes to much time to process. when a caller calls me they hear the dial tone for about 5 seconds then i get the call on my phone.. when i use third party software for automatic rejecting calls, the caller hears the dialtone for like 10 seconds or more then it gets rejected which is really annoying. please help me. is there a solution for this? this is not the network problem coz my sim n rejecting calls on other phones work fine. AND ALSO wen someone calls me i get the call alert like after 10 seconds, its very slow!!

    Make sure you have upgraded to 1.1.1 which fixes volume problems.
    Note that it will NEVER be as loud as standard cell phones but it should improve the volume so you have no problem hearing it in the car.

  • Bapi Call using JCO

    Hi all,
    Please share your views on the below scenario:
    A WD Java app, deployed on WAS and an iView created in portal, is calling a BAPI and works fine when assigned to the role.
    Now the same application when viewed directly using
    http://<host>:<port>/webdynpro/dispatcher/local/<appname> does not execute the bapi and gives
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Error connecting using JCO.Client: null
    The JCO are using a service user to connect to the backend, so SSO still exist.
    Let me know what we could be doing wrong here.
    Meanwhile I can check the connection pool to see the property value.
    Thanks for your time
    Avinash

    Hi Prashant
    Thanks for your quick response.
    The application when accessed directly does not ask for user id/password.
    If I set the application property 'authentication' as true, would this authentication be done against UME?
    Also since there is no "SSO using logon tickets" why is there a need for issuing a logon ticket?
    I will try what you suggested in the earlier post.
    Thanks
    Avinash

  • BAPI call with Business Connector

    Hi all,
    we encountered the problem, that a business connector call to a BAPI with all return parameters and tables set to "opitonal" will deliver no result.
    Has anyone expirienced the same ? Any solutions ?
    Thanks
    Elko

    Thanks,
    i allready thought of solution 1. If we use a standard BAPI, I can create a wrapper BAPI, that just calls the standard BAPI and unceck the attribute "optional" in interface description.
    But i am not really sure what you mean with solution to. Could you please explain in more detail.
    Elko

  • Initializing Vector with ResultSet(too Slow!)

    Hi
    I'm createing a JTable with two Vectors. Im am initializing the Vectors in a while loop, but it is way to slow with large ResultSets.
    Does anyone know how I can speed this process up?
    Thanks!

    Heres the full method Ive removed some of hte code in the for loop. But that makes no difference to the speed
    private Vector getData(int columns[]) throws Exception
         rows = new Vector(queue.count);
         while (res.next())
                 Vector newRow = new Vector(columns.length);
              for (int i = 0; i < columns.length; i++)
                 newRow.addElement(res.getString(columns));     
    rows.addElement(newRow);
    return rows;

  • Big problem with keyboard, too slow because of IOS 7.1

    When I press a letter in the virtual keyboard or aloso with a bluetooth keyboard, the letter appear 12 seconds after !!!
    Please do an update, I can't use my iPad anymore with a slow keyboard.
    I have all these problems since I updated to 7.1.
    Cordialy,

    This is what finally worked for me:
    Settings -> Mail, Contacts, Calendars -> select your gmail account and toggle OFF Contacts.
    I completely erased my iphone and started over and as soon as I added my gmail account the clean install had the same problem. was finally able to narrow it down to the contacts, so now at least I get my email, I just have NO contacts on my phone or ipad now.
    Apple broke it, Apple needs to fix it... ASAP!!!

  • T61p with vista - too slow

    Hi I have a T61p with vista that has sat under my desk mostly unused for 6 months because while it is technically the fastest and most powerful computer i have ever owned it is the slowest most frustrating and annoying piece of rubbish i have ever bought.  It is faster for me to surf the web with my 5 year old ibm thinkpad than this new machine and it becomes completely paralysed every time there is a software update forcing a reboot rather than being able to be used and having the updates delayed.  Why has lenovo installed vista?  or at least why has lenovo installed it in the lowest performance configuration.  think i'll get a mac instead.  at least they switch in within a few seconds of hitting the power key rather than a few minutes.  ibm/lenova/microsoft just lost a customer.

    jediflan wrote:
    Hi I have a T61p with vista that has sat under my desk mostly unused for 6 months because while it is technically the fastest and most powerful computer i have ever owned it is the slowest most frustrating and annoying piece of rubbish i have ever bought.  It is faster for me to surf the web with my 5 year old ibm thinkpad than this new machine and it becomes completely paralysed every time there is a software update forcing a reboot rather than being able to be used and having the updates delayed.  Why has lenovo installed vista?  or at least why has lenovo installed it in the lowest performance configuration.  think i'll get a mac instead.  at least they switch in within a few seconds of hitting the power key rather than a few minutes.  ibm/lenova/microsoft just lost a customer.
     Hi.  What are the specs of your T61p?  I've had mine since July this year and I haven't had any problems with the machine running Vista Ultimate 32-bit.
    Message Edited by ed_h on 09-30-2008 08:14 PM
    Lenovo Thinkpad T61p
    C2 Duo T9300 (2.5GHz 800MHz) | 3GB DDR2 SDRAM | Vista Ultimate 32-bit | 15.4 WSXGA+ LG | Chicony | nVIDIA Quadro FX 570M 256MB | 200GB | DVD Recordable (Dual Layer) | Bluetooth | Fingerprint | 9 Cell Lithium-Ion

  • VISA serial port communication – communication with device too slow

    I am having some trouble with using VISA to communicate with a serial device. I am trying to control an advanced illumination line light. The attached program writes information to it just fine, nothing fancy there. However it seems that if I try to update any faster than about 300mS the line light controller will not properly receive the information and does not adjust the light. The device came with a simple program to control it which can update faster than 100mS. Any suggestions for faster updates?
    Thanks,
    Rob   
    Attachments:
    line light control.vi ‏55 KB

    Looks like this will be a rather useful program...
    I ran the program and the results are in the attached files. 250mS.txt is of course running the LabVIEW application with a 250mS wait and 350mS.txt is using 350mS. As can be seen from the files everything returns a success each time, however the line light does not properly adjust its self when I use 250mS.
    Attachments:
    250mS.txt ‏7 KB
    350mS.txt ‏5 KB

  • Issue in BAPI- BAPI_PBSRVAPS_GETDETAIL2 with custom default macro in SNP

    Hi Experts,
    System Details:
    SCM 5.0
    SP Pack: 13
    SNP PA1- No Time series Key figures, only order series
    SNP PA3: With time series KF, which also included dynamic safety stock time series KFs
    We have created custom macro ZGSCM_SAFETY_STOCK copy
    of /SAPAPO/SAFETY_CALC where we used BAPI- BAPI_PBSRVAPS_GETDETAIL2 to
    get the dynamic safety stock values from PA3(Planning area3-Planning book3) to PA1(Planning area1-Planning book1). We are getting two issues while doing this as below:
    1) Issue we are facing is that when it goes to PA3, it actually save
    PA3 planning book for that user as a active planning book and return
    back with PA3-planning book. So to avoid this, we call same BAPI again
    where we are just calling PA1 planning book without any selection and It works fine and returns
    the safety stock values correctly. But now when we load multiple items and
    doing the drill down then we are getting an error message saying:
    Error reading planning objects (No SNP master data table found)
    Error reading data - Planning book cannot be processed further
    Do we have any other way to set the active session for user after BAPI call with in the program?
    2) Also it always call default macros when BAPI calls which we don't
    want, Is there any way we can avoid calling default macros while calling BAPI-BAPI_PBSRVAPS_GETDETAIL2
    Regards,
    Hitesh

    Hi,
    The first issue which you faced is becasue of the BAPI which tries to access all the Key Figurs of the data view from which you need to copy data. These KF might be used in different Macros & those macro's might be running for different periodicities.
    You can create separate data view the the same planning book & assign the KF to the newly created data view. Most probably, this will solve your problem & you wont get any error message.
    Incase the error message pops up, you need to create diffent planning book or planning area (based on your previous PA) & then try. This will definately solve problem which u had faced.
    Thanks!
    Jay

  • Built in click or clicktrack? Stability? "DIsk Too Slow"

    I've had a lot of issues with "disk too slow" messages while tracking through Amplitube or Waves SSL. And when I got these messages I've used the built in click/metronome (klopfgeist).
    But then I started using an audio clicktrack by bouncing out klopfgeist to a seperate audio track and then using that in the project. Thus NOT using the built in click. And since then I haven't got any "disk too slow" messages.
    I'm wondering if anyone else have experienced this, and if others could try this. I have now been running for half a day with several Amplitube tracks and NO "disk to slow" messages what so ever (know on wood).

    Try making a clicktrack using a different instrument (any EXS24 drumset using a sidestick or rimshot-like sound, for instance), see what happens. Klopfgeist is a Software Instrument, and if it drives your system into overload, it tells me that your setup is already close to overloading anyway. However, if it is the case that the Klopfgeist Instrument is drawing more CPU than the EXS24, something isn't right with Klopfgeist.
    I hardly ever use it, I just choose an appropriate (drum- or percussion-) loop to play along to.
    So what do the CPU meters indicate when you run your overloading projects with Klopfgeist bypassed? Big difference?
    I cannot "create" the issue because I do not have Amplitube. But if it is comparable to other Amp sims, they can be CPU hogs, depending on how heavily you use them and which parameters are active.

  • New iphone 6 with ios 8.0 crushed and didnt open again. call center told me that use itunes to update 8.0.2 but server is too slow and didnt let me download it. it stopts in the middle of the session. how can i download it from another link or server

    new iphone 6 with ios 8.0 crushed and didnt open again. call center told me that use itunes to update 8.0.2 but server is too slow and didnt let me download it. it stopts in the middle of the session. how can i download it from another link or server. by the way i try to dowload from turkey.

    anyone help me there? )=

  • LSMW with BAPI too slow

    Hi,
    I have created a LSMW project which reads an excel file of materials and creates WM views for them. It does this by using the SAVEDATA method of the business object BUS1001006.
    It works, but is too slow: about 35 sec for each material. After some debugging I found that most of this time was spent executing a COMMIT WORK in the function module TRANSACTION_END.
    Does anyone if it possible to speed this up?
    Slath

    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

  • I have downloades Logic Pro 9 onto my older modfel Mac Book Pro 1,1 with OS 10.6.8 and 2 GB RAM, according to the rquirements for Logic 9. the program should run, but it won't open. Is my configutation too slow?

    I have downloades Logic Pro 9 onto my older modfel Mac Book Pro 1,1 with OS 10.6.8 and 2 GB RAM, according to the rquirements for Logic 9. the program should run on OS 10.6.8. with 2 GB RAM, 4 GB better, but it won't open. Is my configutation too slow?

    Looks as if you're just at the minimum specs - http://www.apple.com/logicpro/specs/. Says 2GB minimum, 4GB recommended. And 2GB of RAM is all the RAM the 1,1 can handle. If I were you I would call Apple's App Store service center - you have the minimum requirements, as I read it, but perhaps you need a faster processor?
    I had a 1,1 but sold it when I bought my late 2011 in March of this year - maybe it's time to look at a new machine?
    Clinton

Maybe you are looking for

  • My keypad is not working at all!

    Hi, I recently purchased this 8320 bb and it was working perfectly. Suddenly, the keypad is completely dead! only the track ball is working and not the center click. I pulled off the battery and re-attached it. still the same problem exist. I took it

  • Cant find non the the iphoto, imovie, and the rest of the apps in that category that originally came with my macbook pro

    i purchaced my macbook pro a year a go and i had the iphoto, imovie, ilife, iwork. but the other day i mad some upgrades to my macbook, new rams and installed a 2nd SSD hard drive in place of the optical drive. it is used as a boot drive while keepin

  • Want to give your OSMF app some air time at Max?

    Howdy I'm going to be presenting the "Introduction to Adobe's Open Source Media Framework" session at Max along with Edwin. So two things: 1. If you're at Max next week, please stop by. Not so much for the content (if you are already monitoring this

  • Basic Documentation on GPIB DLL for Programmers

    Is there any basic overview of the correct way to initialize devices and communicate with them using the DLL calls directly? I have plenty of examples at it appears each has a different way of approaching opening, scanning for, or various other ways

  • Metadata changes not applied to all selected images

    I am having 2 problems. When I am in lightroom's library (3.5), I would like to change the time of capture for multiple photos, and apply keywords. However, when I perform either of those actions, the changes are only applied to the image shown in th