Posts

Showing posts with the label xlsx in sap

Download Data Into XLSX/MHTML File/Format - Reusable FM.

Image
Most of the times, we are able to upload to upload XLSX file to internal table but to download data in XLSX format we struggle most of the time. Here we are presenting a simple solution to download data in XLSX/MHTML/XML format. This function module gives you an option to select a specific filetype to be chosen. If no filetype is chosen among XLSX/MHTML/XML, then a pop up window will appear as shown below to select required filetype. Create a simple function module as described below: IMPORT:   EXPORT: CHANGING: Function Module Code: FUNCTION  zdownload_file . *"---------------------------------------------------------------------- *"*"Local Interface: *"  IMPORTING *"     REFERENCE(I_FIELDCAT) TYPE  LVC_T_FCAT OPTIONAL *"     REFERENCE(I_SORT) TYPE  LVC_T_SORT OPTIONAL *"     REFERENCE(I_FILT) TYPE  ...