Introduction: In this article, I'll demonstrate, how we can draw an HTML table in an E-mail body by using an E-mail template with all the styles we can do in Microsoft Word and a simple way to do this.
In SAP_BASIS 750 and above releases or in S/4 systems, we have an Email template feature available along with a CDS view functionality.
" Get the RawHTML Content and Replace the palceholder with the INV Details in the email
iv_language = sy-langu
it_data_key = i_cds_key
ev_subject = DATA(lv_subject)
ev_body_html = DATA(lv_body_html) ).