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

Similar Messages

  • Need to get the Last Changed date in Purchase Order.

    Dear Experts,
    I need to get a table which stores the last/ latest change for a Purchase Order.
    For a Purcahse Order, last date  Changes need to be captured , where there was some sort of activity associated with that order. That activity could be a goods receipt, an invoice payment or a change to the Purchase order.
    Thanks in advance.

    Hi,
    You can use EKPO-AEDAT.
    Tables CDHDR and CDPOS contain what chnages you have made.
    Thanks,
    Ramakrishna
    Message was edited by: Ramakrishna Prasad Ramisetti

  • Table name for Info-record where i can get the last changed date and user

    Using ME12, i have changed the price of the info record i want to get the who was the user and changed date...
    I had check in EINA EINE but i couldnt find out please anybody Please help me out by providing solution for this??

    Hi
    If at the data element level the field for which you want to know the old and new fields  the option of CHANGE DOCUMENT option must be  enabled ,then you can find the old and new values in the
    CDHDR -
    Change document header
    CDPOS -
    Change document items.
    Regards
    Pavan

  • How can we update the last synchronization date and time..on SUP in sccm 2012 R2

    Hi,
        Can you any one please guide me how can i update the last  synchronization date & time in SUP on SCCM2012 r2 , some how its updated as future date and when ever i try to synch the SUP with disconnected WSUS its shows in the wsyncmgr.log 
    "Wakeup for a polling cycle " and  " Wakeupby inbox drop" and "Wakeup by SCF change"  
    Thanks 
    Balaji K

    You'll probably have to call CSS on this one as this not normal by any means. The messages you noted above are completely normal but if that's all you are seeing then there's an issue.
    Have you reviewed wcm.log and wsusctrl.log?
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • How to get the "last changed by" for a set of function modules?

    How to get the "last changed by" for a set of function modules?
    is there any table to get it??

    See [this|Re: Date of creation of function module] I posted earlier.
    >TFDIR will give you the name of the function group program and the include number.
    >E.g. SAPLZFUNCGROUP Include 01.
    >From this you can construct the include name: LZFUNCGROUPU01.
    >You can look this up in TRDIR to find the creation date (CDAT) of the function module.
    In your case, you need unam and udat.
    matt

  • Please help.........how can i get the last date of the month?????

    Hello....
    I want to get the last date of the month.
    For example, the last date of Jan is 31.
    How can I get the last date of the particular month and year ????
    Thanks for help.
    Gloria

    Hi Gloria
    1. How can I compare the date???date1.compareTo(date2)
    where date1 and date2 is a java.util.Date Object
    will return 0 if it is the same date
    or
    date1.after(date2)
    where date1 and date2 is a java.util.Date Object
    will return true if date1 is after date2
    (the same for date1.before)
    2. How can I change the date format into yyyymmdd format???? I just want the year, month and date.try the java.text.SimpleDateFormat Object
    new SimpleDateFormat("yyyymmdd").format(yourdate)
    Hope this help.
    Please also have a look at a calendar I wrote, (maybe it help)
    demo & source :
    http://www.geocities.com/globe_software/java/components/
    globe_sa

  • How can I get the last updated email address of the customer ??

    Dear All,
    Please let me know, How can I get the last updated email address of the customer ??
    Also, I am trying to read CDHDR table where OBJECTCLAS is ADRESSE, however what value should be passed into OBJECTID field, looks like it is ADRNR with a Suffix BP.
    Please confirm me what value should be passed into OBJECTID field.
    Thank you.
    Anitha

    Hi Anitha,
      Check if this is something that helps you:
    Change documents in BAS
    CDHDR
    address type 1
    objectclass = ADRESSE             
    objectid = addrgroup + addrnumber     (ADRC-ADDR_GROUP + ADDRNNUMBER) !!
                     'BP  000xxxxxx'
    private address (address type 2)
    objectclass = ADRESSE2
    objectid =  'BP  000xxxxxx000yyyyyyy'   
                            persnumber+adrnr private
    address type 3
    objectclass = ADRESSE3
    objectid =  'BP  000xxxxxx000zzzzzzz'
                              persnumber +comp.address
    The above details is from the link: http://wiki.sdn.sap.com/wiki/display/ERPLO/LO-MD-BP
    Regards,
    Swarna Munukoti

  • Query on 0TCT_MC01 to get the last used date of a query

    Dear All,
    I tried to create a query on 0TCT_MC01 to get the last used date of a query.
    Since we do not have readily available key figure for Last used date, could any one help me out to achieve this result?
    I am interested to find the old queries which are not being used anymore.
    Thanks in advance.

    You can get the info from the below tables
    if you are working with BW 3.5 you can look in table RSDDSTAT in BI 7.0 it is RSDDSTAT_OLAP.
    Make a selction on the infocube and the OLAP Statistic Object which is the query ID and execute. Then you should see how often the query was executed, by whom and which date/time.
    in field Statistics Object Name Query ID you type in the tech name of the query
    from the Counter for statistics event calls -- will give the count... no of times the query used least the count lesser the query is used.
    Regards
    KP
    Edited by: Konduru Prashanth. on Dec 22, 2011 2:44 PM

  • I have an Ipod touch updated to last available ios 4.2.1. How can I get the last compatible versions of the apps?

    I have an Ipod touch updated to last available ios 4.2.1.
    How can I get the last compatible versions of the apps?
    In the appstore there are only the lat app versions, most of them are incompatible with my device.
    I know that previous versions of these apps were compatible with my ipod.
    Can all download them someway?
    thanks

    The problem is: I never had the compatible versions. But I want them, I'd buy them if I could.
    So I'm stuck with my Ipod, which can't be upgraded anymore to higher IOS versions, and with the appstore, that does not offer older versions; versions that have existed and still exist, perhaps in the recycle bin of some users, or somewhere in the appstore servers.
    I know, its a policy, just to sell more devices. Will not work with me. I'm not buying more Ipods

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

  • 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

  • Getting the last posting date

    Hi everybody,
    I need some help. I want to create a Bex Variable with Customer Exit, and i need to modify the ABAP code in order to get the last posting date of Data in my request. I'll like to create to create with BEx Query Designer a request that allows me to make my report on the most recent data only.
    Eg. Let's say today before leaving the work I launch a routine that provides me during the night data for my R/3 system and I'm wonking in a BW environment. Tomorrow, i'll like to compose any request guiving me informations only on what i loaded yesterday without typing the date. I'm oblige to use a variable, but I need the corresponding Abap code. Can some one help me please ?
    Thanks.

    You want your query to return results from only the most recently loaded request. Is that right? You don't need a variable for that. Just bring in "Request ID" (from Data Package dimension) into Filter area and use "Last Request Loaded" variable delivered by SAP.

  • How can i get the lasted vision of visual administrator

    HI:
    when i connet j2ee engine,i get the system warning:
    "visual administrator vision is older than the version of j2ee engine kernel: ..."
    how can i get the lasted vision of visual administrator?

    Get your portal administrator to copy the j2ee/admin from the server you're trying to connect to.  You can then install and run it from your local hard drive.

  • 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

  • HT2486 how can I export the contact book data to a csv file for editing?

    how can I export the contact book data to a csv file for editing?

    You can edit a card right in Contacts. No need to export and re-import.
    Select a name and on the right side, click the Edit button:

