Skip to Content
0
Former Member
Feb 02, 2011 at 02:08 PM

How move file with space in the name to another foler on Linux from ABAP?

468 Views

Hi experts,

My requirement is to move the file on Linux to another folder via ABAP program.

IN SM49 is defined ZMOVE command for "mv" operating system command. In ABAP, fm:

SXPG_COMMAND_EXECUTE calls ZMOVE external command to move the file to another folder.

But in case that file has space in the file name, then the fm gives error and the file can not be moved.

I have tried as given in the Note 1152084 - Parameter for external commands but it doesn't work.

Don't know if the reason is that the note is for Windows or Unix and we have Linux.

So, I have tried with ''%file name%' and '''file name'''.

PLease advice hoe to move file on Linux to another folder from ABAP program if the file has spec in the name.

Thanks in advance.

Kind regards,

Danijela Zivanovic