Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10671

Re: ABAP Code to move a file to another directory ?

$
0
0

You can approach in three steps.

 

  1. Scan the source directory and identify all file names , keep it in an internal table say it_files
  2. loop at the internal table it_files  , use copy function module to copy the file to the destination folder, and here the file name in the destination folder will be the concatenation of original file name , sy-datum , sy-uzeit. (You will get a lot of copy function modules. Go SE37 and search *copy*  .
  3. Once the copy is successful , i.e sy-subrc eq 0 , then delete the source file from source directory.
  4. Schedule this program in batch.

 

 

Hope this answers your query. please do reply if you need any further clarifications.


Viewing all articles
Browse latest Browse all 10671

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>