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

How to Move file to another folder within ABAP Code

Former Member
0 Likes
608

Hi Experts,

My requirement is to move text file from one folder to another folder.

Is there any posibility to use windows OS move command within ABAP program. (Thats a background job)

If anyone has experience with it, appreciate your help me to solve this issue.

Thanks ,

Lahiru

Hi Experts,

My requirement is to move text file from one folder to another folder.

Is there any posibility to use windows OS move command within ABAP program. (Thats a background job)

If anyone has experience with it, appreciate your help me to solve this issue.

Thanks ,

Lahiru

3 REPLIES 3
Read only

Former Member
0 Likes
578

Hi

You can use CL_GUI_FRONTEND_SERVICES=>FILE_COPY.

after process use file_copy method of the above class.

Read only

Former Member
0 Likes
578

Hi,

Check the class CL_GUI_FRONTEND_SERVICES.

It has a lot of methods like:

FILE_DELETE

FILE_COPY

etc. which can be used to play around with files on presentation server.

Cheers,

Aditya

Read only

0 Likes
578

Hi,

Thanks for your valuable answer

Can we use it in Background job, Its can only be used in client machine, Am i correct.

Rgds,

Lahiru.