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

copy a file from dir a to b on server programmable

Former Member
0 Likes
763

Hi Experts,

is there a function to copy an existing file (*.pdf) on our sap-server (source
sapt01\sapmnt\trans\prj\pdf\test.pdf to directory
sapt01\sapmnt\trans\prj\pdf\archivelink\testcopy.pdf).

Thx in advance,

Marcel

1 ACCEPTED SOLUTION
Read only

JozsefSzikszai
Active Contributor
0 Likes
742

you can check FM DX_FILE_COPY

Hi Experts,

is there a function to copy an existing file (*.pdf) on our sap-server (source
sapt01\sapmnt\trans\prj\pdf\test.pdf to directory
sapt01\sapmnt\trans\prj\pdf\archivelink\testcopy.pdf).

Thx in advance,

Marcel

4 REPLIES 4
Read only

JozsefSzikszai
Active Contributor
0 Likes
743

you can check FM DX_FILE_COPY

Read only

0 Likes
742

Hello and thx for your reply,

do you know which objecttype and progtype i need to fill to call the funtion?

I need to copy a PDF! I could not found any kind of PDF for/in the search help of objecttype

Thx,

Marcel

Read only

0 Likes
742

sorry, looks like FM ADS_COPY_FILE is what you need. You ust have to give the source name (full path + file) and the targte folder

Read only

0 Likes
742

Hello again,

IT works fine! Thank you very much!

Marcel