07-26-2011 10:16 AM
Hello everybody,
I googled and searched the forums for my problem, but I couldn´t find a solution.
I need to convert a smartform into a pdf file. I know I have to call some functions like convert_otf or convert_otf_2_pdf etc. but I also need this pdf to get saved on a server (application server or just any kind of a server). I found some solutions including gui´s / pop ups but I can´t use this. I need to get a solution, where I get the pdf data and the pdf file is saved on a special path
serverpath1path2 orm.pdf in one go, WITHOUT any dialogs where the user has to click through paths.
Is there any chance this can be done?
Thank you in advance
Dominik
Edited by: DominikT on Jul 26, 2011 11:18 AM
07-26-2011 11:42 AM
Hi,
saving a file on the application server can be done with OPEN DATASET.
If you want to save the file on another server you need to use ftp connection or some program that copies the file from your application server to the destination.
Best regards,
Oliver
07-26-2011 11:42 AM
Hi,
saving a file on the application server can be done with OPEN DATASET.
If you want to save the file on another server you need to use ftp connection or some program that copies the file from your application server to the destination.
Best regards,
Oliver
08-26-2011 1:58 PM
Hi Oliver,
thx for the advice. Open Dataset was the right thing to do.
Best regards, Dominik
07-26-2011 12:39 PM
07-26-2011 12:53 PM
Thank you guys.
So it´s safe to say that I need to work with open dataset in case the pdf has to be saved on the application server.
so there is no possibility to just give some function module a path like
my-serverpath1datei.pdf? i would have to use an external program to copy the file outside of sap?
Edited by: DominikT on Jul 26, 2011 1:55 PM
07-26-2011 1:08 PM
Hi,
as long as this program runs in background it is not possible.
If the program is executed by a user in foreground and the user has acces to the server then you can use CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD for this.
Best regards,
Oliver
Edited by: Oliver Hütköper on Jul 26, 2011 2:08 PM
07-26-2011 2:12 PM
Thanks...I will try it. Have to wait a few days till I can try it though, because currently I´m only working on the concept.
Greetings
Dominik