08-24-2007 6:39 AM
Hi All,
I have issue regarding moving one file in one unix directory into another unix directory.
Actual requirement is as below:
I have two unix directories 1. /var/opt/working 2. /var/opt/error
Now i have a file [ FILE1 ] in [/var/opt/working] working directory.
In code checking i found it is error file now in my abap i want to move/send this file [FILE1] to another unix directory [/var/opt/error].
How can solve this issue in ABAP code.
Can anybody solve this issue!
Thanks,
Deep.
08-24-2007 6:57 AM
1. Open the 1st file using Open dataset for input /var/opt/working
2. Get the data into internal table
3. Open the 2nd file using Open dataset for output /var/opt/error
4. TRANSFER the data from the internal table to 2nd file
5. CLOSE 2nd file
6. Close 1st file
7. Delete 1st file using DELETE DATASET dsn.
08-24-2007 6:57 AM
1. Open the 1st file using Open dataset for input /var/opt/working
2. Get the data into internal table
3. Open the 2nd file using Open dataset for output /var/opt/error
4. TRANSFER the data from the internal table to 2nd file
5. CLOSE 2nd file
6. Close 1st file
7. Delete 1st file using DELETE DATASET dsn.
10-12-2010 7:19 AM
Open dataset for output is returning sy-subrc = 8.
why it is not creating the the file is not presend on that path