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

Call 'SYSTEM' id 'COMMAND' field w_runstring

Former Member
0 Likes
800

Hi All,

This system command is throwing error , filling sy-subrc with value 1-.

Can anyone tell why?

Thanks,

Shaily

3 REPLIES 3
Read only

Former Member
0 Likes
519

If you told us what value is in w_runstring I think it would improve your chances of a useful reply.

Read only

0 Likes
519

the value in w_runstring is :-

<b>mv /usr/interface/source/filename /usr/interface/target/filename</b>

Thanks,

Shaily

Read only

0 Likes
519

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