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: 

How to rename a file which contains space in the file name using FTP_COMMAND FM?

nh11
Explorer
0 Kudos
642

Hello,

I am looking for the solution,

for example I have a file 'file one.jpg' and I want to rename this file as 'file two.ipg'.

rename file one.jpg file two.ipg -> this command is not working

because of space is there in the file name, the FM FTP_COMMAND is not working as expected.

can anyone guide me how to pass the rename command to FM FTP_COMMAND.

Thanks,

Namdev

1 ACCEPTED SOLUTION

Tomas_Buryanek
Active Contributor
583

Did you tried with double quotes like this?

rename "file one.jpg" "file two.ipg"
-- Tomas --
4 REPLIES 4

Tomas_Buryanek
Active Contributor
584

Did you tried with double quotes like this?

rename "file one.jpg" "file two.ipg"
-- Tomas --

jmodaal
Active Contributor
583

Hello,

did you try putting the filenames in double quotes?

Kind regards

Jan

Shilpaveera_99
Discoverer
0 Kudos
479

Please help.

This is my code.

 CALL FUNCTION FTP_COMMAND
        EXPORTING
          handle        w_hdl
          command       p_lv_cmd
        TABLES
          data          it_result
        EXCEPTIONS
          tcpip_error   1
          command_error 2
          data_error    3
          OTHERS        4.

What i have to pass in parameter   command       p_lv_cmd as i am receiving XML file here

 

 

 

0 Kudos
440

Please open a new topic for your question