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

File copying in background process

Former Member
0 Likes
901

I want to copy a PDF file from one folder to another through a background process in ABAP.

I tried with OPEN DATASET.... statements. But the target PDF file is getting corrupted.

The copying process cannot be done with GUI FRONTEND methods also since it is a background process.

Is there any other method other than the above two methods to copy file?

I want to copy a PDF file from one folder to another through a background process in ABAP.

I tried with OPEN DATASET.... statements. But the target PDF file is getting corrupted.

The copying process cannot be done with GUI FRONTEND methods also since it is a background process.

Is there any other method other than the above two methods to copy file?

3 REPLIES 3
Read only

andreas_mann3
Active Contributor
0 Likes
688

1) use fm SXPG_COMMAND_EXECUTE and copy-command from tcode sm69

2) use : call 'SYSTEM' id 'COMMAND' field command

with unix/Hp-ux command "cp"

A.

Read only

0 Likes
688

Any idea about the command to be used in SM69 for copying files in Windows XP/DOS environment?

Read only

0 Likes
688

Yes I got it. It is XCOPY.