01-08-2015 8:36 AM
Dear Friends ,
As i want to know , is there is any possibility to display ALV Grid output in Excel form instead of ALV Grid design.
Exactly like the below Screen shot.
01-08-2015 9:01 AM
Hi,
do I understand correctly, you do not want to use the download functionality from the ALV to download to excel? You do not want the ALV grid at all?
01-08-2015 9:13 AM
you can open a report as excel without displaying in alv using the below code:
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
document = c_file
operation = 'OPEN'
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
bad_parameter = 3
file_not_found = 4
path_not_found = 5
file_extension_unknown = 6
error_execute_failed = 7
synchronous_failed = 8
not_supported_by_gui = 9
others = 10.
IF sy-subrc <> 0.
* Do Nothing
ENDIF.
01-08-2015 9:30 AM
Hi
You need DOI tech. Just check this standard program 'SAPRDEMO_DOI_BDS', after you execute,click 'Create' on toolbar to create a excel table.
regards,
Archer
01-08-2015 9:43 AM
From ALV click the "Change Layout" icon, then go to tab "view" and in field "Preferred View" select "E Excel", select a template. You could then save this in a variant or debug to analyze current layout definition used by ALV.
Ref: 548409 - ALV view: Consulting note about Integrated Excel & templates
Regards,
Raymond
01-08-2015 12:18 PM
01-08-2015 1:21 PM
01-08-2015 6:08 PM
01-12-2015 1:06 PM
Peace be upon you,
you can Press: Microsoft Excel icon
in Menu Views > Microsoft Excel
or Press: Ctrl+Shift+F7
you may be prompted with a confirmation popup from Excel
click Allow Macros
Hope you find this helpful