<?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: send table in mail in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-table-in-mail/m-p/4627412#M1089921</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the compliment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the documentation given for that FM in SE37. It has an&lt;/P&gt;&lt;P&gt;example with Header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Oct 2008 13:18:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-20T13:18:14Z</dc:date>
    <item>
      <title>send table in mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-table-in-mail/m-p/4627405#M1089914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is a way to send internal table in mail ?&lt;/P&gt;&lt;P&gt;for sending mail i use class cl_bcs ,i need example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Oct 2008 21:37:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-table-in-mail/m-p/4627405#M1089914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-19T21:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: send table in mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-table-in-mail/m-p/4627406#M1089915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how you want that? plain text or as attachment? did you look at Thomas Jung's blog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_blogpost" href="https://community.sap.com/" __jive_macro_name="blogpost" modifiedtitle="true" __default_attr="39943"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Oct 2008 21:46:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-table-in-mail/m-p/4627406#M1089915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-19T21:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: send table in mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-table-in-mail/m-p/4627407#M1089916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the standard demo programs starting with &lt;STRONG&gt;BCS_&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 06:47:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-table-in-mail/m-p/4627407#M1089916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T06:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: send table in mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-table-in-mail/m-p/4627408#M1089917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi MxG  ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yea i follow his blog but he don't move internal table just text.&lt;/P&gt;&lt;P&gt;i wont move the table as  plain text i.e. in the body of the mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 08:56:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-table-in-mail/m-p/4627408#M1089917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T08:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: send table in mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-table-in-mail/m-p/4627409#M1089918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose  ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i take a look in the BCS programs but nothing there move internal table to mail body.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 09:12:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-table-in-mail/m-p/4627409#M1089918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T09:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: send table in mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-table-in-mail/m-p/4627410#M1089919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly check the below program.&lt;/P&gt;&lt;P&gt;Also check the documentation given for the Func module &lt;STRONG&gt;WWW_ITAB_TO_HTML&lt;/STRONG&gt;.Seems we can add colors, headers etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: send_request  TYPE REF TO cl_bcs,
      document      TYPE REF TO cl_document_bcs,
      recipient     TYPE REF TO cl_cam_address_bcs,
      bcs_exception TYPE REF TO cx_bcs,
      sent_to_all   TYPE os_boolean,
      lt_tab        TYPE TABLE OF makt,
      lt_fields     TYPE TABLE OF w3fields,
      lt_html       TYPE TABLE OF w3html.

PARAMETER mailid TYPE adr6-smtp_addr.

SELECT * FROM makt UP TO 10 ROWS INTO TABLE lt_tab WHERE spras = 'E'.

CALL FUNCTION 'WWW_ITAB_TO_HTML'
  TABLES
    html   = lt_html[]
    fields = lt_fields
    itable = lt_tab.

TRY.
    send_request = cl_bcs=&amp;gt;create_persistent( ).
    document = cl_document_bcs=&amp;gt;create_document(  i_type    = 'HTM'
                                                  i_text    = lt_html
                                                  i_subject = 'Table' ).
    send_request-&amp;gt;set_document( document ).
    recipient = cl_cam_address_bcs=&amp;gt;create_internet_address( mailid ).
    send_request-&amp;gt;add_recipient( EXPORTING i_recipient = recipient
                                           i_express   = 'X' ).
    send_request-&amp;gt;set_send_immediately( 'X' ).
    send_request-&amp;gt;send( EXPORTING i_with_error_screen = 'X'
                        RECEIVING result              = sent_to_all ).
    COMMIT WORK.

  CATCH cx_bcs INTO bcs_exception.
    EXIT.
ENDTRY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 12:08:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-table-in-mail/m-p/4627410#M1089919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T12:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: send table in mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-table-in-mail/m-p/4627411#M1089920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Josh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks u are Great ,&lt;/P&gt;&lt;P&gt;its working  except  the header , i saw that in the fm i have option to use header but i don't now, there is a loot of parameters there  how maybe u have idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 13:10:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-table-in-mail/m-p/4627411#M1089920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T13:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: send table in mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-table-in-mail/m-p/4627412#M1089921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the compliment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the documentation given for that FM in SE37. It has an&lt;/P&gt;&lt;P&gt;example with Header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 13:18:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-table-in-mail/m-p/4627412#M1089921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T13:18:14Z</dc:date>
    </item>
  </channel>
</rss>

