Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Mov

Former Member
0 Likes
274

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

1 REPLY 1
Read only

Former Member
0 Likes
247

hi,

this thread may b useful to you

Regards,

Preema