Urgent!! how to find the recent committed record

how to find the recent commited record
if the records are inserted at the same time?

Use ORDER BY(DateColumn)...
I don't have any other idea...

Similar Messages

  • How to find the recent committed record

    how to find the recent commited record
    if the records are inserted at the same time?

    Use ORDER BY(DateColumn)...
    I don't have any other idea...

  • How do i find the recent commited record?

    How to find the recent record commited in the database?
    i have a table which stores the itemcode,stockupdated(number) and date on which the stocks are updated. A record is inserted in the table through a trigger. if two records of the same itemcode have got committed at the same instance(with the same time gap)..how do i find the recent committed record through SQL

    hi,
    i think, u can do that using the rowid, select the rowid on ur table in which u r inserting records in descending order.
    "select * from table_name
    order by rowid desc;"
    and the first rowid is unique corresponds to each reocrod inserted in the table.
    Regards,

  • How to find the number of records per months  in cube

    Hi,
      how to find the number of records per months for my all cubes?
      Can i use the ListCube transaction to find totl number f records per cube monthwise ?
    Jimmy

    Hi,
    Here is a program to generate no of records and list of ODS and Cubes in Active version.Schedule this program in background and create a cube to load this information and schedule to the data from the file generated by the program. Schedule this all per you requirement.
    1.Copy the code into your Z<programname> from Se38.
    2.change the FILENAME in CALL FUNCTION 'GUI_DOWNLOAD' in the program to the location from where you can pick the information to load data to cube(eg Application server).
    3.Save program.
    4.Schedule the program in background as required
    5.Create cube with infoobjects to hold no of records and Infoprovider name
    6.Load this cube based on event after the program job is done.
    Hence you can report on this cube to see no of records in  CUBE or ODS in your box.
    Please find the code below.
    Cheers,
    Kavitha Kamesh.
    types: begin of itabs ,
          tabname type dd02l-tabname,
          end of itabs.
    data: itab type itabs occurs 0 with header line.
    data: counter type i.
    data: begin of itab1 occurs 0,
    tabname type dd02l-tabname,
    counter type i,
    end of itab1.
    DATA: ITABTABNAME TYPE STRING.
    DATA: LENGTH TYPE I.
    DATA: OBJECT(30).
    data: str(6) type c.
    select  tabname from dd02l into table itab where ( tabname LIKE  '/BIC/F%' or tabname LIKE  '/BIC/A%00' )
    and TABCLASS = 'TRANSP' and AS4LOCAL = 'A'.
    loop at itab.
      select count(*) from (itab-tabname) into counter.
      str = itab-tabname.
      if str = '/BIC/F'.
    LENGTH  = STRLEN( ITAB-TABNAME ).
      SHIFT  itab-tabname BY 6 PLACES LEFT.
    ELSEIf  str = '/BIC/A'.
      SHIFT  itab-tabname BY 6 PLACES LEFT.
      LENGTH  = STRLEN( ITAB-TABNAME ).
    LENGTH = LENGTH - 2.
    endif.
      itab1-tabname = itab-tabname(LENGTH).
      append itab1.
      itab1-counter = counter.
      clear itab-tabname.
      clear:  COUNTER.
    endloop.
    *********** itab1
    loop at itab1.
    write:/ itab1-tabname, itab1-counter.
    endloop.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
    *   BIN_FILESIZE                    =
        FILENAME                        = 'c:records.xls'
        FILETYPE                        = 'ASC'
    *   APPEND                          = ' '
        WRITE_FIELD_SEPARATOR           = ','
    *   HEADER                          = '00'
    *   TRUNC_TRAILING_BLANKS           = ' '
    *   WRITE_LF                        = 'X'
    *   COL_SELECT                      = ' '
    *   COL_SELECT_MASK                 = ' '
    *   DAT_MODE                        = ' '
    *   CONFIRM_OVERWRITE               = ' '
    *   NO_AUTH_CHECK                   = ' '
    *   CODEPAGE                        = ' '
    *   IGNORE_CERR                     = ABAP_TRUE
    *   REPLACEMENT                     = '#'
    *   WRITE_BOM                       = ' '
    *   TRUNC_TRAILING_BLANKS_EOL       = 'X'
    *   WK1_N_FORMAT                    = ' '
    *   WK1_N_SIZE                      = ' '
    *   WK1_T_FORMAT                    = ' '
    *   WK1_T_SIZE                      = ' '
    * IMPORTING
    *   FILELENGTH                      =
      TABLES
        DATA_TAB                        = itab1
    *   FIELDNAMES                      =
    * EXCEPTIONS
    *   FILE_WRITE_ERROR                = 1
    *   NO_BATCH                        = 2
    *   GUI_REFUSE_FILETRANSFER         = 3
    *   INVALID_TYPE                    = 4
    *   NO_AUTHORITY                    = 5
    *   UNKNOWN_ERROR                   = 6
    *   HEADER_NOT_ALLOWED              = 7
    *   SEPARATOR_NOT_ALLOWED           = 8
    *   FILESIZE_NOT_ALLOWED            = 9
    *   HEADER_TOO_LONG                 = 10
    *   DP_ERROR_CREATE                 = 11
    *   DP_ERROR_SEND                   = 12
    *   DP_ERROR_WRITE                  = 13
    *   UNKNOWN_DP_ERROR                = 14
    *   ACCESS_DENIED                   = 15
    *   DP_OUT_OF_MEMORY                = 16
    *   DISK_FULL                       = 17
    *   DP_TIMEOUT                      = 18
    *   FILE_NOT_FOUND                  = 19
    *   DATAPROVIDER_EXCEPTION          = 20
    *   CONTROL_FLUSH_ERROR             = 21
    *   OTHERS                          = 22
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • How to find the number of records in ods?

    how to find the number of records in ods?
    Pls suggest the solution apart going to the table of ods and seeing the number of records.
    Is there any program or function module to see the number of records in ods?
    For eg: SAP_INFOCUBE_DESIGNS is a program which gives the detail (number of records) of infocube.

    Hi,
    I was looking at this and found the following tables that may be of help.
    One of these tables will include a summary of the record count of all the tables in your system based on the last time each table had it's database statistics calculated:
    DBSTATTADA
    DBSTATTDB2
    DBSTATTDB4
    DBSTATTDB6
    DBSTATTINF
    DBSTATTMSS
    DBSTATTORA
    We run on an Oracle database so the table record counts can be taken from DBSTATTORA. Type in AZ in table selection field in SE16 to restrict the output to ODS (or DSO) tables only.
    The record count is at the time indicated in the timestamp field. Obviously this is not real time but should not be too out of date - if it is you may be having performance issues and should get your DBA / Basis to run a full refresh of DB stats.
    Hope this helps, alhtough not real time the table should give you a decent indication of the size of all your ODS objects (or any other table for that matter!)

  • How to find the recent changes done in the workflow by user id ?

    Hello all,
    How to find the recent changes done in the workflow by user id ?
    I have made changed in Production system .
    Like changing the status ,
    changing the agent ,
    but for these it will , not ask for any request .
    So i want to know is there any method to find what are the changes done by me ?
    Thanks and regards
    Prem

    Hi,
    This is caused by mandant settings in scc4. It's better not to make changes in PRD, because then your DEV en QA systems differ.
    Kind regards, Rob Dielemans

  • How to keep the Recent Call Record more than a week?

    How to keep the Recent Call Record more than a week? I found the iPhone only can keep the Recent Call Record for only a week.

    I have to disagree with your response with respect. My i phone is limiting me to call going back only 7 days ie today is 29 July and my call log will only go back to 22 July. I have only 40 calls logged for that period. I cannot view up to the 100 you mention. I have included all calls for a single caller as well ie one caller shows 7 so ive counted that as 7 calls. There appears no way to set up to 100 in the settings
    Thanks
    Graham

  • Urgent    How to find the password of dblink in oracle

    How to find the password of dblink in oracle
    Iam currently working
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    I don't have dba rights
    please help me

    John Spencer wrote:
    You are correct, it is not populated in 11g, but is in 10G.
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for 32-bit Windows: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    SQL> create database link test_link connect to scott identified by tiger using 'sol10';
    Database link created.
    SQL> select db_link,password from user_db_links where db_link like 'TEST%';
    DB_LINK                                       PASSWORD
    TEST_LINK.REGRESS.RDBMS.DEV.US.ORACLE.COM
    SQL> select name,password from sys.link$ where name like 'TEST%';
    NAME                                          PASSWORD
    TEST_LINK.REGRESS.RDBMS.DEV.US.ORACLE.COM
    SQL> select name,passwordx from sys.link$ where name like 'TEST%';
    NAME                                          PASSWORDX
    TEST_LINK.REGRESS.RDBMS.DEV.US.ORACLE.COM     05C9AF8C3A16DBE5F47715B67FD0652BE4
    SQL> SY.

  • How to find the First Modified record

    Hi,
    I have one table with the fields ID, branch and modified_date.
    here nothing is unique. How can I modify a record with new
    branch name of a perticular id(will have multiple) where
    modified date is oldest.
    here date is time stamp.
    Though I created with date and time it is showing only date not
    time when I query.
    Ex:
    1, Eng, 10-10-1999 10:10:10('mm-dd-yyyy hh:mi:ss')
    1, Mat, 10-10-1999 10:10:09
    is there any way to get this (1, Mat, 10-10-1999 10:10:09)
    record.
    Thanks in advance,
    Srini.

    There are a few ways to do this ...
    i) Start by writing code to identify the lowest modified_date
    for each ID ...
    select ID, min(modified_date)
    from my_table group by ID
    Then, since the result of a query is logically the same as a
    table, you could do either ...
    select * from my_table where (ID, modified_date) in
    select ID, min(modified_date)
    from my_table group by ID
    ... or ...
    select t1.ID, t1.branch, t1.modified_date
    from my_table t1,
    select ID, min(modified_date) min_modified_date
    from my_table group by ID
    ) t2
    where t1.ID = t2.ID and t1.modified_date =
    t2.min_modified_date
    ii) You could create the requirement that no lower
    modified_date should exist for a particular ID ...
    select t1.ID, t1.branch, t1.modified_date
    from my_table t1
    where not exists (
    select 0 from my_table t2 where t2.ID = t1.ID and
    t2.modified_date < t1.modified_date)
    iii) if you can guarantee the existence of an index defined on
    the ID and modified_date columns (called my_index in this
    example) you could do ...
    select t1.ID, t1.branch, t1.modified_date
    from my_table t1
    where t1.modified_date = (
    select /*+ index_asc (my_table my_index) */
    t2.modified_date from my_table t2 where t2.ID = t1.ID and
    rownum = 1)
    You should test each of these options with your own data
    set and see which works best for you. Some of them will
    return the first matching rows of data very quickly but take
    longer to return all of them, while others take a long time to
    return the first rows but find the full set faster.
    Make sure you run ANALYZE on your table whatever you do.

  • Urgent-How to find the tables which are used in  DB02 transaction

    Hi,
    Can anybody help me in finding the tables  in Tablespaces tabstrip & Tables n Indexes tabstrip  in DB02 transaction??

    Hi,
    open the following link.
    http://books.google.co.in/books?id=jTTrZjucb_QC&pg=PA37&lpg=PA37&dq=dbo2%2Bsap&source=web&ots=FgA9pC3u24&sig=sOG3EJRm5HGW2aFpkVVH_oxBjjo&hl=en#PPP1,M1
    Master data load failure
    Reward if Helpful
    Jagadish

  • Urgent: how to find the shift allocated to an employee

    hi all
    i need to display the shift an employee is working in. I have checked table T77ED. How can i get a link between the pernr and shift or any other link with which an employee's shift can be found out.
    Points assured.
    thanks

    You can try the function call HR_PERSONAL_WORK_SCHEDULE.
    ~Suresh

  • How to find the last update date time and user of record field peoplecode

    how to find the last update date time record field peoplecode?
    Thank you.

    One can check the last update date time using the following query
    SELECT LASTUPDDTTM FROM PSPCMPROG WHERE OBJECTVALUE1 LIKE 'RECNAME' AND OBJECTVALUE2 LIKE 'FIELDNAME'

  • How to find the Commitment cost for a PM order using tables ?

    Hello all ,
           How to find the Commitment cost for a given PM order using table  .
    Thanks and regards ,
    Prem.

    Issue got resolved

  • How to find the records using contains with the word like this 'some text-some text'?

    Hi,
    How to find the records using the full text contains keyword and that column contains ‘some text-some text’
    In the above some text can be anything.
    Does anybody know please let me know.
    Thanks,

    Hello,
    You can try to create a Full Text Index on the table and use CONTAINS() to get the record which contains the specify words.
    For example:
    SELECT * FROM TABLE WHERE CONTAINS(column_name, 'some text')
    Reference:
    Full-Text Search (SQL Server)
    Creating Full Text Catalog and Full Text Search
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • How to find the owner of checked-out record?

    Hello Experts,
    How to find the owner of checked-out record?

    Hi,
    I completely agree with Ravi.
    If you are using MDM 7.1 you can see the Job ID of that record on the right in MDM
    Login as Admin in MDM and search for the job ID to find the owner of the record
    Regards,
    Antony

