04-06-2012 10:29 AM
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!
04-06-2012 10:41 AM
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
04-06-2012 10:51 AM
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.
04-06-2012 11:13 AM
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
04-06-2012 12:51 PM
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.
04-09-2012 10:26 AM
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!!!
04-09-2012 10:36 AM
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 .
04-09-2012 2:23 PM
i guess i was lucky then! anyway, this is too technical for an ABAP developer..
04-09-2012 2:23 PM
i guess i was lucky then! anyway, this is too technical for an ABAP developer..