cancel
Showing results for 
Search instead for 
Did you mean: 

Planning app hangs up

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member93896
Active Contributor
0 Kudos

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

Former Member
0 Kudos

I am facing the same problem... did you find any workarounds?