Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Space Separator Issue while sending Mail Using FM: SO_NEW_DOCUMENT_ATT_SEND_API1

$
0
0

Hi Experts,

 

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.

 

3.JPG

 

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.4.JPG

instead, the Output should come in the below format with proper alignment.

 

5.JPG

 

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

                            gs_finalmail-lifnr lv_gnetw

              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.

 

Regards

Gopa


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>