Maybe you are looking for

  • Is it possible for two people to use one iMac with iPhone and iPad separate iTunes and iCloud acc?

    Apologies if this is a very obvious question. I have one iMac that my husband and I use, he has an iPhone that he syncs with the iMac via iTunes for app such as docs to go. I recently purchased an iPad, I want to also sync with the iMac. Is it possib

  • HT201361 How do I have the computer read text to me?

    I have an OS X Yosemite version 10.10.2 iMac (27-inch, Late 1013)  Processor 3.4 GHz Intel Core i5 Memory 8 GB 1600 MHz DDR3  Desktop computer I am wondering how to have the computer read text aloud.  I'm proofing contract language and was hoping the

  • How to pass pageFlowScope variable value as bind variable for VO

    Hi, I have one fixed lov (not based on datasource), if i select any value in that lov i want to pass this value to a pageFlowScope variable. After this i want to use this value as bind variable for VO. whenever the vo executes thereafter this bind va

  • Teacher in need of Jeopardy template for Keynote

    I'm a teacher in need of a Jeopardy template for Keynote. There are tons for Powerpoint, but they don't transfer real well. Any teachers out there with one?

  • Sync log in is blocked

    Hi I am trying to log in to firefox Sync. When it told me could not recognize my log in email as a valid, I tried to reset my password. And again the system state couldnt no recognaise my log in email. When restarted adn tried again, it said the "Att