Skip to Content
author's profile photo Former Member
Former Member

how to get the created data of files on the server

hi everyone,

I wanna get files' created data on the server for some goal, what way to make it? Any suggestion is appreciated.

Best Regards,

Julia

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Oct 17, 2006 at 05:19 AM

    hi junlian,

    chk this sample code.

    report zfiles.

    Parameters: d1 type localfile default '/usr/sap/TST/SYS/Data1.txt',

    d2 type localfile default '/usr/sap/TST/SYS/Data2.txt'.

    data: itab type table of string.

    data: wa type string.

    start-of-selection.

    • Read file

    open dataset d1 for input in text mode.

    if sy-subrc = 0.

    do.

    read dataset d1 into wa.

    if sy-subrc <> 0.

    exit.

    endif.

    append wa to itab.

    enddo.

    endif.

    close dataset d1.

    • Copy to new file

    open dataset d2 for output in text mode.

    loop at itab into wa.

    transfer wa to d2.

    endloop.

    close dataset d2.

    • Delete the first

    delete dataset d1.

    regards,

    anver

    if helped pls amrk points

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 05:20 AM

    ...or just use FTP...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 05:23 AM

    Dear Julian

    If you need to get the list of files on application server, can use FM: /SAPDMC/LSM_F4_SERVER_FILE.

    If you like to know how the data has to be read, please check the following link:

    open-dataset-dump

    Hope this helps you.

    Kind Regards

    Eswar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 05:19 AM

    hi Julian,

    if that is an application server then use ..

    FM <b>'/SAPDMC/LSM_F4_FRONTEND_FILE</b>' for fetching the data from the application server path...

    Regards,

    Santosh

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.