How can i measure BAPI runtime which has called from JAVA

Hi abapers
how can i get run time for BAPI called from JAVA through JCO.
i know that i can use SE30 from ABAP by executing from SAP.
may be ST05 useful for me i did it but when display trace
i am getting big list by seeing this list i am not able to find the runtime for that BAPI.
please any one can explain
reagdrs
ramesh

Hi Ramesh,
   Irrespective of whether the call is from an external system or within sap, the bapi will be executed in R/3 only.
So, you can safely measure the runtime using se30 only.
If it is taking more time when called from JCo , then you can be sure that the problem is not with SAP and is actually due to the JCo connectivity with R/3.
Regards,
Ravi

Similar Messages

  • How can i see the URL which has  length more than 255 chars in fucnction

    Hello Every body....
      I am facing one problem....I have a function module which returns URL in one table
      but in the function module display i am able to see only 255 characters,but the URL is more than 255 Characters..How can i see the URL which has the length more than 255 characters..
    In the Table the fields url length is 4000 chars.....
    but display it is showing only 255 chars.....
    Please Help me...??????????

    Hello,
    Have you tried breaking your structure into 255 chunks? I don't know what the structure you are moving from looks like, but you should be able break it back up into the SOLI structure. The end of a line in SOLI doesn't create a Carriage Return/Line Break. You have to insert these yourself like in the following:
    * Create document
          clear mail_line.
          move 'This is a test E-Mail'(d01) to mail_line.
          concatenate mail_line
                      cl_abap_char_utilities=>newline
                      into mail_line.
          append mail_line to l_mailtext.
    What kind of attachment are you wanting to create - a text tab delimited file for reading in a spreadsheet application such as excel? You might try reassembling your data table into a single string with newlines where you need them. Then use function module SCMS_STRING_TO_FTEXT to turn it back into SOLI. This is what I have done in the past. I'm afraid without knowing more about your source structure and attachment type, this is about all I can tell you.
    Vasanth

  • How can I turn off the phone saying "Call from" #/name when getting incoming call.

    How can I turn off the phone saying "Call from" #/name when getting incoming call before the ring tone starts?  I have a LG accolade

    I recommend checking your  prompts and alerts to turn this feature off. This may be you "Call Connect" or "Readout" alerts. Listed below are steps to update this feature. 
    With the flip open, press the Voice Command Key (on the left side of the phone).The Voice Commands feature has several settings which allow you to customize how you want to use it. Access Voice Commands, then press the Right Soft Key[Settings]. Your choices are below:
    -Confirm Choices--- Automatic/Always Confirm/ Never Confirm
    -Sensitivity--- Control the sensitivity as More Sensitive/ Automatic/Less Sensitive
    -Adapt Voice ---If the phone often asks you to repeat voice command,train the phone to recognize your voice patterns.Train Words/ Train Digits
    Prompts ---Mode/ Audio Playback/Timeout
    * For Mode, set Prompts/ Readout+ Alerts/ Readout/ Tones Only.
    * For Audio Playback, set Speakerphone or Earpiece.
    * For Timeout, set 5 seconds or 10seconds.

  • How can i pass the  parameter for strored procedure from java

    dear all,
    I am very new for stored procedure
    1. I want to write the strored procedure for insert.
    2. How can i pass the parameter for that procedure from java.
    if any material available in internet create procedure and call procedure from java , and passing parameter to procedure from java

    Hi Ram,
    To call the callable statement use the below sample.
    stmt = conn.prepareCall("{call <procedure name>(?,?)}");
    stmt.setString(1,value);//Input parameter
    stmt.registerOutParameter(2,Types.BIGINT);//Output parameter
    stmt.execute();
    seq = (int)stmt.getLong(2);//Getting the result from the procedure.

  • How can I delete a dir which has sub-dir's ?

    Dear list,
    Can some one send me a link or send me a code example of how to delete all the sub- directories in a specified directory. My dir has sub-directories which contain files!
    If I use the java.io package I must loop all the sub- directories, and java.io.File.delete() wont delete a dir when it contains files, so I will have to go into each sub-dir and delete the files before deleting the sub-dir. This is going to be a lot of code, and YES ! I am a little lazy!
    Is there a java package, with a method, where I can just delete a dir, which just deletes it and ALL its contents ?
    regards
    BB

        // Delete an empty directory
        boolean success = (new File("directoryName")).delete();
        if (!success) {
            // Deletion failed
        }If the directory is not empty, it is necessary to first recursively delete all files and subdirectories in the directory. Here is a method that will delete a non-empty directory.     // Deletes all files and subdirectories under dir.
        // Returns true if all deletions were successful.
        // If a deletion fails, the method stops attempting to delete and returns false.
        public static boolean deleteDir(File dir) {
            if (dir.isDirectory()) {
                String[] children = dir.list();
                for (int i=0; i<children.length; i++) {
                    boolean success = deleteDir(new File(dir, children));
    if (!success) {
    return false;
    // The directory is now empty so delete it
    return dir.delete();

  • How can i distill the invoice which has not verified?

    hello evryone:
       my problem is I want to distill the invoice which has not 
       verified through the tcode MIRO.
       thanks in advance!

    Hello,
    Have you tried breaking your structure into 255 chunks? I don't know what the structure you are moving from looks like, but you should be able break it back up into the SOLI structure. The end of a line in SOLI doesn't create a Carriage Return/Line Break. You have to insert these yourself like in the following:
    * Create document
          clear mail_line.
          move 'This is a test E-Mail'(d01) to mail_line.
          concatenate mail_line
                      cl_abap_char_utilities=>newline
                      into mail_line.
          append mail_line to l_mailtext.
    What kind of attachment are you wanting to create - a text tab delimited file for reading in a spreadsheet application such as excel? You might try reassembling your data table into a single string with newlines where you need them. Then use function module SCMS_STRING_TO_FTEXT to turn it back into SOLI. This is what I have done in the past. I'm afraid without knowing more about your source structure and attachment type, this is about all I can tell you.
    Vasanth

  • How can we measure the time of excecution of our Java program?

    i have a java application program which runs depend upon the user input.
    I want to analyze how my application works.
    So i want to measure the time of execution.How can i do it?

    makpandian wrote:
    ..i want to measure the time of execution.
    long startTime = System.currentTimeMillis()
    doTimeConsumingTask();
    long endTime = System.currentTimeMillis()
    System.out.println(  "The task took " + (startTime-endTime)/1000 + " seconds." ); Edit 1:
    I see I was 'too slow off the mark' by 5 minutes. ;)
    Edited by: AndrewThompson64 on Jul 19, 2009 10:58 PM

  • How can I find the program which is calling my SAPscript??

    How can I find the program(std/Custom) which is calling my SAPscript form??
    Regards,
    Shashank.

    Hi
    check in NACE transaction or TNAPR table
    reward points to all helpful answers
    kiran.M

  • How can i check the file  which is upload from  the server

    when upload the excel file from the server file to the internal table ,how can i check the data whether it accord with  the required condition .
    for example ,i want to upload the file which have the data whose type is pack, and it have three integer and  two decimal ,how can i check in my code.
    thanks,

    Hi Sichen,
    First upload the file, Then do ur validations and delete the records that doesn't satisfy ur requirements.
    Thanks,
    Vinod.

  • HT5622 How can I reset my passcode, which is different from my password?

    Does anyone know if I can reset my passcode, which is different from my password? I would prefer not to reset to factory settings and lose my pictures and music.

    Back up all data.
    Boot into Recovery by holding down the key combination command-R at the startup chime. Release the keys when you see a gray screen with a spinning dial.
    Note: You need an always-on Ethernet or Wi-Fi connection to the Internet to use Recovery. It won’t work with USB or PPPoE modems, or with networks that require any kind of authentication other than a WPA or WPA2 Personal password.
    When the Recovery screen appears, follow the prompts to reinstall the Mac OS. You don't need to erase the boot volume, and you won't need your backup unless something goes wrong. If your Mac didn’t ship with Lion, you’ll need the Apple ID and password you used to upgrade, so make a note of those before you begin.

  • How can I open help file (HTML or .chm) from Java Web Start (new to JAVA)

    Hi All,
    Im trying to open the help file of my application.
    When trying to access the help file from the GUI (pressing F1 for launching the help file), I'm geting the an error, something like:
    "Can't show help URL: jar:file:C:\Documents and Settings\%USER%\Application Data\Sun\Java\Deployment\javaws\cache\http\Dlocalhost\P7001\DMwebstart\RMjar-name!/com/resources/helpFiles/MyHelpFile.html"
    It seems that the file which is packed in a jar, was downloaded to the Java Web Start cache directory:
    C:\Documents and Settings\%USER%\Application Data\Sun\Java\Deployment\javaws\cache\http\Dlocalhost\P7001\DMwebstart
    The code which is activated when launching the help file is:
    try
                ResourceBundle resourceBundle = DoubleResourceBundle.getBundle("Resource", "ResourceImpl");
                RuntimeUtil.launchFile(new File(resourceBundle.getString("help.file")));
            } catch (IOException e)
                // TODO Auto-generated catch block
                e.printStackTrace();
            }where the property "help.file" is in some property file in the resource bundle named "Resource", and looks like this :
    help.file="com/trax/docs/help/global/MyHelpFile.html"
    The function "RuntimeUtil.launchFile" knows how to launch any file in its default application, and indeed it does launches the html, when giving it an absolute path to the file on my PC, as "C:\Helpfiles\MyHelpFile.html" as such:
    RuntimeUtil.launchFile("C:\Helpfiles\MyHelpFile.html");My question is :
    The application is going to be deployed on a Customer PC. How can I access the html file from the code, with a relative path and not its absolute path on the customer pc, which I can't know?
    I found these restrictions regarding web start:
    (copied from "http://rachel.sourceforge.net/"):
    *Rule 1: Java Archives only. No loose files.* All your resources have to be packaged in Java Archives (jar) if you want to have
    them delivered to the user's machine and kept up-to-date automatically by Java Web Start.
    *Rule 2: No file paths.* You can't use absolute or relative file paths to locate your
    jars holding your resources (e.g. <code>jar:file:///c:/java/jws/.cache/resources.jar</code>).
    Absolute file paths won't work because you never know where Java Web Start
    will put your jar on the user's machine. Relative file paths won't work because Java Web Start
    mangles the names of your jars (e.g. <code>venus.jar</code> becomes <code>RMvenus.jar</code>)
    and every JNLP client implementation has the right to mangle your names
    in a different way and you, therefore, can't predict the name with
    which your jar will be rechristend and end up on the user's machine in
    the application cache.Seems complex or impossible, to perform a simple task like opening a file.
    Please advise (I'm new to Java and Web Start).
    BTW, I'm working with IntelliJ IDEA 5.0.
    Thanks,
    Zedik.
    {font:Tahoma}{size:26pt}
    {size}{font}

    the follwing method i have used to open html file ...
    so to access html file i am shipping resources folder with jar file ..
    private void openHtmlPages(String pageName) {
         String cmd[] = new String[2];
         String browser = null;
         File file = null;
         if(System.getProperty("os.name").indexOf("Linux")>-1) {
              file = new File("/usr/bin/mozilla");
              if(!file.exists() ) {
              }else     {
                   browser = "mozilla";
         }else {
              browser = "<path of iexplore>";
         cmd[0] = browser;
         File files = new File("");
         String metaData = "/resources/Help/Files/"+pageName+".html"; // folder inside jar file
         java.net.URL url = this.getClass().getResource(metaData);
         String fileName = url.getFile();
         fileName = fileName.replaceAll("file:/","");
         fileName = fileName.replaceAll("%2520"," ");
         fileName = fileName.replaceAll("%20"," ");
         fileName = fileName.replaceAll("jarfilename.jar!"," ").trim();
         cmd[1] = fileName;     
         try{
              Process p = Runtime.getRuntime().exec(cmd);
         }catch(java.io.IOException io){
                   //Ignore
    can anyone give me the solution..???
    Regards
    Ganesan S

  • HT201229 How can I access a list of incoming calls from a blocked number

    How can I access a call log of incoming calls from a blocked number on my iphone?

    Calls from blocked #'s won't go through, so they won't be listed on your device.

  • How can we encourage Apple to develop blocking calls from specific numbers?

    Looking through posts on here, I see that neither AT&T nor the iPhone itself permits an iPhone owner to block calls from one or more specific numbers.
    For some reason, although I've had my mobile number for years, I've recently started to receive daily calls from one specific number, an ignorant person who calls at all times of the day and night, barely apologizing for yet again dialing incorrectly. Very annoying.
    Yes, I know I could change my number, but literally hundreds of people have used this number for years, and I'm truly loathe to start over.
    In reading posts here and on AT&T, I gather this is not an uncommon problem. I assume that even if AT&T is unwilling to institute call blocking, this is a problem Apple could solve with iPhone software. What's the best way to encourage Apple to include this in a future iPhone software update?
    In advance, thanks for your guidance.

    This would be something ATT would have to do since they provide the actual phone service.
    In the meantime, you could create a ringtone of "silence" and assign it to that person's number. This way you wouldn't be disturbed when the person calls until you can work out a solution with ATT.

  • How can you determine at runtime which libraries are attached?

    Hi
    I am wondering if there is a way to determine which libraries are currently attached to a form at runtime. My application is in forms 10g.
    I am hoping to get the full path so that it is possible to show this in an information type display. I am ideally looking for a solution that works on both Unix and Windows so that it can be used in development and production
    thanks in advance
    Wayne

    I am curious, why you want to know which library is attached and the full path??? You cannot change it at runtime!!
    I don't think that's possible at runtime by using Generic Forms built-ins, But as always with Oracle, you can have several solutions.
    One solution is to initialize global variables/parameters in PRE-FORM and later you can read them and see the values and do whatever you want accordingly.
    When using Global variables, you can test for their DEFAULT_VALUE to check whether the variable exists or not, this will prevent getting an error if the variable hasn't been initialized yet.
    Tony

  • How can I restore a contact which was deleted from Contacts?

    I opened Contacts on OS X 10.9.1.  I noticed there was a duplicate contact.  I deleted the duplicate, then added some information to the remaining copy of the contact.  I closed contacts.  When I returned a few minutes later, the remaining copy was also gone, now I would like to restore it, but there is no information on how to do that.
    Thanks

    What if it was synced - either to iCloud or iTunes (I'm not sure which one I backed up to) after the video was taken? How do I recover it? I have synced/backed-up my iPhone 4 since the video was deleted from my device. Is it still recoverable? Thanks.

Maybe you are looking for

  • MacBook can no longer see internal hard drive or replacement

    This morning, when forcing a restart of a MacBook (It was non responsive in sleep) it restarted with 2 or 3 of those ominous tones and then the standard Mac startup sound. I then got the blinking folder indicating there was no system disk available.

  • Session Timout JSP Page Forward

    Hi All, I am currently working on a JSP site and want to add a JSP page forward that takes place when the user's session times out after a period of inactivity. I have created a servlet that implements HttpSessionBindingListener and has methods in pl

  • Attaching documents stored in iCloud to an e-mail.

    I am storing documents in iCloud.  I would like to attach a document (or several documents) to an e-mail to send them to clients, other attorneys, etc.  I can attach documents stored on my Mac, but how do I attach documents stored in iCloud?  I am us

  • Translucent Menu Bar never was and still is not an option

    When I first got Leopard one of the the first things I noticed was my menu bar wasn't translucent. I have an HP w2007. I just installed 10.5.2. I was told it would have an option to turn it on or off. It doesn't. I went to desktop and screensaver pre

  • Images into Podcast

    Hello all- Is it possible to generate a series of images into a Podcast where the user drives the image flow? For example, let's say that I have 10 jpegs or PDFs or whatever works best. I'd like to allow someone to download onto iPod and choose when