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: 

save pdf in background mode

Former Member
0 Kudos

Hello gurus!

I am searching all over internet and i cannot find a solution for saving a pdf document in background mode. I have develop a report and i use CONVERT_OTF function to convert data to pdf, and then the GUI_DOWNLOAD function to download the file.

It works fine in online mode.

Can anyone tell me spesific what to do in order to make this damned report run in background??

Thanks in advance!

8 REPLIES 8

kesavadas_thekkillath
Active Contributor
0 Kudos

In this link check the point 2 of section "Is it possible to work in background"

This category of question is discussed widely in SDN and you will not get a direct solution for this. There are some work arounds using OS commands, moving it to shared folder etc. May be you can search using those keywords.Always know that the program executed in background cannot access your presentationserver ( because it's executed in server side )

There is some problwm while posting the link
 
 Its http://wiki.sdn.sap.com/wiki/display/ABAP/Working+with+files

0 Kudos

thanks for the reply, but the links are dead. I know that the background job is executed in app server, so it cannot write data to presentation.

But there is no clear solution to this? i think its very core thing for SAP functionality.

0 Kudos

The link is not dead and I liked the link. Thanks Keshava. In that lik you have the pdf which does talk about the workaround

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2...

Former Member
0 Kudos

Save your output to apps server (open dataset...transfer...etc), and give the user a tool to retrieve and download to the desktop, and then call the front end services execute method to display to the user.

Former Member
0 Kudos

Hello gurus!

i am very happy, because i find the solution to write data in background mode! i used command open dataset and the path should be NOT in mask form. for example the path should be like this

'\\presentasion server\folder _1\folder_2\filename.pdf\'.

thanks!!!

0 Kudos

Its because the presentation server is in same domain of application server. For different domain it might not work. If the folder has access authorization then it might not work. The test cases are many .

0 Kudos

i guess i was lucky then! anyway, this is too technical for an ABAP developer..

0 Kudos

i guess i was lucky then! anyway, this is too technical for an ABAP developer..