Application Development 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: 

'REUSE_ALV_GRID_DISPLAY' Excel-download without dialog

Former Member
0 Kudos

Hi everybody,

we have a couple of reports displayed in dialog mode by using FM 'REUSE_ALV_GRID_DISPLAY'.

Now the question arose if there might be a possibility to perform an Excel-download NOT by pressing the dialog function button but instead with parameters such as path and filename given by the calling program, without any user-interaction, maybe even without having the report started in dialog but in batch/background mode instead. I don't see a solution to this. Does anybody else?

regards

Andreas

1 ACCEPTED SOLUTION

athavanraja
Active Contributor
0 Kudos

basically what you are saying is that as soon as the user executes the program, the output also should get downloaded to a predefined location in the user PC, without any further user interaction.

Right? if yes

you have the data in an itab (which is passed to T_OUTTAB tables parameter)

in the PBO (immediately after filling the itab with data before calling the function 'REUSE_ALV_GRID_DISPLAY'

call gui_download and pass filename, and the itab.

but you have to make sure thru a check to see this download happens only once during a session.

and this wont work in batchmode.

REgards

Raja

5 REPLIES 5

Former Member
0 Kudos

Hi,

I have a simular program which downloads excel files regardless of ALV. I did it using desktop office intergration ( interfaces "i_oi_document_proxy", "i_oi_spreadsheet" )

This type of download can't be performed in background.

http://help.sap.com/saphelp_nw04/helpdata/en/e9/0be775408e11d1893b0000e8323c4f/frameset.htm

0 Kudos

Thanks a lot, Svetlin!

This might be a possible solution to that problem that I haven't thought of yet, but I will consider it now!

regards

Andreas

athavanraja
Active Contributor
0 Kudos

basically what you are saying is that as soon as the user executes the program, the output also should get downloaded to a predefined location in the user PC, without any further user interaction.

Right? if yes

you have the data in an itab (which is passed to T_OUTTAB tables parameter)

in the PBO (immediately after filling the itab with data before calling the function 'REUSE_ALV_GRID_DISPLAY'

call gui_download and pass filename, and the itab.

but you have to make sure thru a check to see this download happens only once during a session.

and this wont work in batchmode.

REgards

Raja

0 Kudos

Thanks a lot, Raja,

I think by now I know the options I have and I'm going to close the post.

regards

Andreas

0 Kudos

good to hear that we were able to help.

Regards

Raja