FM to send html mail including html table.

FUNCTION ZTB_SEND_HTML_MAIL. *”———————————————————————- *”*”Local Interface: *”  IMPORTING *”     REFERENCE(I_SUBJECT) TYPE  STRING OPTIONAL *”     REFERENCE(I_SENDER) TYPE  STRING *”  TABLES *”      IT_BODY TYPE  STRING_TABLE OPTIONAL *”      IT_TABLE_HEADER TYPE  STRING_TABLE OPTIONAL *”      IT_TABLE_ITEM TYPE  STRING_TABLE OPTIONAL *”      IT_END TYPE  STRING_TABLE OPTIONAL *”      IT_CC TYPE  STRING_TABLE OPTIONAL *”      IT_RECEIPENTS TYPE  STRING_TABLE *”      ET_RETURN TYPE  STRING_TABLE OPTIONAL *”———————————————————————- * Mail Data data : send_request     type ref to cl_bcs                ,        document         type ref to cl_document_bcs       ,        text             type bcsy_text                    ,        sender_id        type ref to if_sender_bcs         ,        recipient        type ref to if_recipient_bcs      ,        bcs_exception    type ref to cx_bcs                ,        sent_to_all      type os_boolean                   ,        conlength        type i                            ,        conlengths       type so_obj_len                   ,        result_content   type string                       ,        content_length   type w3param-cont_len             ,        content_type     type w3param-cont_type            ,        return_code      type w3param-ret_code             ,        listobject       type table of abaplist            ,        html_wa          type w3html                       ,        html             type standard table of w3html     ,        wa_rec           type ad_smtpadr                   ,        bcs_message      type string                       ,        tmp_str          type string                       . data : sender           type ad_smtpadr                   ,        subject          type so_obj_des                   ,        recepients       type bcsy_smtpa                   ,        return           type table_of_strings             ,        lt_receipents    type bcsy_smtpa                   ,        lt_cc            type bcsy_smtpa                   ,        e_subrc          type subrc                        ,        lv_subject       type so_obj_des                   ,        lt_html          type soli_tab                     ,        ls_html          type soli. data:  begin of itab occurs 0                             ,        line(15)                                           ,        end of itab                                        ,        ls_itab       like line of itab                    ,        lv_string     type string                          ,        lv_tabix      type sy-tabix                        . * Conversions   sender = i_sender. * Mail Subject.   lv_subject = i_subject.… Continue reading FM to send html mail including html table.