on 06-14-2011 7:17 AM
Hello,
we used over years the function ALEWEB_DOWNLOAD to send PDF, EXCEL, WORD content to the Frontend User for sevaral ITS Applications. This works fine and no problems occur.
But now the customers do not like any more the given filename of ALEWEB_DOWNLOAD in process of saving the file.
The filename begins normally with ~flNUQVRFPTI5NDAyLjAwNi4wNS4xMA==
I know that this behavior results in the functionality of the SAPGUI.
( This ist the RFc CALL inside the ALEWEB_DOWNLOAD
CALL FUNCTION 'ALEWEB_DOWNLOAD_EX'
DESTINATION 'SAPGUI'
)
We do not use WEBGUI, so i think a solution over CL_GUI_FRONTEND_SERVICES are not supported. We send the data as RAW to the ALEWEB_DOWNLOAD and with given parameter ID
ITS_DOWNLOAD_FUNC = 'NEW'.
Now my question:
Are there other Options, Possibilities or else to use a CUSTOM proposal Filename i.E. MYPDF.PDF ?
System Informations:
Intergrated ITS ECC 6.0 SAP Basis 7.0 Patchlevel 17, Most user are using Internet Explorer
Thank You
Thorsten
Hi all they have read my posting,
the question my not be succesfully answered as i suppose before. There should be no way to give a custom filename.
Due to this i'll close the thread .
Thank you for taken account of my thread.
with best regards
Thorsten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I had to do this implementation as well.
To change the filename and also force the file download I copied the FM ALEWEB_DOWNLOAD and change to always use the subroutine aleweb_download_old. And I changed this subroutine at line 42:
content_type = 'Content-Disposition: attachment; filename=[filename_you_want].[ext]; Content-Type:'.
The content-type must be right according the file (eg. application/xml)
Setting this header you are able to change the filename.
Hope it's still useful!
Regards,
Filipe
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.