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

move files from one folder to another folder at network level

amol_samte
Contributor
0 Likes
1,798

HI,

     I have created one program in that files are moving from one folder to another in application server the path is SAP_REPORT/ED2/report/ptf. its working fine..

but same files are stored in same path at network folder path like -  \XYZ05\SAP_REPORT\ED2\report\ptf . My question is that is der is any abap level solution. to move files from one folder to another folder at network level..

1 ACCEPTED SOLUTION
Read only

amol_samte
Contributor
0 Likes
1,701

is any one done this scenario...........

HI,

     I have created one program in that files are moving from one folder to another in application server the path is SAP_REPORT/ED2/report/ptf. its working fine..

but same files are stored in same path at network folder path like -  \XYZ05\SAP_REPORT\ED2\report\ptf . My question is that is der is any abap level solution. to move files from one folder to another folder at network level..

7 REPLIES 7
Read only

amol_samte
Contributor
0 Likes
1,702

is any one done this scenario...........

Read only

0 Likes
1,701

Hi Amol

Is this for Background Processing?

I've encountered a similar problem a while ago,

We had to move not just folders but to another system as well in the background

I achieved this by creating a script at OS level and executing it via SM69 as a batch job.

If it is not a batch job have you tried the normal gui_upload and download FM's.

Regards

Vic

Read only

0 Likes
1,701

Create a OS level command in SM69... one for copy file .. and then paste file.

And then use FM "SXPG_COMMAND_EXECUTE" to run those commands with necessary parameters

Read only

0 Likes
1,701

Hi Vic,

Thanks for ur reply,

actually i have seen threads about SXPG_COMMAND_EXECUTE  fm but i was not confidant for network path.

Yes its BG job...gui...fm or methods wont support ..

i think using fm SXPG_COMMAND_EXECUTE i can get the solution hope  so.

Thanks

Amol

Read only

0 Likes
1,701

Hi Harshad,

     Can we create direct move file command...

Read only

0 Likes
1,701

I think Yes.. but check the command for your OS. It supports the OS level command. if your OS has that command, then it should work

Read only

0 Likes
1,701

Solved,

sample solution,

get all files using FM

EPS2_GET_DIRECTORY_LISTING

In application server file has no created date..so pick date from file...and remove except current one..by using CS.

and finally use

OPEN DATASET

TRANSFER

DELETE DATASET

CLOSE DATASET

Thanks,

Amol