Evaluate the total execution time

Hi,
I need to find the total execution time taken upon executing a function module. I tried to output the system time in the start of the FM and at the end of the FM. But the time taken in execution in the DEV system could be lessthan 1 sec, which is not visible to evaluate.
Any one with an idea, please help.
Regards,
Satish Kanteti

Hi,
You can use like below
DATA T TYPE I.
GET RUN TIME FIELD T.
WRITE: / 'Begin Runtime', T.
*Call FM
GET RUN TIME FIELD T.
WRITE: / 'End Runtime', T.
For more details check the link below
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db994235c111d1829f0000e829fbfe/content.htm

Similar Messages

  • How to get the total execution time from a tkprof file

    Hi,
    I have a tkprof file. How can I get the total execution time. Going through the file i guess the sum of "Total Waited" would give the total time in the section "Elapsed times include waiting on following events:"
    . The sample of tkprof is given below.
    SQL ID: gg52tq1ajzy7t Plan Hash: 3406052038
    SELECT POSTED_FLAG
    FROM
    AP_INVOICE_PAYMENTS WHERE CHECK_ID = :B1 UNION ALL SELECT POSTED_FLAG FROM
      AP_PAYMENT_HISTORY APH, AP_SYSTEM_PARAMETERS ASP WHERE CHECK_ID = :B1 AND
      NVL(APH.ORG_ID, -99) = NVL(ASP.ORG_ID, -99) AND
      (NVL(ASP.WHEN_TO_ACCOUNT_PMT, 'ALWAYS') = 'ALWAYS' OR
      (NVL(ASP.WHEN_TO_ACCOUNT_PMT, 'ALWAYS') = 'CLEARING ONLY' AND
      APH.TRANSACTION_TYPE IN ('PAYMENT CLEARING', 'PAYMENT UNCLEARING')))
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute    442      0.08       0.13          0          0          0           0
    Fetch      963      0.22       4.72        350      16955          0         521
    total     1406      0.31       4.85        350      16955          0         521
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 173     (recursive depth: 1)
    Number of plan statistics captured: 1
    Rows (1st) Rows (avg) Rows (max)  Row Source Operation
             1          1          1  UNION-ALL  (cr=38 pr=3 pw=0 time=139 us)
             1          1          1   TABLE ACCESS BY INDEX ROWID AP_INVOICE_PAYMENTS_ALL (cr=5 pr=0 pw=0 time=124 us cost=6 size=12 card=1)
             1          1          1    INDEX RANGE SCAN AP_INVOICE_PAYMENTS_N2 (cr=4 pr=0 pw=0 time=92 us cost=3 size=0 card=70)(object id 27741)
             0          0          0   NESTED LOOPS  (cr=33 pr=3 pw=0 time=20897 us)
             0          0          0    NESTED LOOPS  (cr=33 pr=3 pw=0 time=20891 us cost=12 size=41 card=1)
             1          1          1     TABLE ACCESS FULL AP_SYSTEM_PARAMETERS_ALL (cr=30 pr=0 pw=0 time=313 us cost=9 size=11 card=1)
             0          0          0     INDEX RANGE SCAN AP_PAYMENT_HISTORY_N1 (cr=3 pr=3 pw=0 time=20568 us cost=2 size=0 card=1)(object id 27834)
             0          0          0    TABLE ACCESS BY INDEX ROWID AP_PAYMENT_HISTORY_ALL (cr=0 pr=0 pw=0 time=0 us cost=3 size=30 card=1)
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      db file sequential read                       350        0.15          4.33
      Disk file operations I/O                        3        0.00          0.00
      latch: shared pool                              1        0.17          0.17
    ********************************************************************************

    user13019948 wrote:
    Hi,
    I have a tkprof file. How can I get the total execution time.
    call count cpu elapsed disk query current rows
    total 1406 0.31 4.85 350 16955 0 521TOTAL ELAPSED TIME is 4.85 seconds from line above

  • Process chain total execution time

    Hi Experts,
    Can you tell me how we can the total execution time taken by the process chain.
    Thanks
    Suneel

    Hi Suneel,
    I have understood your requirement : You need start and end timings for each and every run of the chain.
    Goto the 1st process type in your process chain - >Right click and click on Display messages - > Go to the chain and copy the variant name from there.(repeat the same for last p.type for end timings of chain)
    Now Go to table RSPCPROCESSLOG and insert the Variant name and the date of the chain run.
    You will get details of all the runs of that particular chain.
    Timings are there in the STARTTIMESTAMP and ENDTIMESTAMP fields.
    Timings will not be in the requires format.
    It will be like YYYYMMDDTIME.OTHERS
    You will have to download it to excel and do some manipulations to take out the digit from 9-14 places.
    But I think it will be better b'coz you will have to do that only once.
    I have done the same thing in my project as well.
    Revert back if you have any problems.
    Reward with Points if helpful.
    Regards
    Hemant Khemani

  • Need to know how to find the last execution time for a function module

    HI all
    I need to know
    1) How to find out the last execution time of the function module ?
      say for eg. I have executed a func. module at 1:39pm. How to retrieve this time  (1:39pm)
    2) I have created 3 billing document in tcode VF01 i.e 3 billing doucment no. would be created in SAP TABLE "VBRP" b/w 12am to 12:30 am.
    How to capture the latest SAP database update b/w time intervals?
    3) Suppose I am downloading TXT file using "GUI_DOWNLOAD" and say in 20th record some error has happened. I can capture the error using the exception.
    Is it possible to run the program once again from 21st records ? All this will be running in background...
    Kindly clarify....
    Points will be rewarded
    Thanks in advance

    1.Use tcode STAT input as Tcode of Fm and execute .
    2. See the billing documents are created in table VBRk header and there will always be Creation date and time.
    VBRk-Erdat "date ., u can check the time field also
    So now if u talk the date and time we can filter then display the records in intervals.
    3. with an error exeption how is my txt download finished .
    once exception is raised there will not be a download .
    regards,
    vijay

  • Oracle View that stores the Query execution time

    Hi Gurus
    i m using Oracle 10G in Unix. I wudiold like to know which Data dictionary view stores the execution of a query. If it is not stored then hw to find the query execution time other than (Set timing on) command. What is the use of elapsed time and what is the difference between execution time and elapsed time? How to calculate the execution time of a query.
    THanks
    Ram

    If you have a specific query you're going to run in SQL*Plus, just do
    a 'set timing on' before you execute the query.
    If you've got application SQL coming in from all over the place, you can
    identify specific SQL in V$SQL/ and look at ELAPSED_TIME/EXECUTIONS
    to get an average elapsed time.
    If you've got an application running SQL, and you need to know the
    specific timing of a specific execution (as opposed to an average),
    you can use DBMS_SUPPORT to set trace in the session that your
    application is running in, and then use TkProf to process the resulting
    trace file.

  • How can i check the procedure execution time..?

    Hi All,
    Can any one of you tell me how can i check the procedure execution time..?
    Thanks in advance.

    if running it from SQL*Plus,
    SQL> set timing on
    Or from PL/SQL, use DBMS_UTILITY.GET_TIME before and after the call and calclate the difference.

  • Session manager is taking 10% of the total response time

    Hi
    As per our recent analyses session manager is taking around
    10% of the total response time, we have done the archiving of data
    however it still taking around 9% of the total response time, I have checked few notes from service market place. However i would request you to suggest something
    sap notes
    164102
    203617
    161053
    26417
    203924
    My system configuration
    SAP System ID WCP
    SAP Component ECC 5.0
    SAP Release ERP 2004
    Database System Oracle 10.2.0.4
    Operating System Windows Server 2003 on x86_32, AIX 5.3,
    Windows Server 2003 on x86_64
    Thanks in advance
    Regards
    Rizvi
    +919874428887

    Hi,
    first check the user nodes from PROFGEN_CORR_REPORT_5 (from SE38)
    Here you can find the user nodes for all users, and disable user nodes if any user had high utilization.
    Please check SAP Note 203617
    Regards
    Nick Loy

  • SQL to find queries with execution time, total execution time so far,

    Hello Sir,
    We are looking for a query to find queries taking more than 6 seconds to execute, no of its executions so far, average execution time, total execution time so far.Thanks in advance.
    -Mal

    Something like this.
    SELECT s.SID, s.serial#, t.sql_fulltext,t.sql_id,s.action FROM v$session s, v$sql t
        WHERE s.status = 'ACTIVE'
          AND s.sql_address = t.address
          AND s.sql_hash_value = t.hash_value
          AND s.last_call_et >6HTH
    -Anantha

  • Where can i get the sql execution time ?

    Hi ,
    I want to check for a particular execution time of an sql statement
    from v$sqlarea shld i get both the cpu_time & elapsed_time ?
    the no seems very huge i.e --> 12592966663 and they are in nanosecons , milliseconds or secs ??
    is this the total time since it was in the library cache or the last time it ran it took 12592966663 ??
    kindly advise

    Hi ,
    But can i also check is this the cpu_time & elapsed_time for the most current execution or this is the total since it was last executed
    as the nos --> 13,518,633,330 when even divided by 1000,000(micro seconds) seems abit long as well
    tks & rdgs

  • How to get the query execution time

    Hi,
    I am new to oracle and I am trying to get the execution time of a query.I tried the command set timing on and executed the query.But,the time it gives me is including the display of results.In my case,I ran a query against 50 million records and it is taking around 5 hours to display all the results.I like to know,how much time it take just to execute the query?Please help.
    Thanks
    Ravi.

    Maybe this way ?
    TEST@db102 SQL> set timing on
    TEST@db102 SQL> set autotrace traceonly
    TEST@db102 SQL> select * from foo;
    332944 rows selected.
    Elapsed: 00:00:29.04
    Execution Plan
    Plan hash value: 1245013993
    | Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |      |   274K|    46M|  1071   (5)| 00:00:13 |
    |   1 |  TABLE ACCESS FULL| FOO  |   274K|    46M|  1071   (5)| 00:00:13 |
    Note
       - dynamic sampling used for this statement
    Statistics
            288  recursive calls
              0  db block gets
          26570  consistent gets
           4975  physical reads
              0  redo size
       35834383  bytes sent via SQL*Net to client
         244537  bytes received via SQL*Net from client
          22198  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
         332944  rows processed
    TEST@db102 SQL>                                                                               

  • Report to Evaluate the Total Cost of Producing a Meterial

    Dear Experts,
    Is there any report from where I can generate the total cost incurred for producing a material for a given period of time.
    Please Help
    Thanks

    Thanks
    We can generate the report from KOB1,S_ALR_87013002,KOC4 based on the production orders.
    Thanks

  • How to reduce the query execution time

    hai all,
    We have created query on Purchasing Cube 0PUR_C01 for
                                Purchase Order (PO) analysis for single vendor materials, but it is taking long time to execute (about 45 sec...).
    In the above Query we have used the following things:
    In Columns:
    i) Exceptional aggregation for maximum & minimum PO Net Price using reference characteristic as Calendar Day.
    ii) Minimum PO Price value we have multiplied with Actual GR Quantity for the calculation of Impact of Lowest PO Net Price.
    iii) Number of vendors calculated key figure.
    In Rows:i)     Only Material
    In Filters:
    i)     Plant with variable select Option u2013 Optional.
    ii)     Calendar Year / Month with Select Option u2013 Optional.
    iii)     Material with excluded Unassigned (#).
    iv)     Vendor with excluded Unassigned (#).
    Following are we have used for Performance:
    i)     Aggregates using Propose from query (only for this query).
    ii)     Partitioning on Calendar Year / Month (For 1 year 14 partitions) i.e. (04.2007 to 03.2008).
    iii)      Collapse.
    iv)     In RSRT we have set the following properties
    Read Mode = H
    Req.Status  = 0
    Catch Mode = 4
    Persistence Mode = 3 (BLOB)
    Optimization mode = 0.
    Our inputs to this Query:
    i)     We are passing plant range 1201 to 1299.
    ii)     Calendar Year / Month 04.2007 to 03.2008.
    So please suggest me how to reduce the execution time.
    please help me.
    Thanks,
    kiran manyam

    Hi,
    First of all its a complete question with all the details. Good work.
    As you partitioned the cube based on calmonth and you are also giving calmonth in selection, it will definitely work towards improved query performance.
    As you are putting plant values in the selection, is there any aggregate available on plant characteristics? If not creating a aggregate on plant will help.
    Regards,
    Yogesh

  • Is there a way to find the total "ON" time on my MacPro?

    I was wondering if there was a way to find the total system "ON" time or usage time on my MacPro since I first purchased it?

    I don't believe there is any recordation of that, but someone else may know better. There is, however, a record of how much time the computer has been in use since the last restart: open the Terminal application in the Utilities folder and at the prompt enter "uptime" (without quotes) and press RETURN.

  • How to know the query execution time

    Hi All,
    I want to know the execution time taken for a particular query, How should i get that information ?
    say for example,
    select * from emp
    after getting the result, i want to know the time taken for completing the execution.
    How ?
    Inputs are welcome !

    BTW it was already written in a response to you yestreday:
    Re: Query Plan
    Gints Plivna
    http://www.gplivna.eu

  • How to calculate the total running time for process from sysssislog entries

    Hi All,
    I have the below query which gets me the log entries form the logs table when the process started/completed.
    Select row_number() over (order by starttime) row_num,Substring( Substring(message, CharIndex('''',message) +1 ,Len(message)) ,0, CharIndex('''',Substring(message, CharIndex('''',message) +1 ,Len(message)))) as Description,
    starttime,endtime,message
    from dbo.sysssislog
    where (message like 'start%' or message like 'finish%' ) and
    LEFT(Substring( Substring(message, CharIndex('''',message) +1 ,Len(message)) ,0, CharIndex('''',Substring(message, CharIndex('''',message) +1 ,Len(message)))),1) between 'A' and 'Z'
    order by starttime
    However,I have to build a report on the top of it showing how much time that attribute/dimension/heirarchy took to execute(Ex-How much time did YearlyReview dimension take to complete).I dont have much knowledge of T-SQL and unable to figure out how to calculate
    that on SQL or report level.
    Could someone please assist me in getting the exact query for that?
    Thanks a lot.

    I get the below output(sample 20 rows) on executing this query.Also,a start process does not necessarily follow up a finished message for the same dimension as it may have been stopped or it failed.So we need to leave it as NA in case it started but dint
    finish
    Row_Num Description starttime endtime Message
    1 PAC SC Super Type 12/13/12 16:38 12/13/12 16:38 Started processing the 'PAC SC Super Type' dimension.
    2 PAC SC Super Type 12/13/12 16:38 12/13/12 16:38 Started processing the 'PAC SC Super Type' dimension.
    3 Team Member Indicator 12/13/12 16:38 12/13/12 16:38 Started processing the 'Team Member Indicator' dimension.
    4 Team Member Indicator 12/13/12 16:38 12/13/12 16:38 Started processing the 'Team Member Indicator' dimension.
    5 PAC SC Super Type 12/13/12 16:38 12/13/12 16:38 Started reading data for the 'PAC SC Super Type' attribute.
    6 PAC SC Super Type 12/13/12 16:38 12/13/12 16:38 Started reading data for the 'PAC SC Super Type' attribute.
    7 Specialist Merger Indicator 12/13/12 16:38 12/13/12 16:38 Started reading data for the 'Specialist Merger Indicator' attribute.
    8 Specialist Merger Indicator 12/13/12 16:38 12/13/12 16:38 Started reading data for the 'Specialist Merger Indicator' attribute.
    9 YearlyReview 12/13/12 16:38 12/13/12 16:38 Started processing the 'YearlyReview' dimension.
    10 YearlyReview 12/13/12 16:38 12/13/12 16:38 Started processing the 'YearlyReview' dimension.
    11 PAC SC Repeat Caller 12/13/12 16:38 12/13/12 16:38 Started processing the 'PAC SC Repeat Caller' dimension.
    12 PAC SC Repeat Caller 12/13/12 16:38 12/13/12 16:38 Started processing the 'PAC SC Repeat Caller' dimension.
    13 Year 12/13/12 16:38 12/13/12 16:38 Started reading data for the 'Year' attribute.
    14 Year 12/13/12 16:38 12/13/12 16:38 Started reading data for the 'Year' attribute.
    15 Staffing Function 12/13/12 16:38 12/13/12 16:38 Started processing the 'Staffing Function' dimension.
    16 Staffing Function 12/13/12 16:38 12/13/12 16:38 Started processing the 'Staffing Function' dimension.
    17 PAC SC Repeat Caller 12/13/12 16:38 12/13/12 16:38 Started reading data for the 'PAC SC Repeat Caller' attribute.
    18 PAC SC Repeat Caller 12/13/12 16:38 12/13/12 16:38 Started reading data for the 'PAC SC Repeat Caller' attribute.
    19 PAC HV Cust 12/13/12 16:38 12/13/12 16:38 Started processing the 'PAC HV Cust' dimension.
    20 PAC HV Cust 12/13/12 16:38 12/13/12 16:38 Started processing the 'PAC HV Cust' dimension.

Maybe you are looking for

  • Cant delete files from my ipod

    i cannot delete a file from my ipod and now i do not have enough room to move any songs onto my ipod

  • Unencrypted password length vs. Encrypted password length

    Hi, Can anybody share the formula to get the resulting String length of an encrypted password. For example: how long will the encrypted String be given a 5 letter unencrypted password? Will this change across different algo? e.g. MD5/SHA1 and two way

  • Saving Playli

    I am using Creative MediaSource Organiser with my Zen Xtra 60GB. I have all my music backed up on a hard dri've, but I'm afraid if something happens my mp3 player, I will lose all my playlists (I have lots and they took a long time to put together).

  • Events created on my iPhone 5 calendar are no longer syncing with iCal.

    Events created on my iPhone 5 calendar are no longer syncing with iCal on my Macbook Pro (Lion OSX). It works fine the other way around. I can't understand why, and cannot find a solution. Please help!

  • I can't get Firefox to work anymore due a profile issue

    I get the following error msg, which prevents me from using Firefox when I open a tab. Afterwards Firefox just closes and sends en error msg, which I feel is going nowhere since I haven't been contacted. Overall I don't know how to fix the below prob