Please feel free to share your thoughts and suggestions. * If e-mail is successful then do commit work Lo_send_request_ref->set_sender( i_sender = lo_sender_ref ).ĭATA(lo_recipient_ref) = cl_cam_address_bcs=>create_internet_address( p_email ).ĭATA(lv_sent_to_all) = lo_send_request_ref->send( ). Lo_send_request_ref->set_document( lo_doc_bcs_ref ).ĭATA(lo_sender_ref) = cl_sapuser_bcs=>create( sy-uname ). I_subject = CONV so_obj_des( lv_subject ) "Set the Email Subject " Build HTML for SendingĭATA(lo_multipart_ref) = NEW cl_gbt_multirelated_service( ).ĭATA(lo_doc_bcs_ref) = cl_document_bcs=>create_from_multirelated( REPLACE 'IT_FLIGHTS' WITH lv_content INTO lv_body_html.ĭATA(lv_body_html_soli) = cl_bcs_convert=>string_to_soli( lv_body_html ). LOOP AT lt_sflights ASSIGNING FIELD-SYMBOL(). 5pt background:white mso-background-themecolor:` 5pt mso-border-left-alt:solid windowtext. & `none border-bottom:solid windowtext 1.0pt border-right:solid windowtext 1.0pt ` DATA(lv_cell_attrib) = ` width=85 valign=top style='width:77.95pt border-top:none border-left:` Step 7: Replace IT_FLIGHTS in the code as per snippet. along with its all cells and maintain a placeholder e.g. Step 6: Copy cell attributes to have in the code. Step 5: Moving further, identify where the blank table row is in the Body HTML content. Step 4: Next open the e-mail template and choose the ‘Load local file’ option. Step 2: Next, simply create Email content (Email Body) in MS Word, along with a table including a header and only one blank row for table data. Step 1: We can create an Email template in the object navigator by navigating to the Email template option shown as per the image below. Please visit the blog to get the initial overview of the email template. 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. Use with success option for custom DOM manipulation.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.
0 Comments
Leave a Reply. |