Uploading output to excel

Question:
Hi all,
i need to give a parameter in my report in which to the specified path i need to pass my report data as an excel output format.Can u please tell me how to do this.
thanks in advance
sri
Answer:
If I'm understanding you you need to pass a file format of DAT and suffiex your filename with .XLS
Answer:
i will tell u clearly..in my report i need to give a parameter in which if the path and and file name is specified my report should be saved in excel output format.Can u tell me the code for this.
thanks
sri25
Answer:
i will tell u clearly..in my report i need to give a parameter in which if the path and and file name is specified my report should be saved in excel output format.Can u tell me the code for this.
thanks
sri25
We need to be more courteous..... I don't want to open a can of worms for us desis here... no offense to anyone.
anyways here is the code,
parameters:
p_xl as checkbox default 'X',
p_fname(50) type c default 'c:\temp\myxlfile.XLS'.
start-of-selection.
.....
if p_xl = 'X' and p_fname <> ' '.
perform download_to_excel_file.
endif.
Hope this helps,

More Articles:

SAP Standard Menu?
How to Validate Selection screen.?
shortdump in CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'?
What does SAP store in the SAPLocalData.mdb in 46C?
Dynamic columns in table control?
screen exit me51n/me52n/me53n?