‎2007 May 28 8:37 AM
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.
‎2007 May 28 8:48 AM
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.
‎2007 May 28 10:46 AM
I had also tried the same code. But I am not able to see the uploaded file in AL11.
‎2007 Aug 11 6:46 AM
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
‎2007 Aug 11 11:04 PM
Hi
Check with the Transaction codes
<b>CG3Y and CG3Z</b>
<b>Reward points for useful Answers</b>
Regards
Anji