<?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: Problem with ADOBE document and class method CL_BCS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-adobe-document-and-class-method-cl-bcs/m-p/3655602#M880591</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am using ADOBE form and not sap script or smart form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is as follows.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS cl_bcs DEFINITION LOAD.&lt;/P&gt;&lt;P&gt;  DATA: lv_send_request TYPE REF TO cl_bcs VALUE IS INITIAL,&lt;/P&gt;&lt;P&gt;        lt_message_body TYPE bcsy_text VALUE IS INITIAL,&lt;/P&gt;&lt;P&gt;        lv_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.&lt;/P&gt;&lt;P&gt;  DATA: lv_xdocument_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.&lt;/P&gt;&lt;P&gt;  DATA: lv_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,&lt;/P&gt;&lt;P&gt;        lv_send TYPE adr6-smtp_addr VALUE 'vivek'.&lt;/P&gt;&lt;P&gt;  DATA: lv_recipient TYPE REF TO if_recipient_bcs.&lt;/P&gt;&lt;P&gt;  lv_send_request = cl_bcs=&amp;gt;create_persistent( ).&lt;/P&gt;&lt;P&gt;  lv_document = cl_document_bcs=&amp;gt;create_document(&lt;/P&gt;&lt;P&gt;  i_type = 'RAW'&lt;/P&gt;&lt;P&gt;  i_text = lt_message_body&lt;/P&gt;&lt;P&gt;  i_subject = 'Invoice Remittance' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;P&gt;      lv_document-&amp;gt;add_attachment(&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;      i_attachment_type = 'PDF'&lt;/P&gt;&lt;P&gt;      i_attachment_subject = 'Invoice Remittance Form'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_ATTACHMENT_SIZE =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_ATTACHMENT_LANGUAGE = SPACE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_ATT_CONTENT_TEXT =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_ATTACHMENT_HEADER =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      i_att_content_hex = gt_att_content_hex ).&lt;/P&gt;&lt;P&gt;    CATCH cx_document_bcs INTO lv_xdocument_bcs.&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add attachment&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Pass the document to send request&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  lv_send_request-&amp;gt;set_document( lv_document ).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create sender&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  lv_sender = cl_sapuser_bcs=&amp;gt;create( sy-uname ).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set sender&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  lv_send_request-&amp;gt;set_sender(&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;  i_sender = lv_sender ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    create recipient - please replace e-mail address !!!&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  lv_recipient = cl_cam_address_bcs=&amp;gt;create_internet_address(&lt;/P&gt;&lt;P&gt;                                    'email id' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Set recipient&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  lv_send_request-&amp;gt;add_recipient(&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;  i_recipient = lv_recipient&lt;/P&gt;&lt;P&gt;  i_express = 'X' ).&lt;/P&gt;&lt;P&gt;  lv_send_request-&amp;gt;add_recipient(&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;   i_recipient = lv_recipient&lt;/P&gt;&lt;P&gt;   i_express = 'X' ).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Send email&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.&lt;/P&gt;&lt;P&gt;  lv_send_request-&amp;gt;send(&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;  i_with_error_screen = 'X'&lt;/P&gt;&lt;P&gt;  RECEIVING&lt;/P&gt;&lt;P&gt;  result = lv_sent_to_all ).&lt;/P&gt;&lt;P&gt;  COMMIT WORK.&lt;/P&gt;&lt;P&gt;  MESSAGE 'The Detail Info form has been emailed to the Vendor' TYPE 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vivek Agarwal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Apr 2008 14:16:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-10T14:16:07Z</dc:date>
    <item>
      <title>Problem with ADOBE document and class method CL_BCS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-adobe-document-and-class-method-cl-bcs/m-p/3655599#M880588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am mailing a ADOBE document using the Class method CL_BCS.(Pls ref the blog /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also getting the required output but with my attachment i am also getting a attachment that is blank (i.e completly white page) in pdf format.I have also done the settings as mentioned in the blog in T-Code SCOT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please specify where i need to change my approach so that i can correct this defect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vivek Agarwal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 10, 2008 10:29 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 14:00:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-adobe-document-and-class-method-cl-bcs/m-p/3655599#M880588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-10T14:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with ADOBE document and class method CL_BCS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-adobe-document-and-class-method-cl-bcs/m-p/3655600#M880589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Debug your coding thouroughly. You are probably sending two attachments at once. Maybe parameter for add_attachment method is not filled correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a suggestion, since you haven't provided us with any code, so all we can do is guess.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 14:05:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-adobe-document-and-class-method-cl-bcs/m-p/3655600#M880589</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-04-10T14:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with ADOBE document and class method CL_BCS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-adobe-document-and-class-method-cl-bcs/m-p/3655601#M880590</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 can be a problem in ur SAP-Script or SMARTFORM....&lt;/P&gt;&lt;P&gt;Just check the output first...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 10, 2008 10:31 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 14:09:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-adobe-document-and-class-method-cl-bcs/m-p/3655601#M880590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-10T14:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with ADOBE document and class method CL_BCS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-adobe-document-and-class-method-cl-bcs/m-p/3655602#M880591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am using ADOBE form and not sap script or smart form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is as follows.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS cl_bcs DEFINITION LOAD.&lt;/P&gt;&lt;P&gt;  DATA: lv_send_request TYPE REF TO cl_bcs VALUE IS INITIAL,&lt;/P&gt;&lt;P&gt;        lt_message_body TYPE bcsy_text VALUE IS INITIAL,&lt;/P&gt;&lt;P&gt;        lv_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.&lt;/P&gt;&lt;P&gt;  DATA: lv_xdocument_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.&lt;/P&gt;&lt;P&gt;  DATA: lv_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,&lt;/P&gt;&lt;P&gt;        lv_send TYPE adr6-smtp_addr VALUE 'vivek'.&lt;/P&gt;&lt;P&gt;  DATA: lv_recipient TYPE REF TO if_recipient_bcs.&lt;/P&gt;&lt;P&gt;  lv_send_request = cl_bcs=&amp;gt;create_persistent( ).&lt;/P&gt;&lt;P&gt;  lv_document = cl_document_bcs=&amp;gt;create_document(&lt;/P&gt;&lt;P&gt;  i_type = 'RAW'&lt;/P&gt;&lt;P&gt;  i_text = lt_message_body&lt;/P&gt;&lt;P&gt;  i_subject = 'Invoice Remittance' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;P&gt;      lv_document-&amp;gt;add_attachment(&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;      i_attachment_type = 'PDF'&lt;/P&gt;&lt;P&gt;      i_attachment_subject = 'Invoice Remittance Form'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_ATTACHMENT_SIZE =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_ATTACHMENT_LANGUAGE = SPACE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_ATT_CONTENT_TEXT =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_ATTACHMENT_HEADER =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      i_att_content_hex = gt_att_content_hex ).&lt;/P&gt;&lt;P&gt;    CATCH cx_document_bcs INTO lv_xdocument_bcs.&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add attachment&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Pass the document to send request&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  lv_send_request-&amp;gt;set_document( lv_document ).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create sender&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  lv_sender = cl_sapuser_bcs=&amp;gt;create( sy-uname ).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set sender&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  lv_send_request-&amp;gt;set_sender(&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;  i_sender = lv_sender ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    create recipient - please replace e-mail address !!!&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  lv_recipient = cl_cam_address_bcs=&amp;gt;create_internet_address(&lt;/P&gt;&lt;P&gt;                                    'email id' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Set recipient&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  lv_send_request-&amp;gt;add_recipient(&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;  i_recipient = lv_recipient&lt;/P&gt;&lt;P&gt;  i_express = 'X' ).&lt;/P&gt;&lt;P&gt;  lv_send_request-&amp;gt;add_recipient(&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;   i_recipient = lv_recipient&lt;/P&gt;&lt;P&gt;   i_express = 'X' ).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Send email&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.&lt;/P&gt;&lt;P&gt;  lv_send_request-&amp;gt;send(&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;  i_with_error_screen = 'X'&lt;/P&gt;&lt;P&gt;  RECEIVING&lt;/P&gt;&lt;P&gt;  result = lv_sent_to_all ).&lt;/P&gt;&lt;P&gt;  COMMIT WORK.&lt;/P&gt;&lt;P&gt;  MESSAGE 'The Detail Info form has been emailed to the Vendor' TYPE 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vivek Agarwal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 14:16:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-adobe-document-and-class-method-cl-bcs/m-p/3655602#M880591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-10T14:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with ADOBE document and class method CL_BCS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-adobe-document-and-class-method-cl-bcs/m-p/3655603#M880592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vivek,&lt;/P&gt;&lt;P&gt;i use it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;DESCRIBE TABLE IT_BIN LINES N10.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  *N10 = ( N10 - 1 ) * 255 + STRLEN( WA_BIN ).*&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;IT_LENGHT = N10.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD DOCUMENT-&amp;gt;ADD_ATTACHMENT&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      I_ATTACHMENT_TYPE    = ATT_TYPE&lt;/P&gt;&lt;P&gt;      I_ATT_CONTENT_HEX    = IT_BIN&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;I_ATTACHMENT_SIZE    = IT_LENGHT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      I_ATTACHMENT_SUBJECT = SUBJECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you have to set the ..SIZE.&lt;/P&gt;&lt;P&gt;fill it like i do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 14:28:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-adobe-document-and-class-method-cl-bcs/m-p/3655603#M880592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-10T14:28:31Z</dc:date>
    </item>
  </channel>
</rss>

