Need a FM which returns the last modified date& time

Hi,
Kindly Suggest me if any Function Module is there which returns the last modified date& time for tables HRP1000 and HRP1001.
Rgds
Kishor.C

just check the following tables..
CDHDR - Change document header
CDPOS - Change document items
you can use this function module..
BPCT_CHANGEDOCUMENT_DISPLAY
Edited by: Arunima Rudra on Apr 14, 2009 4:49 PM

Similar Messages

  • How can you find the Last Modified Date of a particular table

    Hi,
    I want to show to the LAST MODIFIED date of a particular table to the user before refreshing the table with new data. Experts please suggest me the way using JDBC-SQL connection.

    There is no generic SQL way for this. It depends completely on the features your DBMS offers. With Oracle you'd need to create column which gets updated in a trigger. I believe MS SQL Server offers a special data type for this, which is updated automatically. I don't know about others.

  • Storing the last modified date for files in a HashMap

    This method gets a list of all the .java files in the source subdirectory, gets the last modified date for them and stores the file name and last modified date in a HashMap.
    import java.util.HashMap;
    import java.io.FilenameFilter;
    import java.io.File;
    import java.util.ArrayList;
    public class myClass
         public static void main(String[] args)
              HashMap result = getLastModified();
         static FilenameFilter javaFilter = new FilenameFilter()
            public boolean accept(File dir, String name)
                return name.endsWith(".java");
         public HashMap getLastModified()
              HashMap lastModified = new HashMap();
              ArrayList javaFiles = new ArrayList();
              File sourceDir = new File(".\\Source");
              File currentFile;
              long lLastModified;
              //get a list of all the .java files in the source directory
              javaFiles=listFiles(javaFilter);
              //for all .java files get and store the last modified date
              for(int i=0; i<javaFiles.size(); i++)
                   currentFile=(File)javaFiles.get(i);
                   lLastModified=currentFile.lastModified();
                   lastModified.put(currentFile, lLastModified);
              return lastModified;
    }The problems I am getting are:
    >
    The method listFiles(FilenameFilter) is undefined for the type myClass
    and
    >
    The method put(Object, Object) in the type HashMap is not applicable for the arguments (File, long)
    can anyone help? What's the best way to go aobut this?

    Thanks for the replies abenstex I modified it so that javaFiles is now a File[] and made the change you suggested but I still have the second problem, here's the code so far:
    import java.util.HashMap;
    import java.io.FilenameFilter;
    import java.io.File;
    import java.util.ArrayList;
    public class myClass
         public static void main(String[] args)
              HashMap result = getLastModified();
         static FilenameFilter javaFilter = new FilenameFilter()
            public boolean accept(File dir, String name)
                return name.endsWith(".java");
         public HashMap getLastModified()
              HashMap lastModified = new HashMap();
              File[] javaFiles = {};
              File sourceDir = new File(".\\Source");
              File currentFile;
              long lLastModified;
              //get a list of all the .java files in the source directory
              javaFiles=sourceDir.listFiles(javaFilter);
              //for all .java files get and store the last modified date
              for(int i=0; i<javaFiles.length; i++)
                   currentFile=(File)javaFiles;
                   lLastModified=currentFile.lastModified();
                   lastModified.put(currentFile, lLastModified);
              return lastModified;

  • How to find the Last modified date and time of a package

    Hi,
    We need a clarification on how to find the Last modified date and time of a package in Oracle. We used the example below to explain our scenario,
    Lets consider the following example
    Let A, B be two packages.
    Package A calls the package B. So A is dependent on B.
    When A is compiled the TIMESTAMP,LAST_DDL_TIME in USER_OBJECTS gets updated.
    Now there a modification in package B so it is compiled. There is no modification in package A.
    Now when the package A is executed the TIMESTAMP,LAST_DDL_TIME in USER_OBJECTS gets updated but we did not make any change in Package A. Now we need to find last modified date and time of the package A . So we can not rely on the TIMESTAMP,LAST_DDL_TIME in USER_OBJECTS . Can u please tell us any other solution to get last modified date and time of the package A .
    Regards,
    Vijayanand.C

    Here is an example:
    SQL> SELECT OBJECT_NAME,CREATED,LAST_DDL_TIME,TIMESTAMP,STATUS FROM USER_OBJECTS
    2 WHERE OBJECT_NAME = ANY('A','B');
    OBJECT_NAM CREATED LAST_DDL_TIME TIMESTAMP STATUS
    A 20-MAY-2004 10:57:32 20-MAY-2004 10:57:32 2004-05-20:10:57:32 VALID
    B 20-MAY-2004 10:58:22 20-MAY-2004 10:59:04 2004-05-20:10:59:04 VALID
    SQL> CREATE OR REPLACE PROCEDURE A AS
    2 BEGIN
    3 NULL;
    4 NULL;
    5 END;
    6 /
    Procedure created.
    SQL> SELECT OBJECT_NAME,CREATED,LAST_DDL_TIME,TIMESTAMP,STATUS FROM USER_OBJECTS
    2 WHERE OBJECT_NAME = ANY('A','B');
    OBJECT_NAM CREATED LAST_DDL_TIME TIMESTAMP STATUS
    A 20-MAY-2004 10:57:32 20-MAY-2004 11:01:28 2004-05-20:11:01:28 VALID
    B 20-MAY-2004 10:58:22 20-MAY-2004 10:59:04 2004-05-20:10:59:04 INVALID
    SQL> EXEC B
    PL/SQL procedure successfully completed.
    SQL> SELECT OBJECT_NAME,CREATED,LAST_DDL_TIME,TIMESTAMP,STATUS FROM USER_OBJECTS
    2 WHERE OBJECT_NAME = ANY('A','B');
    OBJECT_NAM CREATED LAST_DDL_TIME TIMESTAMP STATUS
    A 20-MAY-2004 10:57:32 20-MAY-2004 11:01:28 2004-05-20:11:01:28 VALID
    B 20-MAY-2004 10:58:22 20-MAY-2004 11:01:53 2004-05-20:11:01:53 VALID
    Note that the date under the column 'created' only changes when you really create or replace the procedure.
    Hence you can use the column 'created' of 'user_objects'.

  • How to find the last modified date of a workflow.

    How to find the last modified date of a workflow.
    thanks.

    Hi,
    There is nothing as standard that does this - you could write some code to determine the latest begin_date from each of the workflow tables and assume that this was the last time that the definition changed.
    What you need is something like this:
    select max(wfa.begin_date)
    from   wf_process_activities  wpa
    ,      wf_activities          wfa
    ,      wf_item_types_tl       wit
    where  wpa.activity_item_type = wfa.item_type
    and    wpa.activity_name      = wfa.name
    and    wfa.version            = (select max(version) from wf_activities wfa1 where wpa.activity_item_type = wfa1.item_type and wpa.activity_name = wfa1.name )
    and    wpa.process_item_type  = 'your item type'
    and    wpa.process_item_type  = wit.namewhich I think gives what you want.
    HTH,
    Matt
    Alpha review chapters from my book "Developing With Oracle Workflow" are available on my website:
    http://www.workflowfaq.com
    http://forum.workflowfaq.com
    NEW! - WorkflowFAQ Blog at http://thoughts.workflowfaq.com

  • Where is the "Last Modified Date"?

    I'm in Report Builder trying to create an Incident report that includes the "Last Modified Date" value.  However, I can't seem to find it in any of the views using the Report Builder wizard. 
    Can someone point me to the right source for that value?
    Thanks,
    Chuck
    Chuck Roy, Pennsylvania Turnpike Commission

    Chris,
    For reports, I would want to use the same data that SCSM uses in Views and Templates.  When creating a View for Incidents you can select based on the Last Modified Date.  When you create an email Template for Incidents, you can select the Last
    Modified date to be inserted into the template.
    In order for our report to display the exact same Incidents as a View that selects based on Last Modified Date, the report needs to use the Microsoft definition of Last Modified Date.
    Generally, I agree with your definition.   However, an easier definition may be that Last Modified Date equals the most recent History log date on the History tab. 
    Either way, as I mentioned above, it needs to be the same as is used in Views and Templates, recognizing that there are timing differences between the data base and data warehouse.
    Chuck
    Chuck Roy, Pennsylvania Turnpike Commission

  • Getting the last modified date of the contact in addressbook

    Hi all,
    Is there any way to get the last modified date and created date of the contacts stored in address book . I have gone through the api docs and could nt find any api's to get the modified date of the particular contact .
    Any help would be greatly appreciated ..
    Regards,
    Mohammed Sadiq.

    Hi,
    Is the above feauture available in AddressBook fraamework ?
    Best Regards,
    Mohammed Sadiq

  • How do I get the last changed date & time of a file in app server?

    Hi Experts,
    How do I get the last changed date & time of a file in app server?
    Thanks!
    - Anthony -

    Hi,
    that's what I use...
      CALL 'C_DIR_READ_FINISH'.             " just to be sure
      CALL 'C_DIR_READ_START' ID 'DIR' FIELD p_path.
      IF sy-subrc <> 0.
        EXIT. "Error
      ENDIF.
      DO.
        CLEAR l_srvfil.
        CALL 'C_DIR_READ_NEXT'
          ID 'TYPE'   FIELD l_srvfil-type
          ID 'NAME'   FIELD l_srvfil-file
          ID 'LEN'    FIELD l_srvfil-size
          ID 'OWNER'  FIELD l_srvfil-owner
          ID 'MTIME'  FIELD l_mtime
          ID 'MODE'   FIELD l_srvfil-attri.
    *    l_srvfil-dir = p_path .
        IF sy-subrc = 1.
          EXIT.
        ENDIF." sy-subrc <> 0.
        PERFORM p_to_date_time_tz
          USING    l_mtime
          CHANGING l_srvfil-mod_time
                   l_srvfil-mod_date.
        TRANSLATE l_srvfil-type TO UPPER CASE.               "#EC TRANSLANG
        PERFORM translate_attribute CHANGING l_srvfil-attri.
        CHECK:
          NOT l_srvfil-file = '.',
          l_srvfil-type = 'D' OR
          l_srvfil-type = 'F' .
        APPEND l_srvfil TO lt_srvfil.
      ENDDO.
      CHECK NOT lt_srvfil IS INITIAL.
      pt_srvfil = lt_srvfil.
    FORM p_to_date_time_tz  USING    p_ptime  TYPE p
                            CHANGING p_time   TYPE syuzeit
                                     p_date   TYPE sydatum.
      DATA:
        l_abaptstamp TYPE timestamp,
        l_time       TYPE int4,
        l_opcode     TYPE x VALUE 3,
        l_abstamp    TYPE abstamp.
      l_time = p_ptime.
      CALL 'RstrDateConv'
        ID 'OPCODE' FIELD l_opcode
        ID 'TIMESTAMP' FIELD l_time
        ID 'ABAPSTAMP' FIELD l_abstamp.
      l_abaptstamp = l_abstamp.
      CONVERT TIME STAMP l_abaptstamp TIME ZONE sy-zonlo INTO DATE p_date
          TIME p_time.
    ENDFORM.                    " p_to_date_time_tz
    Regards,
    Clemens

  • 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'

  • Importing Notes into SOD - How can I set the Last Modified Date?

    We are still in the process of getting all of our users over to Siebel. We launched in waves and therefore have some users who were still utilizing the legacy systems while some were working away in Siebel. What I'm trying to do now is to take the reps notes from the legacy system and bring them back over into Siebel. I've got the file created with the account external id, subject, note(description) and the date the note was created in the legacy system. When I try to import the date can not be set and is defaulting to the date the acutal note was created in Siebel.
    This is a problem as I have 3 years of account history that must get loaded and if I import it all now it will push the current notes in the system to the very bottom of the list which will upset the reps who started uisng Siebel in the first wave.
    My goal is simply to order them from newest on top to oldest but I can't seem to find a way to do that using the import tool as Last Modified Date isn't an option for me to import.
    Is there a way to do it? If not does anyone know of a work around to achieve the same goal?
    Any help is much appreciated.
    - john

    Would that show up in the Notes section of the account detail if I do that? I've never tried that one before.
    After the R16 releiase the reps use the "hover" functionality to see their notes data in the top right of the application (or in the notes section of the account details).
    Edited by: Xeroid05 on Nov 25, 2009 8:09 AM

  • ITunes 11 no longer updates the song play count or the last played date/time on Win7 and on Macs

    I've downloaded and installed iTunes 11 on 2 Win7 PC's, on my Macbook (Mountain Lion), MacbookPro (Snow Leopard) and new Mac mini (Mountain Lion). The song "play count" and "last played date/time" do not update after playing songs on any platform. This problem needs to be corrected as I have 2 iPods and an iPhone that I like to sync every few days. I have not tried the sync yet and will not as long as this problem persists.

    I read another similar post about this same issue, where it was said the the "next play" list could be cleared to get the play count and last played date/time to update. That is true, however iTunes stops playing from the playlist entirely - all you hear is the single song. This is not any sort of upgrade or fix. For the sake of one nicety, Apple programmers have broken a fundamental feature and function. This is not good!

  • How to find the last executed date ,time and user of the quaery

    Hi,
    How to find the following information of the Query
    1. Where all the place these queries/web template used.
    2. When was it last executed.
    3. Who executed last.
    Regards,
    Hari

    hi Hari,
    you can try table /BI0/APERS_BOD00
    for query, first go to table RSRREPDIR, give field COMPID
    with query technical name and get GENUNIID, then go to table /BI0/APERS_BOD00, field TCTOBJNM = RSRREPDIR-GENUNIID, TCTUSERNM and TCTTIMSTMP -> user name and last executed.
    for web template, give field TCTOBJNM in table /BI0/APERS_BOD00 with web template name.
    hope this helps.

  • Identify modified date/time and name of SOURCE file

    I can't seem to find a way to store/retrieve the last-modified date/time of the SOURCE file (as well as filename) used to create a PDF. I looked into the default metadata, but it seems to store only the last-modified date of the PDF.

    I'm sorry, maybe I'm a little slow, but I would need more detailed specs on how to solve the problem. Is this something you have implemented yourself? If so, how?

  • Reportable Last Modified Date and Time Field

    Reportable Last Modified Date and Time Field
    Hello,
      We need a reportable RequestCenter 'last modified date/time' database field that is refreshed when the 'Comments and History' field is updated.  Any ideas would be appreciated.  Thanks! 

    No, unless you can use an FTP client.

  • Displaying Last Modified Date

    I would like to add the Last Modified Date (of the GUI, not db) within my application, how can this be done?

    Hi,
    Can you elaborate a little? What exactly do you want the last modified date of? (the page? the application itself? something else?)
    If it's just the last time the application was updated, the following query should work -
    select
      last_updated_on
    from
      apex_applications
    where
      application_id = :APP_IDYou could obviously use that to set the value of a page item or application item etc to display in your page template.
    Really need more information from you to give a more specific answer.

Maybe you are looking for

  • Overlapping Of Message

    Hi All The ABAP Gurus, I have made a BDC Program For Vendor code creation by using Call Transaction XK01. It is working fine I am using it for multiple vendor creation. After successfull creation I have displayed an ALV of all the Vendor code created

  • Suggestions required!!

    this is not a query i am posting. it wasjust an idea i had and was wondering what other prog. might think of it. java has an extensive library and still is not used to build standalone client applications. this is because an exe file is not generated

  • Multiple connections/roles on same machine for same site?

    As a Contribute CS3 Administrator (newbie; just converted a Dreamweaver site to work with Contribute), can I set up multiple connections to the same site? I want to test the Publisher role and Writer role on my development machine before creating con

  • Open Administrator tool failed after Java Add-in

    Hi all, After done my J2ee add-in installation into ABAP ECC5 system, my central services instance was started successfully. And i could connect to Visual administrator with J2ee_admin user. In log "dev_disp" located in /usr/sap/<instance>/work direc

  • Why can't I email photos direct from iPhoto?

    Why can't I email photos directly from iPhoto, or even attach them to email?