cancel
Showing results for 
Search instead for 
Did you mean: 

Download content of internal table to local file

Markus7
Participant
0 Kudos

Hello SDN

I have got a BSP application using pages with flow logic. What I want to do is downloading the content of an internal table to a local file, when a user triggers a certain event. In the event-handler "OnInputProcessing" I tried to use "CALL METHOD cl_gui_frontend_services=>gui_download" but this causes an error in the browser.

Can anybody help me?

Regards

Markus

Message was edited by: Markus Tschiderer

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos
thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

This is a generic example that accepts any table, but perhaps the concepts will help:

/people/thomas.jung3/blog/2004/09/02/creating-a-bsp-extension-for-downloading-a-table

norbertk
Participant
0 Kudos

hello markus,

cl_gui_frontend_services can only be used in sapgui-applications.

what you could do is to create a bsp-page that doesn't generate html, but only a list of data, separated by tabs and line-breaks. on the top of the bsp, you would have to set the mime-type to text/plain, so the browser will offer so save the file or open it in notepad.

regards,

norbert