Application Development 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: 

Saving smartform to pdf on a special given path without any dialogs

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

6 REPLIES 6

Former Member
0 Kudos

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

0 Kudos

Hi Oliver,

thx for the advice. Open Dataset was the right thing to do.

Best regards, Dominik

Former Member
0 Kudos

HI,

Refer the following links:

Regards

Rajashiva Ramalingam

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

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