2005 Jul 27 12:35 PM
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
2005 Jul 27 1:37 PM
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
2005 Jul 27 1:15 PM
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
2005 Jul 27 1:27 PM
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
2005 Jul 27 1:37 PM
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
2005 Jul 27 1:52 PM
Thanks a lot, Raja,
I think by now I know the options I have and I'm going to close the post.
regards
Andreas
2005 Jul 27 1:56 PM