on 04-24-2006 6:30 AM
In the extension class of BPS Web Application, following coding has been written to download data at the Presentation layer (User-Terminal).
mr_response->set_data( "file_stream_var" ).
mr_response->set_header_field( name = 'Content-Type' value = "text/html" ).
mr_resposne->set_header_field( name = 'Content-Length' value = "file_stream_length_var" ).
mr_response->set_header_field( name = 'Content-Disposition' value = 'attachment; filename=myFileName.csv' ).
mr_resposne->delete_header_field( name = 'Cache-Control' ).
mr_response->delete_header_field( name = 'Expires' ).
mr_response->delete_header_field( name = 'Pragma' ).
mr_navigation->response_complete( ).
The DISPATCH Method is so programmed, that when a user clicks on download button (SAVE) it would execute this code.
<b>I am able to download the file. </b>
<i>
Problem: The Modal Box "Your request is being processed" dosen't gives control back to the Planning Web Application . It stays up there forever and the user could do nothing more.
</i>
Any experiences and suggestions would be appreciated.
Thanks
Hi RPR,
the popup is part of the HTMLB logic. Since you change the response to the HTTP request, the logic does not work correctly anymore.
Why don't you use the DISPATCH (use simply a navigation button) to redirect to a custom BSP page where you can code the complete logic as required?
Regards,
Marc
SAP NetWeaver RIG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am facing the same problem... did you find any workarounds?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.