Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

GUI_DOWNLOAD inside a BSP METHOD

Former Member
0 Likes
679

Hi all!

I have a BSP application and, in the application class, I have a method named TXT_FACTURA.

Inside of it, I need to save a txt file to local machine, so I tried to use the FM:

GUI_DOWNLOAD

or

WS_DOWNLOAD

but when the BSP arrives to execute this FM, a HTTP 500 error raise me... anybody knows why???

I tested this FM with the same data in a separated report, and all is ok!

Thanks!

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
659

You can not use these frontend(sapgui) dependent function modules within a BSP, BSP runs in the browser, so there is no SAPgui. These function modules use code within the SAPgui itself to complete there task.

Regards,

RIch Heilman

Hi all!

I have a BSP application and, in the application class, I have a method named TXT_FACTURA.

Inside of it, I need to save a txt file to local machine, so I tried to use the FM:

GUI_DOWNLOAD

or

WS_DOWNLOAD

but when the BSP arrives to execute this FM, a HTTP 500 error raise me... anybody knows why???

I tested this FM with the same data in a separated report, and all is ok!

Thanks!

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
660

You can not use these frontend(sapgui) dependent function modules within a BSP, BSP runs in the browser, so there is no SAPgui. These function modules use code within the SAPgui itself to complete there task.

Regards,

RIch Heilman

Read only

0 Likes
659

... ok... so, how can I save a txt file in the local machine with a BSP?? Is not possible??

Thanks!

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
659

Maybe this thread could be of some help?

Regards,

Rich HEilman