on 02-02-2007 2:56 PM
Hi everybody,
I habve created an Zservice that Prints spools requests. Now it should be extend to allow download as a pdf file as well.
What are the options here !?
I am aware of mime-download and it works fine but it has certain limitations despite it opens up the pdf just fine the in IE window.
-- No custom filename can be provided
-- Opens up in the same window can only escape w/ back button
I would need something that would allow the following:
-- Either to select file location etc. or being abale to set correct file location
-- Possible open pdf file in a new window...
I assume that a combination of different things need to be done here...
Any suggestions !?
Cheers,
CN
PS. Non integrated ITS
With a non intergrated ITS, I have one, the user opens it up in IE as a PDF but, they have to save it by doing file save. As far as I can tell there is no temp directory like the SAPGUI for the pdf to automaticly download to. It has to be saved by the user.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> With a non intergrated ITS, I have one, the user
> opens it up in IE as a PDF but, they have to save it
> by doing file save. As far as I can tell there is no
> temp directory like the SAPGUI for the pdf to
> automaticly download to. It has to be saved by the
> user.
That's exactly what I achieved by now..the PDF file opens up the current Window/frame of the browser.
There are two flaws - a minor one and a major one.
The minor one is that still I get no filename accross..the user gets a cryptic reference instead.
The major one is that the user can not escape from the window. In the current user setting the user does not have a Back Button as most parts of SAP Retail Store (ZService is implemented here) does not support the Back button very well...
Thinking about it..what would it take to open up a new window...!??
Thanks,
Chris
> With a non intergrated ITS, I have one, the user
> opens it up in IE as a PDF but, they have to save it
> by doing file save. As far as I can tell there is no
> temp directory like the SAPGUI for the pdf to
> automaticly download to. It has to be saved by the
> user.
That's exactly what I achieved by now..the PDF file opens up the current Window/frame of the browser.
There are two flaws with it - a minor one and a major one.
The minor one is that still I get no filename accross..the user gets a cryptic reference instead.
The major one is that the user can not escape from the window. In the current user setting the user does not have a Back Button as most parts of SAP Retail Store (ZService is implemented here) does not support the Back button very well...
Thinking about it..what would it take to open it up a new window...!??
Thanks,
Chris
If I recall, the ability for IE to show a pdf file comes from the WEBDAV.
But, look at this sight.
http://www.useit.com/alertbox/open_new_windows.html
And there is a link in the middle. I don't know if it will work in your case but it is worth a read.
> If I recall, the ability for IE to show a pdf file
> comes from the WEBDAV.
>
> But, look at this sight.
>
> http://www.useit.com/alertbox/open_new_windows.html
>
> And there is a link in the middle. I don't know if
> it will work in your case but it is worth a read.
Hey David,
that seems about what I would need :
Open or saving it in a separated dialog/window/application
Being able to provide a filename (which can be a BHtml variable)
But I do not have a clue how I can get it implemented ...what needs to be done !?
Although iot seems to be the way to go...but how !??
Cheers,
Chris
Did you go to the link on step 4?
Did you go to the link on step 4?
Did you go to the link on step 4?
Did you go to the link on step 4?
which version of R/3 you are using?
we use the logic mentioned in the link provided by David, in BSP where we have control over HTTP request response objects.
I dont know how this can be achieved in standalone ITS. but ifyou are on WAS6.20 or above, we could write a simple BSP application to do this part alone and link it up with ITS application. (there is one more open question to this issue, since we are jumping from ITS to BSP, we may be required to login again? i dont know , we have to try it and see)
Raja
Hi Chris,
did you try that
CALL METHOD cl_gui_frontend_services=>gui_download
...
already? This method takes the data as an internal table, a path and
something more to do a file download without user interaction.
best regards
Tobias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> Hi Chris,
>
> did you try that
> CALL METHOD cl_gui_frontend_services=>gui_download
>
>
> already? This method takes the data as an internal
> table, a path and
> something more to do a file download without user
> interaction.
>
> best regards
> Tobias
Hi Tobias,
thanks..haven't tried it yet...but won't I need a certain script in the template !?/
Chris
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.