Application Development 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: 

The use of quotes (") in OS commands

Private_Member_19084
Active Contributor
0 Kudos

Hi experts,

I would like to execute a SM69 command (mv) with quotes ("), to secure correctness by files with spaces.

so the command should be:

mv "/dir/file" "/dir/archive/file"

In telnet it runs perfect, but when I execute it in SM69 (also via FM SXPG_COMMAND_EXECUTE), I always get the message:

No such file or directory.

So I think, SAP can't handle the quotes.

Any ideas, how I can realize this statement?

Thx in advance

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Sometimes a search in SAP notes will help...

'% %' should work.

Have a look at Note 1152084 - Parameter for external commands

regards

3 REPLIES 3

Former Member
0 Kudos

Sometimes a search in SAP notes will help...

'% %' should work.

Have a look at Note 1152084 - Parameter for external commands

regards

0 Kudos

Thank you very much for your great answer.

And sorry for my laziness - in the future I will check OSS first.

Have a nice day

Former Member
0 Kudos

check if its required...