12-21-2023 8:00 AM
can you please tell how can I align the excel sheet generated by abap report as an attachment in a mail. When I download the excel sheet from sost tcode. The allignment is very bad. I need make this excel with alligning while downloading from mail in sost.
I downloaded abapgit but don’t know the code snippet to use in abap program. I don’t know whether I need to do for every cell seperately. Please help me.
12-21-2023 8:25 AM
You say that "the alignment is very bad", it's very subjective, could you please show.
It's abap2xlsx, not abapGit.
There are demo programs.
Excel is one thing, emailing/downloading is another thing completely unrelated.
12-21-2023 9:29 AM
The abap code generates The mail with excel sheet. The excel sheet have the allignment which is not readable. The requirement have that is to make the excel sheet with correct allignment.
For using abap2xlsx, we need to download abapgit in the system right. That’s why I said abapgit.
Also, if you know how can I implement this in existing code. The excel sheet contains some headers and fields data.
12-21-2023 10:21 AM
If your issue is regarding the alignment and you wanted to use abap2xlsx, take a look at program ZABAP2XLSX_DEMO_SHOW and choose on that suit your requirement (alignment and mail attachment, could be ZDEMO_EXCEL14 or ZDEMO_EXCEL37).
12-21-2023 10:25 AM
12-21-2023 10:42 AM
12-21-2023 12:39 PM
The demo programs of abap2xlsx are provided in a separate repository: abap2xlsx/demos: Demonstration programs (github.com).
Excerpt from Raymond link installation of Abap2XLSX: