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

Move Network Files in ABAP

Hi,

I want to move a network file into another location. How do I do this in abap?

Thanks.

Tyken

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 09, 2007 at 03:07 AM

    Hi,

    maybe you can use open dataset, here is an example:

    data: file_add1 type string,

    file_add2 type string,

    itab type table of string,

    wtab like line of itab.

    file_add1 = '//network_address/file.any'.

    file_add2 = '//network_address2/file.any'.

    open dataset file_add1 for input encoding default.

    do.

    transfer file_add1 to wtab.

    if sy-subrc = 0.

    append wtab to itab.

    else.

    exit.

    endif.

    clear wtab.

    enddo.

    close dataset file_add1.

    open dataset file_add2 for output encoding default.

    clear wtab.

    loop at itab into wtab.

    transfer wtab to file_add2.

    clear wtab.

    endloop.

    close dataset file_add2.

    Then delete file_add1.

    Hope it helps,

    Regards,

    John.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 09, 2007 at 03:08 AM

    Hi,

    Please use transaction CG3Y or CG3Z.

    Best regards,

    Prashant

    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.