Maybe you are looking for

  • ERROR: timeout during allocate

    Dear All, When i am establish RFC from Dev to Pro, i am getting Error in SM59 is "ERROR: timeout during allocate" Here i am copying my dev_rd log please help me to solve this problem Thu Oct 29 18:33:29 2009 ***LOG Q0I=> NiPConnect2: connect (78: Con

  • Why is the render quality less than the source files

    I am setting render quality at Best, Full 1920 x 1080.   The movie quality in either a quick time or windows media player file is terrible.  These same files export at good quality at school with the same settings.  Why am I getting poor image qualit

  • Remove vodcast: mp4 file stays on PC

    I have found that my iTunes has something of a bug (I use version 6.0.4.2) When I am finished viewing a Vodcast, I always delete it (as to free up space) Always when you delete a podcasts or a song from iTunes, you are prompted whether you really wan

  • Safari 5.0.2

    The latest Safari 5.0.2 will not load any pages and crashes when I press command/shift/h I am running System 10.5.8 Anyone have any ideas?

  • My Computer shuts down when I try to Sync photos - any suggestions why?

    Hi, I am the proud owner of an I Pod Nano (8GB version). I have got a load of songs on (eventually!!), but when I try to put photos on from a file on my computer it says "optimising photos" and then shuts down my laptop. I did have photos on at one s