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

Upload file from presentation server

Former Member
0 Likes
750

I want to upload a file from the presentation server to the application server in the background. I used the function module ARCHIVFILE_CLIENT_TO_SERVER. When I use it in the background it runs successfully, but when I search for the file in AL11, I am unable to find it there.

4 REPLIES 4
Read only

Former Member
0 Likes
624
can you post ur code??

DATA: 
l_pcfile LIKE sapb-sappfad, "Desktop file & path
l_serfil LIKE sapb-sappfad. "Server File & path

l_pcfile = 'D:Datatempinput.txt'.
l_serfil = '/tmp/output.txt' .

CALL FUNCTION 'ARCHIVFILE_CLIENT_TO_SERVER'
EXPORTING
path = l_pcfile
targetpath = l_serfil
EXCEPTIONS
error_file = 1
OTHERS = 2.
Read only

0 Likes
624

I had also tried the same code. But I am not able to see the uploaded file in AL11.

Read only

0 Likes
624

Preeti,

The FM 'ARCHIVFILE_CLIENT_TO_SERVER' works perfectly and upon successful run, u can always see the file using AL11. If u say that you are not able to see the file, means either the FM didnt run successfully (exception1 or 2). Please check the program in debug mode.

Regards,

Lakshmi

Read only

Former Member
0 Likes
624

Hi

Check with the Transaction codes

<b>CG3Y and CG3Z</b>

<b>Reward points for useful Answers</b>

Regards

Anji