‎2006 Oct 06 5:07 AM
Hello Friends,
I am executing this code to move my file from one directory in application server to another directory.
<b>DATA: unixcommand(200).
DATA: BEGIN OF tabl OCCURS 0,
line(255),
END OF tabl.
unixcommand = 'mv /USR/SAP/TMP/STOCK_REPORT.TXT /filetransfer/download/Stock_report.txt'.
CALL 'SYSTEM' ID 'COMMAND' FIELD unixcommand
ID 'TAB' FIELD tabl-sys.</b>
But when i execute this code, file is not getting moved from source to destination directory.
When i execute call system command, the value of sy-subrc sets to 256.
Any idea how to resolve this or any other way to move the file from source to destination directory.
Regards,
Tarun
‎2006 Oct 06 6:18 AM