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

Execution of Linux command from SAP

Former Member
0 Likes
860

Hi ,

I was executing the Unic command move(mv -f)  for renaming the file on the apllication server.

For this, I update the external command and changed the operating system to Linux.

I am using the FM   SXPG_COMMAND_EXECUTE to execute the command from my report.

But still when I am executing the report in Background then the FM is returning sy-subrc = 2. which is "  command_not_found".

Can anyone suggest what step I am missing.

Thanks in advance.

Regards,

Saurabh


2 REPLIES 2
Read only

Former Member
0 Likes
782

Hi,

I am now getting sy-subrc = 510 . i.e Problem closing the output file.

Kindly suggest.

Regards,

Saurabh

Read only

0 Likes
782

What exactly do you need? rename the file or create the file.

You might have authorization issues; kindly check.