Skip to Content
author's profile photo
Former Member

How to get file perperties in Unix server

Dear All,

I want to get the file properties which is created in the SAP server and can be displayed using AL11.

My question is that: which BAPI can collect the infomation including generation time, size and so on.

Many thanks.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

6 Answers

  • Best Answer
    author's profile photo
    Former Member
    Posted on Nov 16, 2005 at 07:00 AM

    Thanks for all your answers.

    But I couldn't get file created date or changed date. for example, the file created on 2005-11-16 15:01 shows '124461' in the field 'MTIME'.

    pls help to get the relationshop between the two data. thanks very much.

    My time zone is GMT+8.

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 11, 2005 at 09:15 AM

    Hi Jerry,

    look function group epsf:

    e.g. fm EPS_GET_FILE_ATTRIBUTES

    Andreas

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Nov 11, 2005 at 09:15 AM

    In Unix the command to get the file properties is

    ls -l <filename>

    But I am not aware of the BAPI which gives the Info

    Regards,

    Usha

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 11, 2005 at 09:18 AM

    Hi Jerry,

    I don't know about a Bapi which would do this, but

    the FM SUBST_GET_FILE_LIST will give you the properties of the files in a directory specified.

    Regards,

    Ravi

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 11, 2005 at 09:22 AM

    Hi,

    Check this link.

    http://www.sap-img.com/b1002.htm

    This link discusses few things about UNIX.

    Check it and reward points by cliking the star on the left of reply,if it helps you.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Nov 11, 2005 at 10:02 AM

    Hi,

    Check out the following FMs:

    EPS_GET_FILE_ATTRIBUTES

    EPS_GET_DIRECTORY_LISTING to get files in a directory

    SUBST_GET_FILE_LIST

    Best Regards,

    Anjali

    Add comment
    10|10000 characters needed characters exceeded