<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: html code for email body in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-code-for-email-body/m-p/12460157#M2000168</link>
    <description>&lt;P&gt;How is "ASSERT" a debug helper? Ok, this is sample code, let's assume it is in a larger program: other than being easy to find when setting breakpoints and otherwise harmless, is there more to it?&lt;/P&gt;</description>
    <pubDate>Thu, 19 Aug 2021 12:45:29 GMT</pubDate>
    <dc:creator>abo</dc:creator>
    <dc:date>2021-08-19T12:45:29Z</dc:date>
    <item>
      <title>html code for email body</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-code-for-email-body/m-p/12460150#M2000161</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
  &lt;P&gt;My html body for my emal gives a funny &amp;lt; character. I don't where its coming from after checking line by line.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1967680-html-email-body-output.png" /&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;*     **** Email Content
      CLEAR gw_text_bcsy.
      REFRESH gw_text_bcsy.
      CLEAR: gw_text,gw_text1,gw_text2,gw_text3,gw_text4.

*      lv_text_name = 'ZFI_MISSING_ASSETS_EMAILCONTENT'.
*
*      PERFORM f_get_email_text USING lv_text_name
*                             CHANGING gw_text_bcsy.
*
*      lr_document = cl_document_bcs=&amp;gt;create_document(
*                      i_type    = 'RAW'
*                      i_text    = gw_text_bcsy
*                      i_subject = l_subject ).

      CLEAR ls_lines.
      ls_lines-tdline = '&amp;lt;html&amp;gt;'.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

*      *Set the Body background colour
      CLEAR ls_lines.
      ls_lines-tdline = '&amp;lt;body bgcolor = "#E6E6FA"&amp;gt;'.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

*      *Set font color and its type
*      CONCATENATE '&amp;lt;FONT COLOR = "BLACK"&amp;gt;' '&amp;lt;b&amp;gt;' INTO ls_lines-tdline.
      ls_lines-tdline = '&amp;lt;FONT COLOR = "BLACK"&amp;gt;'.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

      CLEAR ls_lines.
      ls_lines-tdline = '&amp;lt;p&amp;gt; Dear Custodian &amp;lt;/p&amp;gt;'.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.


      CLEAR ls_lines.
      ls_lines-tdline = '&amp;lt;p&amp;gt;Pls update below information in the attached asset list under columns K to M and reply us within 5 working days.&amp;lt;/p&amp;gt;'.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

      ls_lines-tdline = '(1) Asset Serial Number&amp;lt;br&amp;gt;'.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

      CLEAR ls_lines.
      ls_lines-tdline = '(2) Asset Location&amp;lt;br&amp;gt;'.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

      CLEAR ls_lines.
      ls_lines-tdline = '(3) Type of Asset Label  (Refer to Note 1)&amp;lt;br&amp;gt;'.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

      CLEAR ls_lines.
      ls_lines-tdline = '&amp;lt;p&amp;gt;Note 1 - To complete if your RI has implemented the RFID tagging.&amp;lt;/p&amp;gt;'.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.


*     Prepare data in table format to dispay in Mail body
      CLEAR ls_lines.
      ls_lines-tdline = '&amp;lt;table border="1"&amp;gt;'.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

      CLEAR ls_lines.
      ls_lines-tdline = '&amp;lt;TR&amp;gt;'.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

      CLEAR ls_lines.
      ls_lines-tdline = '&amp;lt;TH&amp;gt;Tag No&amp;lt;/TH&amp;gt;'.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

      CLEAR ls_lines.
      ls_lines-tdline = '&amp;lt;TH&amp;gt;Type of Label Tag&amp;lt;/TH&amp;gt;'.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

      CLEAR ls_lines.
      ls_lines-tdline = '&amp;lt;TH&amp;gt;Suitability&amp;lt;/TH&amp;gt;'.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

      CLEAR ls_lines.
      ls_lines-tdline = '&amp;lt;/TR&amp;gt;'.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

      CLEAR ls_lines.
      CONCATENATE '&amp;lt;TR&amp;gt;&amp;lt;td align = "LEFT"&amp;gt;'
                  '&amp;lt;FONT COLOR = "BLACK"&amp;gt;' '1' '&amp;lt;/FONT&amp;gt;'
                  '&amp;lt;/td&amp;gt;'  INTO ls_lines-tdline.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

      CLEAR ls_lines.
      CONCATENATE '&amp;lt;td align = "LEFT"&amp;gt;'
                  '&amp;lt;FONT COLOR = "BLACK"&amp;gt;' 'Dogbone' '&amp;lt;/FONT&amp;gt;'
                  '&amp;lt;/td&amp;gt;'  INTO ls_lines-tdline.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

      CLEAR ls_lines.
      CONCATENATE '&amp;lt;td align = "LEFT"&amp;gt;'
                  '&amp;lt;FONT COLOR = "BLACK"&amp;gt;' 'For non-metal assets (such as Tables, Chairs, Value Dry Cabinet)' '&amp;lt;/FONT&amp;gt;'
                  '&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;'  INTO ls_lines-tdline.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

      CLEAR ls_lines.
      CONCATENATE '&amp;lt;TR&amp;gt;&amp;lt;td align = "LEFT"&amp;gt;'
                 '&amp;lt;FONT COLOR = "BLACK"&amp;gt;' '2' '&amp;lt;/FONT&amp;gt;'
                 '&amp;lt;/td&amp;gt;'  INTO ls_lines-tdline.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

      CLEAR ls_lines.
      CONCATENATE '&amp;lt;td align = "LEFT"&amp;gt;'
                  '&amp;lt;FONT COLOR = "BLACK"&amp;gt;' 'Accessory Tag' '&amp;lt;/FONT&amp;gt;'
                  '&amp;lt;/td&amp;gt;'  INTO ls_lines-tdline.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

      CLEAR ls_lines.
      CONCATENATE '&amp;lt;td align = "LEFT"&amp;gt;'
                  '&amp;lt;FONT COLOR = "BLACK"&amp;gt;' 'For small non-metal assets (such as Card Access System, Scanner AFM 30-Micron)' '&amp;lt;/FONT&amp;gt;'
                  '&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;'  INTO ls_lines-tdline.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

      CLEAR ls_lines.
      CONCATENATE '&amp;lt;TR&amp;gt;&amp;lt;td align = "LEFT"&amp;gt;'
                  '&amp;lt;FONT COLOR = "BLACK"&amp;gt;' '3' '&amp;lt;/FONT&amp;gt;'
                  '&amp;lt;/td&amp;gt;'  INTO ls_lines-tdline.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

      CLEAR ls_lines.
      CONCATENATE '&amp;lt;td align = "LEFT"&amp;gt;'
                  '&amp;lt;FONT COLOR = "BLACK"&amp;gt;' 'IQ400' '&amp;lt;/FONT&amp;gt;'
                  '&amp;lt;/td&amp;gt;'  INTO ls_lines-tdline.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

      CLEAR ls_lines.
      CONCATENATE '&amp;lt;td align = "LEFT"&amp;gt;'
                  '&amp;lt;FONT COLOR = "BLACK"&amp;gt;' 'For metal assets (such as Desktop, Residual Gas Analyzer)' '&amp;lt;/FONT&amp;gt;'
                  '&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;'  INTO ls_lines-tdline.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

      CLEAR ls_lines.
      CONCATENATE '&amp;lt;TR&amp;gt;&amp;lt;td align = "LEFT"&amp;gt;'
                  '&amp;lt;FONT COLOR = "BLACK"&amp;gt;' '4' '&amp;lt;/FONT&amp;gt;'
                  '&amp;lt;/td&amp;gt;'  INTO ls_lines-tdline.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

      CLEAR ls_lines.
      CONCATENATE '&amp;lt;td align = "LEFT"&amp;gt;'
                  '&amp;lt;FONT COLOR = "BLACK"&amp;gt;' 'IQ150' '&amp;lt;/FONT&amp;gt;'
                  '&amp;lt;/td&amp;gt;'  INTO ls_lines-tdline.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

      CLEAR ls_lines.
      CONCATENATE '&amp;lt;td align = "LEFT"&amp;gt;'
                  '&amp;lt;FONT COLOR = "BLACK"&amp;gt;' 'For small metal assets (such as Laptops, Magnetic Stirrer, Hotplate)' '&amp;lt;/FONT&amp;gt;'
                  '&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;'  INTO ls_lines-tdline.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.


      CLEAR ls_lines.
      MOVE '&amp;lt;/TABLE&amp;gt;' TO ls_lines-tdline.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.


      CLEAR ls_lines.
      ls_lines-tdline = '&amp;lt;p&amp;gt;Thank You&amp;lt;/p&amp;gt;'.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

      CLEAR ls_lines.
      ls_lines-tdline = '&amp;lt;/FONT&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;'.
      APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
      &amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

      lr_document = cl_document_bcs=&amp;gt;create_document(
                      i_type    = 'HTM' "'RAW'
                      i_text    = gw_text_bcsy
                      i_subject = l_subject ).&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;during debugging, my html code in tables as followed:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1967681-html1.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1967682-html2.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1967683-html3.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 05:13:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-code-for-email-body/m-p/12460150#M2000161</guid>
      <dc:creator>siongchao_ng</dc:creator>
      <dc:date>2021-08-19T05:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: html code for email body</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-code-for-email-body/m-p/12460151#M2000162</link>
      <description>&lt;P&gt;There should be the option to display the HTML code in the context menu, and you will see that extra character. I hope there will be some clues around in that HTML code to understand what's going on.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 05:34:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-code-for-email-body/m-p/12460151#M2000162</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-08-19T05:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: html code for email body</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-code-for-email-body/m-p/12460152#M2000163</link>
      <description>&lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;option to display the HTML code in the context menu??? where? &lt;/P&gt;&lt;P&gt;The output is only viewable in sost&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 05:48:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-code-for-email-body/m-p/12460152#M2000163</guid>
      <dc:creator>siongchao_ng</dc:creator>
      <dc:date>2021-08-19T05:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: html code for email body</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-code-for-email-body/m-p/12460153#M2000164</link>
      <description>&lt;P&gt;The context menu from inside the HTML Viewer control. If SAP has deactivated the context menu, it's possible to use the "F12 chooser" application to run the developer tools -&amp;gt; &lt;A href="https://stackoverflow.com/questions/48710202/how-to-open-javascript-developer-console-from-sap-html-viewer" target="test_blank"&gt;https://stackoverflow.com/questions/48710202/how-to-open-javascript-developer-console-from-sap-html-viewer&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 06:46:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-code-for-email-body/m-p/12460153#M2000164</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-08-19T06:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: html code for email body</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-code-for-email-body/m-p/12460154#M2000165</link>
      <description>&lt;P&gt;Have you tried to put your HTML into an IDE?&lt;/P&gt;&lt;P&gt;I noticed your code uses the FONT tag... it's deprecated (obsolete for html5)&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.w3schools.com/tags/tag_font.asp" target="test_blank"&gt;https://www.w3schools.com/tags/tag_font.asp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Maybe your browser engine (html emails are opened through some sort of browser, I guess) messes them.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 10:44:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-code-for-email-body/m-p/12460154#M2000165</guid>
      <dc:creator>VXLozano</dc:creator>
      <dc:date>2021-08-19T10:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: html code for email body</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-code-for-email-body/m-p/12460155#M2000166</link>
      <description>&lt;P&gt;Back to what I previously said, I've just checked that the context menu in SOST has the option "Show source" which display the actual HTML code rendered, not the one you have passed to BCS.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 11:19:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-code-for-email-body/m-p/12460155#M2000166</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-08-19T11:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: html code for email body</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-code-for-email-body/m-p/12460156#M2000167</link>
      <description>&lt;P&gt;Got it. The row 21 is truncated after the 132th character:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;td align = "LEFT"&amp;gt;&amp;lt;FONT COLOR = "BLACK"&amp;gt;For small non-metal assets (such as Card Access System, Scanner AFM 30-Micron)&amp;lt;/FONT&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Full minimal reproducible code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: gw_text_bcsy TYPE soli_tab,
      ls_lines     TYPE tline.
FIELD-SYMBOLS: &amp;lt;lfs_line&amp;gt; TYPE soli.

CLEAR ls_lines.
ls_lines-tdline = '&amp;lt;html&amp;gt;'.
APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
&amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

CLEAR ls_lines.
ls_lines-tdline = '&amp;lt;body bgcolor = "#E6E6FA"&amp;gt;'.
APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
&amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

CLEAR ls_lines.
ls_lines-tdline = '&amp;lt;table border="1"&amp;gt;'.
APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
&amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

CLEAR ls_lines.
ls_lines-tdline = '&amp;lt;TR&amp;gt;'.
APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
&amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

CLEAR ls_lines.
ls_lines-tdline = '&amp;lt;TH&amp;gt;Suitability&amp;lt;/TH&amp;gt;'.
APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
&amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

CLEAR ls_lines.
ls_lines-tdline = '&amp;lt;/TR&amp;gt;'.
APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
&amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

CLEAR ls_lines.
CONCATENATE '&amp;lt;TR&amp;gt;&amp;lt;td align = "LEFT"&amp;gt;'
            '&amp;lt;FONT COLOR = "BLACK"&amp;gt;' 'For small non-metal assets (such as Card Access System, Scanner AFM 30-Micron)' '&amp;lt;/FONT&amp;gt;'
            '&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;'  INTO ls_lines-tdline.
APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
&amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

CLEAR ls_lines.
MOVE '&amp;lt;/TABLE&amp;gt;' TO ls_lines-tdline.
APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
&amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

CLEAR ls_lines.
ls_lines-tdline = '&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;'.
APPEND INITIAL LINE TO gw_text_bcsy ASSIGNING &amp;lt;lfs_line&amp;gt;.
&amp;lt;lfs_line&amp;gt; = ls_lines-tdline.

DATA: send_request       TYPE REF TO cl_bcs.
DATA: sender             TYPE REF TO cl_sapuser_bcs.
DATA: recipient          TYPE REF TO if_recipient_bcs.
DATA: bcs_exception      TYPE REF TO cx_bcs.

TRY.
    DATA(lr_document) = cl_document_bcs=&amp;gt;create_document(
                    i_type    = 'HTM' "'RAW'
                    i_text    = gw_text_bcsy
                    i_subject = 'l_subject' ).
    send_request = cl_bcs=&amp;gt;create_persistent( ).
    CALL METHOD send_request-&amp;gt;set_document( lr_document ).
    sender = cl_sapuser_bcs=&amp;gt;create( sy-uname ).
    CALL METHOD send_request-&amp;gt;set_sender
      EXPORTING
        i_sender = sender.
    recipient = cl_cam_address_bcs=&amp;gt;create_internet_address(
          'jane.doe@world.com' ).
    CALL METHOD send_request-&amp;gt;add_recipient
      EXPORTING
        i_recipient = recipient.
    CALL METHOD send_request-&amp;gt;send( ).
    COMMIT WORK.
  CATCH cx_root INTO DATA(lx).
ENDTRY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Solution: you should better format your HTML code in a string variable to avoid getting truncated text, and finally convert it into the internal table using the method CL_BCS_CONVERT=&amp;gt;STRING_TO_SOLI.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 12:36:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-code-for-email-body/m-p/12460156#M2000167</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-08-19T12:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: html code for email body</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-code-for-email-body/m-p/12460157#M2000168</link>
      <description>&lt;P&gt;How is "ASSERT" a debug helper? Ok, this is sample code, let's assume it is in a larger program: other than being easy to find when setting breakpoints and otherwise harmless, is there more to it?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 12:45:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-code-for-email-body/m-p/12460157#M2000168</guid>
      <dc:creator>abo</dc:creator>
      <dc:date>2021-08-19T12:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: html code for email body</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-code-for-email-body/m-p/12460158#M2000169</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;c5e08e0478aa4727abc4482f5be390b2&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I use it to set a static breakpoint for troubleshooting (show exception value if needed) because it's at the end of a reporting event, otherwise you don't have access anymore to the variables. But it shouldn't be in my answer, so I remove it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; Even CX_ROOT is lazy/invalid code, sorry &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 12:55:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-code-for-email-body/m-p/12460158#M2000169</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-08-19T12:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: html code for email body</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-code-for-email-body/m-p/12460159#M2000170</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Thanks very much for your help!! Even when I see the internal table contents, there is no way I can which line seems to have the problem. What is this technique set a static breakpoint for troubleshooting though.?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 01:28:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-code-for-email-body/m-p/12460159#M2000170</guid>
      <dc:creator>siongchao_ng</dc:creator>
      <dc:date>2021-08-20T01:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: html code for email body</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-code-for-email-body/m-p/12460160#M2000171</link>
      <description>&lt;P&gt;I edited my question to remove the last line of the code which was "ASSERT 1 = 1." It's absolutely not related to your original question. I set a static breakpoint on this line to know the contents of variables at the end of the code in case the code is an executable program ("report"), because otherwise you can't know the result of the last line of code because the program is left immediately after the last statement. There is also the problem for the last line of each reporting event (like at selection-screen, etc.)&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 05:34:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-code-for-email-body/m-p/12460160#M2000171</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-08-20T05:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: html code for email body</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-code-for-email-body/m-p/12460161#M2000172</link>
      <description>&lt;P&gt;Concerning "there is no way I can know which line seems to have the problem". Yes there are two ways:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;You can see in your screenshot in row 21 that the value ends with "..." which means that some characters are not displayed so you can enlarge the column width to see the remaining characters.&lt;/LI&gt;&lt;LI&gt;When you have some long text, don't use variables with fixed length (132 characters in your case), use a String variable. Only at the latest moment you convert it into an internal table by calling the method CL_BCS_CONVERT=&amp;gt;STRING_TO_SOLI (this one because the internal table is made of lines of structure SOLI).&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 20 Aug 2021 05:38:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-code-for-email-body/m-p/12460161#M2000172</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-08-20T05:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: html code for email body</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-code-for-email-body/m-p/13904766#M2031608</link>
      <description>&lt;P&gt;Here is the&amp;nbsp;CL_BCS_CONVERT=&amp;gt;STRING_TO_SOLI method. there is no character limit.&lt;/P&gt;&lt;P&gt;DATA:&amp;nbsp;lv_html&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;TYPE&amp;nbsp;string.&lt;BR /&gt;DATA:&amp;nbsp;gw_text_bcsy&amp;nbsp;TYPE&amp;nbsp;soli_tab.&lt;/P&gt;&lt;P&gt;lv_html&amp;nbsp;=&amp;nbsp;'&amp;lt;html&amp;gt;&amp;lt;body&amp;gt; html body or table data'.&lt;BR /&gt;lv_html&amp;nbsp;=&amp;nbsp;lv_html&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;'&amp;lt;table&amp;nbsp;border="1"&amp;gt;'.&lt;BR /&gt;lv_html&amp;nbsp;=&amp;nbsp;lv_html&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;'&amp;lt;TR&amp;gt;&amp;lt;TH&amp;gt;Company&amp;lt;/TH&amp;gt;&amp;lt;TH&amp;gt;column label1.&amp;lt;/TH&amp;gt;&amp;lt;TH&amp;gt;column label2&amp;lt;/TH&amp;gt;&amp;lt;/TR&amp;gt;'.&lt;/P&gt;&lt;P&gt;LOOP&amp;nbsp;AT&amp;nbsp;it_table&amp;nbsp;INTO&amp;nbsp;wa_area.&lt;BR /&gt;lv_html&amp;nbsp;&amp;nbsp;=&amp;nbsp;lv_html&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;'&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;'&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;wa_area-xxx&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;'&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;'&amp;nbsp;&amp;amp;&amp;amp; wa_area-xxx&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;'&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;'&lt;BR /&gt;endloop.&lt;/P&gt;&lt;P&gt;lv_html&amp;nbsp;&amp;nbsp;=&amp;nbsp;lv_html&amp;nbsp;&amp;amp;&amp;amp;'&amp;lt;/TABLE&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;html&amp;gt;'.&lt;BR /&gt;&amp;nbsp;CALL&amp;nbsp;METHOD&amp;nbsp;cl_bcs_convert=&amp;gt;string_to_soli&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;EXPORTING&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;iv_string&amp;nbsp;=&amp;nbsp;lv_html&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;RECEIVING&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;et_soli&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;nbsp;gw_text_bcsy.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CLEAR&amp;nbsp;:&amp;nbsp;lv_html.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Dharmesh Thanki&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2024 08:41:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-code-for-email-body/m-p/13904766#M2031608</guid>
      <dc:creator>Dharmesh99</dc:creator>
      <dc:date>2024-10-19T08:41:02Z</dc:date>
    </item>
  </channel>
</rss>

