There is no specific event or dedicated interface provided by Floorplan Manager (FPM) to execute a download. However it is possible the same way like in WebDynpro applications, since FPM is based on ABAP WebDynpro.

To do this, use the pattern below in your feeder class event handler or application controller. It was tested successfully in GAF application controller interface (IF_FPM_APP_CONTROLLER) implementation for example in method AFTER_PROCESS_EVENT.

DATA:
  lv_rawdata TYPE xstring.

cl_wd_runtime_services=>attach_file_to_response(
  i_filename      = 'workbook.xlsx'               "#EC NOTEXT
  i_content       = lv_rawdata
  i_mime_type     = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
  i_in_new_window = abap_false
  i_inplace       = abap_false
).

MIME types for MS Office document extensions are the following

  • .xlsx    application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
  • .xltx     application/vnd.openxmlformats-officedocument.spreadsheetml.template
  • .potx   application/vnd.openxmlformats-officedocument.presentationml.template
  • .ppsx   application/vnd.openxmlformats-officedocument.presentationml.slideshow
  • .pptx   application/vnd.openxmlformats-officedocument.presentationml.presentation
  • .sldx    application/vnd.openxmlformats-officedocument.presentationml.slide
  • .docx   application/vnd.openxmlformats-officedocument.wordprocessingml.document
  • .dotx    application/vnd.openxmlformats-officedocument.wordprocessingml.template
  • .xlam   application/vnd.ms-excel.addin.macroEnabled.12
  • .xlsb    application/vnd.ms-excel.sheet.binary.macroEnabled.12

Share this content: