<?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 PDF Email Using cl_document_bcs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-pdf-email-using-cl-document-bcs/m-p/5813285#M1313632</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;   Follow the following steps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)        * Converting data to PDF.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'CONVERT_OTF'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;                format                = u2018PDFu2019&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;                bin_filesize        = lv_len_in ( which is a variable of type SOOD-OBJLEN )&lt;/P&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;               otf                       = t_otfdata&lt;/P&gt;&lt;P&gt;               lines                    = lt_tline&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.Function Module: QCE1_CONVERT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      Input the LT_LINE Table obtained from CONVERT_OTF FM.&lt;/P&gt;&lt;P&gt;      This FM returns a table which contains the actual output in PDF &lt;/P&gt;&lt;P&gt;      format(LT_OBJBIN).&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;     CALL FUNCTION 'QCE1_CONVERT'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;         t_source_tab         = lt_tline&lt;/P&gt;&lt;P&gt;         t_target_tab          = lt_objbin&lt;/P&gt;&lt;P&gt;3)  Call the FM to send the E-mail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      document_data              = lw_doc_chng&lt;/P&gt;&lt;P&gt;      put_in_outbox               = u2018Xu2019&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      packing_list                   = lt_objpack&lt;/P&gt;&lt;P&gt;      object_header                = lt_objhead&lt;/P&gt;&lt;P&gt;      contents_bin                  = lt_objbin&lt;/P&gt;&lt;P&gt;      contents_txt                   = lt_objtxt&lt;/P&gt;&lt;P&gt;      receivers                        = lt_reclist&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to Transaction : SBWP &lt;/P&gt;&lt;P&gt;Click on the Outbox to check if the mail is sent to the address mentioned&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal table mention in FM fill as follows&lt;/P&gt;&lt;P&gt;  lt_reclist-receiver = "Mail id&lt;/P&gt;&lt;P&gt;  lt_reclist-rec_type = u2018Uu2019.                                  "External Address&lt;/P&gt;&lt;P&gt;  APPEND lt_reclist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; lt_objhead  = "Name"u2019.(Name of the PDF attachment)&lt;/P&gt;&lt;P&gt;  APPEND lt_objhead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it works!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shambhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jun 2009 05:23:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-30T05:23:06Z</dc:date>
    <item>
      <title>Send PDF Email Using cl_document_bcs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-pdf-email-using-cl-document-bcs/m-p/5813284#M1313631</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;I'm sending email with pdf attachment using cl_document_bcs, the problem I'm having right now is I need change the layout of the PDF. I'm not able to find any parameter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mawi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 04:44:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-pdf-email-using-cl-document-bcs/m-p/5813284#M1313631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-30T04:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Send PDF Email Using cl_document_bcs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-pdf-email-using-cl-document-bcs/m-p/5813285#M1313632</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;   Follow the following steps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)        * Converting data to PDF.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'CONVERT_OTF'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;                format                = u2018PDFu2019&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;                bin_filesize        = lv_len_in ( which is a variable of type SOOD-OBJLEN )&lt;/P&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;               otf                       = t_otfdata&lt;/P&gt;&lt;P&gt;               lines                    = lt_tline&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.Function Module: QCE1_CONVERT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      Input the LT_LINE Table obtained from CONVERT_OTF FM.&lt;/P&gt;&lt;P&gt;      This FM returns a table which contains the actual output in PDF &lt;/P&gt;&lt;P&gt;      format(LT_OBJBIN).&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;     CALL FUNCTION 'QCE1_CONVERT'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;         t_source_tab         = lt_tline&lt;/P&gt;&lt;P&gt;         t_target_tab          = lt_objbin&lt;/P&gt;&lt;P&gt;3)  Call the FM to send the E-mail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      document_data              = lw_doc_chng&lt;/P&gt;&lt;P&gt;      put_in_outbox               = u2018Xu2019&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      packing_list                   = lt_objpack&lt;/P&gt;&lt;P&gt;      object_header                = lt_objhead&lt;/P&gt;&lt;P&gt;      contents_bin                  = lt_objbin&lt;/P&gt;&lt;P&gt;      contents_txt                   = lt_objtxt&lt;/P&gt;&lt;P&gt;      receivers                        = lt_reclist&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to Transaction : SBWP &lt;/P&gt;&lt;P&gt;Click on the Outbox to check if the mail is sent to the address mentioned&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal table mention in FM fill as follows&lt;/P&gt;&lt;P&gt;  lt_reclist-receiver = "Mail id&lt;/P&gt;&lt;P&gt;  lt_reclist-rec_type = u2018Uu2019.                                  "External Address&lt;/P&gt;&lt;P&gt;  APPEND lt_reclist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; lt_objhead  = "Name"u2019.(Name of the PDF attachment)&lt;/P&gt;&lt;P&gt;  APPEND lt_objhead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it works!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shambhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 05:23:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-pdf-email-using-cl-document-bcs/m-p/5813285#M1313632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-30T05:23:06Z</dc:date>
    </item>
  </channel>
</rss>

