Space Separator Issue while sending Mail Using FM: SO_NEW_DOCUMENT_ATT_SEND_API1
I am using the FM:SO_NEW_DOCUMENT_ATT_SEND_API1 to send Emails to different users. In the Mail I am sending the PO details along with Line Items and their price.
When I am sending the line item details I am supposed it in a format provided with proper SPACE or GAP between each value as below.
I am able to achieve this format while sending the data to the FM: SO_NEW_DOCUMENT_ATT_SEND_API1, but once the mail gets triggered, that format is getting lost and all the GAPS or SPACE that I assigned is getting compressed as below.
instead, the Output should come in the below format with proper alignment.
I tried using lc_tab in the tab separator to be declared as follows : -
CONSTANTS : lc_tab TYPE char01 VALUE cl_abap_char_utilities=>horizontal_tab.
CONCATENATE gs_finalmail-ebeln gs_finalmail-aedat gs_finalmail-ernam
INTO gs_final-txt SEPARATED BY lc_tab.
And Assigning it to Table Parameter: CONTENTS_TXT in the FM, but still the issue is not solved.
Kindly guide me how can I achive this. This data should come as normal mail content not as an attachment.