How to find current Event Execution

Hi,
    i have a perform which is called in all events like
AT start of selection.
End of selection.
etc..
So do we have any variable in SYST of any FM using which i can find out in which EVENT that perform is called.
it is a standard code so i have only possibility to change that FORM . i cannot make any other changes.

If you can add code into the form you can try this.
data: l_count type i.
import l_count from memory.
if not sy-subrc is inital.
        l_count = 1.
else.
        add 1 to l_count.
endif.
export l_count to memory.
then depending on the l_count value you will be able to know how much time the form has been called.

Similar Messages

  • How to find current user name on a LAN machine....

    how to find current user name in a remote machine in LAN .
    how to find current user name on a local machine in LAN .

    how to find current user name in a remote machine in
    LAN .Many users may be logged on concurrently on the remote machine.
    how to find current user name on a local machine in
    LAN .The user who is running the code in the process would be obtainable via:
    System.getProperty("some property goes here");
    I leave it to you to look at the API documentation for System.getProperties() to see what property name you would retrieve.

  • How to find an event in Tcode FQEVENTS

    Hi all,
    There is an enhancement required to be done by events
    in tcode FQEVENTS.
    But I don't konw how to find the event(you know there are many items)
    related to a special requirement(e.g transaction).Can any1 tell me how?
    thx in advance, points will be rewarded.

    Hi Vincent,
    look at the left side of the screen in FQEVENTS. Choose topics related to your business task. See what number(s) is assigned to the task of your requirement. On the right side of the screen the standard pattern function is shown. Click on info button to see documentation; click on edit button to see function interface and code.
    If you ask your question even more specific in (business) terms and explain your requirement in detail, I can tell you more,
    Regards,
    Clemens

  • How to find current ocfs verison in wondows 2003

    Hi
    how to find current ocfs verison in wondows 2003

    Hello,
    See the Metalink note 749006.1
    You can use ocfscollect
    The output file will show u the information like Volume was formatted with OCFS 9.2.0.6 format
    Cheers,
    Rodrigo Mufalani
    http://mufalani.blogspot.com

  • 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

  • How to find current demand qty wise

    Hi Gurus,
    How to find each material have how much demand  for qty wise currently (free stock, Project stock and sales order stocks) ? and it's there any standard report available? or  how can i do it use with SQVI transaction code?
    Thanks and regards,
    Deethya.B

    Hi,
    demand for the material can be found from the stock requirement list.MD04.
    Run an mrp for the material then the system will calculate the demand and the available qty and the differrance.
    Regards,

  • How to find current database name i am using

    what is the command to find current database name i am using

    Dear user!
    SELECT name
    FROM   v$database;Yours sincerely
    Florian W.

  • How to find out the execution time of a sql inside a function

    Hi All,
    I am writing one function. There is only one IN parameter. In that parameter, i will pass one SQL select statement. And I want the function to return the exact execution time of that SQL statement.
    CREATE OR REPLACE FUNCTION function_name (p_sql IN VARCHAR2)
    RETURN NUMBER
    IS
    exec_time NUMBER;
    BEGIN
    --Calculate the execution time for the incoming sql statement.
    RETURN exec_time;
    END function_name;
    /

    Please note that wrapping query in a "SELECT COUNT(*) FROM (<query>)" doesn't necessarily reflect the execution time of the stand-alone query because the optimizer is smart and might choose a completely different execution plan for that query.
    A simple test case shows the potential difference of work performed by the database:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Session altered.
    SQL>
    SQL> drop table count_test purge;
    Table dropped.
    Elapsed: 00:00:00.17
    SQL>
    SQL> create table count_test as select * from all_objects;
    Table created.
    Elapsed: 00:00:02.56
    SQL>
    SQL> alter table count_test add constraint pk_count_test primary key (object_id)
    Table altered.
    Elapsed: 00:00:00.04
    SQL>
    SQL> exec dbms_stats.gather_table_stats(ownname=>null, tabname=>'COUNT_TEST')
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.29
    SQL>
    SQL> set autotrace traceonly
    SQL>
    SQL> select * from count_test;
    5326 rows selected.
    Elapsed: 00:00:00.10
    Execution Plan
    Plan hash value: 3690877688
    | Id  | Operation         | Name       | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |            |  5326 |   431K|    23   (5)| 00:00:01 |
    |   1 |  TABLE ACCESS FULL| COUNT_TEST |  5326 |   431K|    23   (5)| 00:00:01 |
    Statistics
              1  recursive calls
              0  db block gets
            419  consistent gets
              0  physical reads
              0  redo size
         242637  bytes sent via SQL*Net to client
           4285  bytes received via SQL*Net from client
            357  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
           5326  rows processed
    SQL>
    SQL> select count(*) from (select * from count_test);
    Elapsed: 00:00:00.00
    Execution Plan
    Plan hash value: 572193338
    | Id  | Operation             | Name          | Rows  | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT      |               |     1 |     5   (0)| 00:00:01 |
    |   1 |  SORT AGGREGATE       |               |     1 |            |          |
    |   2 |   INDEX FAST FULL SCAN| PK_COUNT_TEST |  5326 |     5   (0)| 00:00:01 |
    Statistics
              1  recursive calls
              0  db block gets
             16  consistent gets
              0  physical reads
              0  redo size
            412  bytes sent via SQL*Net to client
            380  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              1  rows processed
    SQL>As you can see the number of blocks processed (consistent gets) is quite different. You need to actually fetch all records, e.g. using a PL/SQL block on the server to find out how long it takes to process the query, but that's not that easy if you want to have an arbitrary query string as input.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle:
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • How to find the event time segment details from delivery document

    Hi,
    In the delivery document at header level in Dates tab i have maintained begining Plan date where Event = Shipment.
    But that field is in structure.
    How to fetch those(Begining Plant Date) details in to report,
    I have tried from Function module side also, i have not found any function module which is related to this field.
    If any body give some solution, that will be great help for me.
    Regards
    Lakshmikanth

    I have tried with those table(TSEGH & TSEGE), i have not found the begin plan date for that event. where event = shipment.
    We are using 4.7 version. Here we have found one function module: TSEG_DIALOG_DATA, but iam unable to find the input details.
    Here the input options are:
    IF_HANDLE
    IF_DIALOG_VIEW
    IF_DIALOG_ZONE
    May i know what are these inputs, what exactly i have to pass to this function module.

  • How to find current init.ora file

    I have 2 issues:
    Issue 1:--
    I have some 4-5 init.ora file which are created by some other user and facing difficulties to find exact init.ora which is used by my oracle 9.2 database. same thing for spfile.
    Is there any way so that i can find the currently use init.ora file?
    Issue 2:
    I want to change init.ora file parameters for the oracle9.2(siebel).
    Presently default it is showing optimizer_mode=CHOOSE
    I have tried to change to RULE but not refelecting after database restart.
    at session level i can modify but i want permanent change and for thius i tried with
    user SYS as SYSDBA with
    ALTER SYSTEM SET optimizer_mode=RULE;
    but getting following Oracle erroe message
    ORA-02096 specified initialization parameter is not modifiable with this option
    Cause: Though the initialization parameter is modifiable, it cannot be modified using the specified command.
    Action: Check the Oracle9i Database Administrator's Guide for information about under what scope the parameter may be modified
    How we can make changes in init.ora file?
    Regards
    Junu

    As far as I know, there's no possible way to find out which parameter file was used to start instance. And, even if it was, I don't really see much sense in it because parameter file is a client-side file, and usually it required to start up Oracle instance remotely.
    In principle, parameter files are obsolete beasts, consider using server parameter file (SPFILE) instead. And, for SPFILE, it's pretty easy to find out its location:
    SQL> show parameter pfile
    NAME                                 TYPE        VALUE
    spfile                               string      %ORACLE_HOME%\DATABASE\SPFILE%
                                                     ORACLE_SID%.ORAAs for your ORA-02096 error, you have two opportunities to resolve it.
    If you decided to use SPFILE, create one (for example, using CREATE SPFILE FROM PFILE command), start your instance with SPFILE then issue:
    ALTER SYSTEM SET optimizer_mode=RULE  SCOPE = SPFILE;and bounce your instance.
    If you still wish to use old-style parameter file, you have to add corresponding setting into that file manually (it's a plain text file in fact) and restart instance.
    Regards.
    P.S.: Why do you want to enforce rule-based optimizer by the way?...

  • How to find current SCN?

    What's the easiest way to find the current SCN?

    The OP performed recover until cancel which is an incomplete media recovery and an incomplete media recovery must be followed by an open reset logs.
    From the Concepts and SQL manuals (10gR2 ver)
    [Concepts]
    Incomplete Media Recovery Options
    Because you are not completely recovering the database to the most current time, you must tell Oracle when to terminate recovery. You can perform the following types of media recovery.
    Type of Recovery Function
    Time-based recovery Recovers the data up to a specified point in time.
    Cancel-based recovery Recovers until you issue the CANCEL statement (not available when using Recovery Manager).
    Change-based recovery Recovers until the specified SCN.
    Log sequence recovery Recovers until the specified log sequence number (only available when using Recovery Manager).
    [SQL]
    RESETLOGS | NORESETLOGS
    This clause determines whether Oracle Database resets the current log sequence number to 1, archives any unarchived logs (including the current log), and discards any redo information that was not applied during recovery, ensuring that it will never be applied. Oracle Database uses NORESETLOGS automatically except in the following specific situations, which require a setting for this clause:
    •You must specify RESETLOGS:
    ◦After performing incomplete media recovery or media recovery using a backup controlfile
    ◦After a previous OPEN RESETLOGS operation that did not complete
    ◦After a FLASHBACK DATABASE operation
    •If a created controlfile is mounted, then you must specify RESETLOGS if the online logs are lost, or you must specify NORESETLOGS if they are not lost.
    OP, your best solution since the source db is apparently in noarchive log mode si to go back to your DBA and have him make you a new copy of the database when it is shutdown. You may also consider using a consistent export and loading the copy db via import.
    HTH -- Mark D Powell --

  • Subject: How to find no of executions of a process chain

    Su
    I am developing a query on 0TCT_C21, for a process chain, I am getting average duration, but I also want to get how many times a process chain was executed. I created a calculated key figure (no of execution) but not sure what formula to use or what aggregation to use.
    IN aggregation, if I use reference characteristic as process chain id and  use exception aggregation as total value. Will this give me the result?
    Thanks.

    Hi,
    You can get this by using the Key figure Frequency in the cube and adding this in your query. Create a key figure based on Frequency with restriction of Process type as TRIGGER. This will let you know the number of times process chain has executed in given start and end date.
    Hope this helps
    Regards,
    Akhan

  • How to find current desktop pic

    Hello all,
    I have had the same desktop pic on my MacBook pro for quite some time, and am in the process of backing everything up on my laptop so that I can install Snow Leopard.
    I cannot find my current desktop wallpaper (image) on my drive. I have went to system preferences and desktop/screensaver and it doesn't appear to be in with any of the previous or standard desktop images. Is there a way to find this image?? I do not know the file name but I would really like to save this pic.
    Thanks,
    Norm

    While there may be a way to capture the image you still can see on
    the desktop, most of the methods I can think of won't save it as an
    equally high resolution as an original; and perhaps not as large.
    Depending on what source the image was brought into the computer
    from, and if it was via a User account or put into a system file, an
    image could be hard to locate; if the original is still in the computer.
    And I have (out of curiosity) looked into my system stuff for an image
    I've added to the Desktop as a background; while knowing a duplicate
    or an original was available in another location, or a source folder.
    I've noticed at different times, usually after performing some levels
    of maintenance where certain caches and other items throughout
    the System are affected, that a personally selected folder or image
    file that had been accessed and available from the System Prefs
    Desktop & Screensaver control panel, is no longer found. However
    since I usually bring images into my computer by Date, from my
    digital cameras, I can go back to locate them in at least one place.
    And have not been successful in finding a System location for a
    lead on where to look for the image, apparently so orphaned.
    You could try to get a screen shot, for later sight comparison in
    your other user folders. And also if you happen to make a clone
    of your complete system for later access, since it may save the
    image as a desktop background so long as it was present at a
    point in time when the Clone was made.
    I've made clones and found the same screen background to be
    very distracting when booted into a familiar scene. So I change
    them eventually (for reference that I've booted from a clone.)
    Perhaps someone who has gone searching their folders & files
    for the source of a Desktop image currently presented may be
    of help in re-tracing steps to find where your latent image is in
    hiding; since you can't find the source image you first loaded.
    Sorry to be of little/no help.
    Good luck & happy computing!

  • How to find current month, previous month Net Sales by means of formula?

    Hello Gurus,
    I need my crystal report to display data as below:-
                                            Net Sales
    PG1         Current month      Previous Month     Prior year-month    %Variance
    Panels      $                          $                          $
    Frames
    Can anyone kindly suggest formula for generating these values?
    I have already formulated current, previous, prior year months' start dates and end dates.
    Further details:-
    Data filters are requested for Company-->Region-->Customergroup-->All Product group
    Datasource is Universe
    Reporting for 2 years data
    Your suggestions and help will be much appreciate.
    Thanks,
    Prarthana

    hi Prarthana,
    there are a couple of different ways of doing this...one way is to create formulae similar to below...
    1) formula for current month sales
    if month({your date field}) = month(currentdate)
    and year({your date field}) = year({your date field})
    then {your sales field}
    2)  formula for previous month sales
    if month({your date field}) = month(dateadd("m", -1, currentdate))
    and year({your date field}) = year(dateadd("m", -1, currentdate))
    then {your sales field}
    3) formula for 2 months ago
    if month({your date field}) = month(dateadd("m", -2, currentdate))
    and year({your date field}) = year(dateadd("m", -2, currentdate))
    then {your sales field}
    put those formulas on your details sections and then right click on them and choose Insert > Summary and choose Sum as the summary type and change the Summary Location to match the appropriate groups.
    cheers,
    jamie

  • How to find DBMS_JOB.SUBMIT execution time

    Hi,
    I am running one job through DBMS_JOB.SUBMIT built-in. When i submit this job it is taking some to complete. I want to know how much time it is running. once the job is finished entry will be disappeared from DBA_JOBS/USER_JOBS. I hope there is no direct way to do it. Can you suggest any alternative (like trigger or some thing) method?
    Regards,
    Raj

    Instrument the procedure that you call from the DBMS_JOB, then you can monitor how long it takes to execute the procedure.

Maybe you are looking for