‎2007 Aug 31 11:11 AM
Hi All,
This system command is throwing error , filling sy-subrc with value 1-.
Can anyone tell why?
Thanks,
Shaily
‎2007 Aug 31 1:11 PM
If you told us what value is in w_runstring I think it would improve your chances of a useful reply.
‎2007 Aug 31 1:16 PM
the value in w_runstring is :-
<b>mv /usr/interface/source/filename /usr/interface/target/filename</b>
Thanks,
Shaily
‎2007 Aug 31 1:49 PM
Was the file actually moved? In certain releases Call 'SYSTEM' id 'COMMAND' .... returns -1 even though the command was issued successfully.
If you want to apply error handling take a look at SAP note 677435 which explains the supported methods for calling o/s commands. As Call 'system'... is not actually supported it can do unpredictable things.
Regards,
Nick