ABAP convert internal table to excel (.xlsx) format and Send email or download

Reporting is incomplete without file interfacing. Sometimes the requirement is to send a file via email or download it to a PC. but what to do when the user requests the file in XLSX format?

In today's post, I am sharing how to convert an internal table to .xlsx format and then send it to a PC or email.

One of the quickest ways I found it been done is using SALV classes. Below is the

Code snippet

Now once you have the xstring with you, simply pass it to relevant libraries to handle the output.

Downloading to PC:

Sending via Email

It's that simple. Hope you like the post and use it in your day to day work.

Popular posts from this blog

ABAP read excel(.XLSX) file to internal table in ABAP using CL_FDT_XL_SPREADSHEET

Application Logging in ABAP