How to maintain a timer

Hi,
in my program i am executing a set of select statements and i need to calculate the time taken to execute those. how to maintain a timer for this ? what statements to use ?
thanks

This was Rob's replies in a similiar post:
You can do this:code
data: start TYPE i,
end TYPE i,
dif TYPE i.
GET RUN TIME FIELD start.
SELECT SINGLE bukrs belnr gjahr blart budat
FROM bkpf
INTO (cc, doc, fy, doc_ty, pst_dt)
WHERE bukrs = p_bukrs
AND belnr = p_belnr
AND gjahr = p_gjahr.
GET RUN TIME FIELD end.
dif = end - start.
WRITE: /001 'Time for select',
067 ':', dif, 'microseconds'.
[/code]Rob

Similar Messages

  • How to maintain time spec.of operations in routing and work centers

    Dear consultants,
    We dont have any time specifications in routing or work center ..
    we just create an order and the execution of the production involves many operations....
    now we want to be specific about the time of operations as the need is to track the operations.( In the sense which of the operations are delayed).....
    How and where should i do these in the routing and workcenters..
    Please explain in detail....
    Karthick

    Hi Karthick,
    In your work center in basic data page you maintain std. value key eg: SAP1, this has Setup Machine & Labor fields. In the default values page you specify the unit of measure Eg: HR
    Now when you add this work center in your routing operation page, you will find Setup Machine & labor, here you maintain the time required for each of the process.
    Now while doing confirmation via co11n, you inform the user to specify the time actually spent on each of the activity. In OPK4 for order type - plant combination you can specify a few defaults such as propose the value etc.
    Hope the above is clear.
    Regards,
    Vivek

  • How is ist possible to maintain the time dependencies for Abap Privileges?

    How is ist possible to maintain the time dependencies for Abap Privileges?
    In our Installation of SAP IDM 7.0 SP2 Patch 4 the time dependencies of Abap Roles are imported in the IC by Initial loads Jobs. How can the see / change the dependencies in our IDM Workflow UI? Presently nothing jet is shown, no Attribute is predefined..
    Can anybody give us a hint?
    Thank you in advance !!

    If you click VIEW/SHOW PLAYHEAD INFO, you will see the timecodes as you scrub. (Consumer timecodes, not pro timecodes).
    This works if you imported your footage from a camcorder, either miniDV or AVCHD.
    However, if you have imported an analog file, or saved a DV file to a QuickTime File, you may just see the file creation date in VIEW PLAYHEAD.
    However, there is a trick to getting even these clips to display timecodes if you know the start time.
    First pick a clip. Make a copy and drag it to your desktop, just so you don't lose anything.
    Rename this copy in the following format clip-yyyy-mm-dd hh;mm;ss.current file extension.
    For example, clip-2001-07-14 09;30;45.mov (note the space between the day and the hour)
    This would be a .mov clip that starts with the first frame at July 14, 2001 at 9:30:45 AM
    Then import the clip into iMovie. You now have timecodes at the playhead.

  • How to maintain budget in 2006 when user in 2008 & vice versa?  frame 1 y

    Problem:
    User could not save changes in  original budget in 2006 & in 2008 also.
    Description
    When user tried to change original budget (FR04) in 2006 year,
    then getting a Message on screen
    “ Payment for yearly  budget 2008 samller than distrubuted budget”
    with fund center – commitment item list &
    “ Payment for the annual budget 2006 are less than annual release “
    with fund center – commitment item list.
    User add & release fund in specific fund center-commitment item which was showing in error list.
    After the ‘check’-
    then getting error ‘’ Payment for yearly  budget 2008 samller than distrubuted budget”
    with fund center – commitment item list
    Time frame only shown 2006.
    Here how to maintain budget in 2008 when user in 2006?
    In Next step
    When user tried to change original budget (FR04) in 2008 year,
    then getting a Message on screen
    “ Payment for yearly  budget 2008 samller than distrubuted budget “
    with fund center – commitment item list &
    “Payment for the annual budget 2006 are less than annual release”
    with fund center – commitment item list.
    User add & release fund in specific fund center-commitment item which as  showing in error list.
    After the ‘check’-
    then getting error
    ‘’ Payment for the annual budget 2006 are less than annual release”
    with fund center – commitment item list
    Time frame only shown 2007 2008 2009.
    here how to maintain budget in 2006 when user in 2008?
    Means user can only change budget in 2007 to 2009” when more years coming in timeframe.
    Current year :2008
    Closed year: 2006 
    In Fund Management, need change original budget payments in 2006 which is already closed.
    Purpose:
    Maintain the positive budget in fund center -Commitment item in 2006 & in 2008 which is shwoing in error.
    Can we see past-current timeframe at the same time ?

    1. copy the frames of your looping animation.
    2. create a new movieclip and paste those copied frames onto
    this movieclip's timeline
    3. from your library drag a copy of the above movieclip to
    frame 1 of your main timeline and attach a stop() to that frame.
    4. place your login textfield and ok button on frame 1 of
    your main timeline.
    5. when ok is pressed (and login) passes some condition
    direct your main timeline to frame 20.

  • How to add records or how to maintain list in stored Procedure

    Hi,
    I am facing an issue in the addition of record in the type
    create or replace
    TYPE               "PROD_SEARCH_COUNT_TBL"                                          AS TABLE OF PROD_SEARCH_COUNT_OBJ;
    create or replace
    TYPE               "PROD_SEARCH_COUNT_OBJ"                                          AS OBJECT
    ( /* TODO enter attribute and method declarations here */
        V_Name Varchar2(500 Byte),
        v_Value Varchar2(500 Byte),
        v_count Number
    I want to add records to the type I tried following way
    prod_wcf_rec PROD_SEARCH_COUNT_TBL;
      SELECT PROD_SEARCH_COUNT_OBJ('Name1','Value1',1) BULK COLLECT INTO prod_wcf_rec FROM DUAL;
        SELECT PROD_SEARCH_COUNT_OBJ('Name2','Value2',2) BULK COLLECT INTO prod_wcf_rec FROM DUAL;
        SELECT PROD_SEARCH_COUNT_OBJ('Name3','Value3',3) BULK COLLECT INTO prod_wcf_rec FROM DUAL;
        SELECT PROD_SEARCH_COUNT_OBJ('Name4','Value4',4) BULK COLLECT INTO PROD_WCF_REC FROM DUAL;
    DBMS_OUTPUT.PUT_LINE ('-----------------------------Looping----------------------------');
    FOR i in 1 .. prod_wcf_rec.COUNT
    LOOP         
    DBMS_OUTPUT.PUT_LINE (prod_wcf_rec(i).V_Name||' - '||prod_wcf_rec(i).v_Value||' - '||prod_wcf_rec(i).v_count);     
       END LOOP;
       DBMS_OUTPUT.PUT_LINE ('-----------------------------Looping----------------------------');
    In printing I am getting last records only .So is there any way to add records to PROD_SEARCH_COUNT_TBL
    How to add records or how to maintain list in stored Procedure

    Every time you BULK COLLECT into a collection type the value is overwirtten. So you need to try something like this.
    SQL> create or replace type prod_search_count_obj as object(v_name varchar2(500 byte), v_value varchar2(500 byte), v_count number)
      2  /
    Type created.
    SQL> create or replace type prod_search_count_tbl as table of prod_search_count_obj
      2  /
    Type created.
    SQL> declare
      2    prod_wcf_rec prod_search_count_tbl;
      3  begin
      4    select obj_val
      5      bulk collect into prod_wcf_rec
      6      from (
      7            select prod_search_count_obj('name1','value1',1) obj_val from dual
      8            union all
      9            select prod_search_count_obj('name2','value2',2) from dual
    10            union all
    11            select prod_search_count_obj('name3','value3',3) from dual
    12            union all
    13            select prod_search_count_obj('name4','value4',4) from dual
    14           );
    15
    16    dbms_output.put_line ('-----------------------------looping----------------------------');
    17    for i in 1 .. prod_wcf_rec.count
    18    loop
    19      dbms_output.put_line (prod_wcf_rec(i).v_name||' - '||prod_wcf_rec(i).v_value||' - '||prod_wcf_rec(i).v_count);
    20    end loop;
    21    dbms_output.put_line ('-----------------------------looping----------------------------');
    22  end;
    23  /
    -----------------------------looping----------------------------
    name1 - value1 - 1
    name2 - value2 - 2
    name3 - value3 - 3
    name4 - value4 - 4
    -----------------------------looping----------------------------
    PL/SQL procedure successfully completed.
    SQL>

  • How to maintain variants in a report?

    how to maintain variants in a report?

    Hi
    Goto the selection screen of the report by executing the program.
    Enter the value in the selection fields and click on Save
    Here you can enter the variant name and description.
    This will be visible as a variant the next time you come to the selection screen.
    Hope this helps.
    Thanks
    Dominic
    Message was edited by: Dominic  Pappaly

  • How to maintain bitmap index on a large table in DW?

    Hi all,
    We have many tables which are constantly doing either FULL or INCREMENTAL loading.
    And we have created many BITMAP indexes and several B*Tree index (caused by PRIMARY KEY or UNIQUE key constraints) on those tables.
    So, what I want to know is, how to maintain those BITMAP (and B*Tree) indexes for different loading mode?
    like, should I drop the index before the full load and re-create it after that?
    and do nothing in INCREMENTAL loading? I am aware that it will take more time to load with indexes.
    any links, books, articles or opinions would be highly appreciated.
    Thanks

    Just to reiterate, add to what Adam said. From Oracle Doc
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17120/indexes002.htm#CIHJIDJG
    Unusable indexes
    An unusable index is ignored by the optimizer and is not maintained by DML. One reason to make an index unusable is to improve bulk load performance. (Bulk loads go more quickly if the database does not need to maintain indexes when inserting rows.) Instead of dropping the index and later re-creating it, which requires you to recall the exact parameters of the CREATE INDEX statement, you can make the index unusable, and then rebuild it.
    You can create an index in the unusable state, or you can mark an existing index or index partition unusable. In some cases the database may mark an index unusable, such as when a failure occurs while building the index. When one partition of a partitioned index is marked unusable, the other partitions of the index remain valid.
    An unusable index or index partition must be rebuilt, or dropped and re-created, before it can be used. Truncating a table makes an unusable index valid.
    Beginning with Oracle Database 11g Release 2, when you make an existing index unusable, its index segment is dropped.
    The functionality of unusable indexes depends on the setting of the SKIP_UNUSABLE_INDEXES initialization parameter. When SKIP_UNUSABLE_INDEXES is TRUE (the default), then:
    •DML statements against the table proceed, but unusable indexes are not maintained.
    •DML statements terminate with an error if there are any unusable indexes that are used to enforce the UNIQUE constraint.
    •For nonpartitioned indexes, the optimizer does not consider any unusable indexes when creating an access plan for SELECT statements. The only exception is when an index is explicitly specified with the INDEX() hint.
    •For a partitioned index where one or more of the partitions are unusable, the optimizer does not consider the index if it cannot determine at query compilation time if any of the index partitions can be pruned. This is true for both partitioned and nonpartitioned tables. The only exception is when an index is explicitly specified with the INDEX() hint.
    When SKIP_UNUSABLE_INDEXES is FALSE, then:
    •If any unusable indexes or index partitions are present, any DML statements that would cause those indexes or index partitions to be updated are terminated with an error.
    •For SELECT statements, if an unusable index or unusable index partition is present but the optimizer does not choose to use it for the access plan, the statement proceeds. However, if the optimizer does choose to use the unusable index or unusable index partition, the statement terminates with an error.
    Incremental load really matters the volume and whether for new dats you just add new partitions or subpartitions . If my incremntal go all over place and/or if I am touching few thousand rows. Yes might want to keep the indexes valid and let Oracle maintain it. IF millions added or incremental data just added to new part/subpart . Keeping indexes unsable for those partitions/subpartitions and the rebuilding it later may yield better results.

  • How to maintain my Mac

    I'm trying to learn what kind of maintenance do I need to do on my iMac to keep it running good 

    How to maintain a Mac
    1. Make redundant backups, keeping at least one off site at all times. One backup is not enough. Don’t back up your backups; make them independent of each other. Don’t rely completely on any single backup method, such as Time Machine. If you get an indication that a backup has failed, don't ignore it.
    2. Keep your software up to date. In the Software Update preference pane, you can configure automatic notifications of updates to OS X and other Mac App Store products. Some third-party applications from other sources have a similar feature, if you don’t mind letting them phone home. Otherwise you have to check yourself on a regular basis. This is especially important for complex software that modifies the operating system, such as device drivers. Before installing any Apple update, you must check that all such modifications that you use are compatible.
    3. Don't install crapware, such as “themes,” "haxies," “add-ons,” “toolbars,” “enhancers," “optimizers,” “accelerators,” “extenders,” “cleaners,” "tune-ups," “defragmenters,” “firewalls,” "barriers," “guardians,” “defenders,” “protectors,” most “plugins,” commercial "virus scanners,” "disk tools," or "utilities." With very few exceptions, this stuff is useless, or worse than useless.
    The more actively promoted the product, the more likely it is to be garbage. The most extreme example is the “MacKeeper” scam.
    As a rule, the only software you should install is that which directly enables you to do the things you use a computer for — such as creating, communicating, and playing — and does not modify the way other software works. Use your computer; don't fuss with it.
    Never install any third-party software unless you know how to uninstall it. Otherwise you may create problems that are very hard to solve.
    The free anti-malware application ClamXav is not crap, and although it’s not routinely needed, it may be useful in some environments, such as a mixed Mac-Windows enterprise network.
    4. Beware of trojans. A trojan is malicious software (“malware”) that the user is duped into installing voluntarily. Such attacks were rare on the Mac platform until sometime in 2011, but are now increasingly common, and increasingly dangerous.
    There is some built-in protection against downloading malware, but you can’t rely on it — the attackers are always at least one day ahead of the defense. You can’t rely on third-party protection either. What you can rely on is common-sense awareness — not paranoia, which only makes you more vulnerable.
    Never install software from an untrustworthy or unknown source. If in doubt, do some research. Any website that prompts you to install a “codec” or “plugin” that comes from the same site, or an unknown site, is untrustworthy. Software with a corporate brand, such as Adobe Flash Player, must be acquired directly from the developer. No intermediary is acceptable, and don’t trust links unless you know how to parse them. Any file that is automatically downloaded from a web page without your having requested it should go straight into the Trash. A website that claims you have a “virus,” or that anything else is wrong with your computer, is rogue.
    In OS X 10.7.5 or later, downloaded applications and Installer packages that have not been digitally signed by a developer registered with Apple are blocked from loading by default. The block can be overridden, but think carefully before you do so.
    Because of recurring security issues in Java, it’s best to disable it in your web browsers, if it’s installed. Few websites have Java content nowadays, so you won’t be missing much. This action is mandatory if you’re running any version of OS X older than 10.6.8 with the latest Java update. Note: Java has nothing to do with JavaScript, despite the similar names. Don't install Java unless you're sure you need it. Most users don't.
    5. Don't fill up your boot volume. A common mistake is adding more and more large files to your home folder until you start to get warnings that you're out of space, which may be followed in short order by a boot failure. This is more prone to happen on the newer Macs that come with an internal SSD instead of the traditional hard drive. The drive can be very nearly full before you become aware of the problem. While it's not true that you should or must keep any particular percentage of space free, you should monitor your storage consumption and make sure you're not in immediate danger of using it up. According to Apple documentation, you need at least 9 GB of free space on the startup volume for normal operation.
    If storage space is running low, use a tool such as the free application OmniDiskSweeper to explore your volume and find out what's taking up the most space. Move rarely-used large files to secondary storage.
    6. Relax, don’t do it. Besides the above, no routine maintenance is necessary or beneficial for the vast majority of users; specifically not “cleaning caches,” “zapping the PRAM,” "resetting the SMC," “rebuilding the directory,” "defragmenting the drive," “running periodic scripts,” “dumping logs,” "deleting temp files," “scanning for viruses,” "purging memory," "checking for bad blocks," or “repairing permissions.” Such measures are either completely pointless or are useful only for solving problems, not for prevention.
    The very height of futility is running an expensive third-party application called “Disk Warrior” when nothing is wrong, or even when something is wrong and you have backups, which you must have. Disk Warrior is a data-salvage tool, not a maintenance tool, and you will never need it if your backups are adequate. Don’t waste money on it or anything like it.

  • How to maintain gap between table and graph in a report

    HI,
    I have a report in which a graph is placed below a table  and data in the table gets increased with time , then how to maintain the gap as constant between table and the graph ?? Like i have 50 rows in a table and then next day 10 rows are added but then i want maintain same gap between the table and graph???

    >Right click on chart.
    >Open the property and go to the relative position.
    >Select the distance of the upper left point of the chart in relation to another report element by entering - the number of pixels; the part of the tavfrom which youble want to measure the pixels (in the first drop-down list); the report element from which you want to measure the pixels (in the second drop-down list).
    >Repeat this for the distance of the lower left point of the chart.
    Hope this will help you out.

  • How to maintain mulitple versions of universe

    We are planning multiple projects related to BO reports and each project is going in different time.
    How to maintain 2 versions of Universe, when we migrate universe for the Project 1 which is going ahead of the Project 2, I don't want to show the Classess, Objects of Project 2.
    Currently I am hiding the classess which goes later. But is there any feature in BO to maintain multiple versions.
    I am thinking of maintaining a good documentation on what am I adding, modifying, deleting for the project 2 and apply those changes to Project 1 related Universe and deploy when we migrate the universe for Project 2.
    But, I see lot of work will be duplicated as well as lot of documentation, and overtime it becomes a night mare.
    Anybody was in similar situation, and how did you handle it.
    Currently we are using BO XI R2, and planning to migrate to XI 3.0 in near future.
    Anybody know BO has any best practices document on this kind of situation ?
    Thank you in advance for your time.

    when you are talking about versioing , starting form XI 3.1 SAP business objects released the BusinessObjects LifeCycle Manager for XI 3.1
    find more details here
    http://help.sap.com/businessobject/product_guides/boexir31/en/xi31_LCM_User_en.pdf
    good luck
    Amr

  • How to maintain year of experience required for a position?

    Hi All,
    There is a very requirement for a position like "3 years of experience as Executive" I dont know how to maintain this requirement in SAP. Right now we have created a qualification named "Executive Experience" with a time scale assigned to it with a validity period of one year so HR dept must change the scale evey year. It works but it's not best practice. I know if there is a way we can use employee past and current work history to determine the level of experience and also how to define this requirement in position profile.

    Hi Dilek,
    I maintained all those thing. But i have to do the selection process on the basis of position with year of experience. While doing the selection process via Position or Qualification its picking up the exact applicant. I created a career as 3 years as you said so that the minimum year of experience for that position is 3 years. Then where i can give the year of experience for the applicant? Even though i maintained the previous employer details as 2 years the system is picking up the applicant. Logic wise how to do this?
    Please help me to sort out this problem.
    Thanks in advance,
    Magesh S.

  • How to maintain trend info on CITADEL SQL Query

    Hi All,
    I'm using ms excel via ODBC connection to extract data from CITADEL via SQL queries. In LabVIEW DSC Module there are an option in the function "Read Historical Traces" thats maintain trend info of tag if no data is recorded in the selection time.
    When i try to get CITADEL data via SQL if no data is recorded in that period the result is a blank column. How to maintain trend info or in this case?

    Good afternoon, Bruno
    Follow this link, please verify readiness if the procedure is correct if the problem persists please contact us.
    Citadel Database Querying and Exporting Data to Excel
    http://zone.ni.com/devzone/cda/epd/p/id/2001
    Overview of Citadel Historical Database Archiving Methods
    http://zone.ni.com/devzone/cda/tut/p/id/3751
    Accessing Citadel 4 Data with Microsoft Excel
    http://zone.ni.com/devzone/cda/tut/p/id/3813
    Can I Change the Default Timeout for the Read Historical Trend (s) in DSC VI?
    http://digital.ni.com/public.nsf/allkb/513C871B883E34A386256D040071C97F?OpenDocument
    Sincerely,
    Mauro Vera
    Mauro Vera
    Applications Engineer
    National Instruments

  • How to Maintain SLA in Complaint transaction

    Dear all,
    How to maintenance SLAs for CRM complaints transaction.
    Scenario:
    our client wants to store Complaint processing time in SAP. if complaint is coming through phone..it has to be addressed with in 1 day, if customer directly comes it has to be resolved with in 1 hour like that....
    can we map this in complaint transaction..How to configure this in SAP CRM?
    We are not maintaining Service Contracts per each customer in our system.
    Your suggestions are highly appreciated
    Thanks & Best regards
    Raghu ram

    Hi Ram, Thanks for the response but it is not clear to me. Please help me to understand the scenario in following concerns.
    1. When you say 'Service Master' is it a Service product master which need to be created for SLA's in CRM system?
    2. How to maintain duration details on basis of specific status in the transaction?
    3. If the given duration exceeds for a specific status...how to escalate it to next level?
    4. Is there any way of mapping this scenario instead of maintaining SLA as a product in the transaction?
    Kindly suggest...Your help will be greatly appreciated.
    Regards
    Raghu ram

  • How to maintain experience requirement for a position

    Hi All,
    There is a very common requirement for a position like "5 years of experience in management level" I dont know how to maintain this requirement in SAP. right now we have created a qualification named "Management Experience" with a time scale assigned to it with a validity period of one year so HR dept must change the scale evey year. It works but it's not best practice. I know if there is a way we can use employee past and current work history to determine the level of experience and also how to define this requirement in position profile.
    Thanks in advance,
    Shahin

    I  guess  it will be SU12 Transaction.
    Thanks
    Seshu

  • How to Maintain table "OIB_USERPARAM"

    Dear All,
    Can anyone help me to understand, how to maintain the table "OIB_USERPARAM", is there a T Code or SPRO link? There are some entries in these tables which needs correction. Please help.
    Regards,
    Anubhav

    Dear Anubhav,
    if I remember correctly, the entries in table OIB_USERPARAM are automatically created for each user if he/she first uses transaction O4_TIGER, and are subsequently updated if O4_TIGER is lect correctly (e.g. F3) with the current user settings:
    "When you leave the transaction, the system saves various user parameters (for example, the last used variants and the expansion status of the overview tree) so that the transaction looks the same the next time you call it. "
    which can be found in the SAP online documentation:
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/cb/a45738bc8b210de10000009b38f8cf/frameset.htm
    section : Management of tank dips
    In addition, you can maintain a worklist of tanks for each user.
    I hope this helps a bit,
    Kind regards,
    Markus

Maybe you are looking for

  • 10.5 server, 10.4 clients getting multiple mobile accounts - weird results

    I would like to reopen this discussion: http://discussions.apple.com/thread.jspa?threadID=1664772&tstart=7 What happens visually is that the user appears to log in to a network account, but the Macintosh HD icon changes to the "house" used for the ho

  • Optical audio out issue on 2011 MBP

    I just tried to hook up my month old 15" MacBook Pro to my home theater using an optical cable for audio and the laser is really weak, so the receiver will not recognize the signal. It is visibly dimmer than the signal from my AirPort Express. Amusin

  • ICal on Intel won't subscribe

    We are running multiple calendars within our corporate environment. We each have our own calendar, which is successfully published to our intranet server. The problem that we are having is with subscribing to other calendars. I am using a PowerBook,

  • How to make Double Click To Edit work instead of ClickToEdit for Af:Table

    Hi All, We use AF:Table in clickToEdit mode and most of the time the users use this table for selecting a master record then work on the detail records. To avoid the cost of rendering the selected row as editable we would like to change the behavior

  • Changing Passwords in AD

    At our company we connect to MII 11.5 using our network domain's credentials.  Our policy is every 90 days we have to change our password for security reasons.  After people change their password, they are usually locked out of MII for about 24 hours