<?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: pdf attachment with SO_DOCUMENT_SEND_API1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-attachment-with-so-document-send-api1/m-p/2659637#M613509</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for ur help ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using this logic ..If i remove the logo fromt he PDF then the mail goes fine .. if i get the logo back .. i get the issue .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This problem in ECC for logos is only when a logo is large .. small logos go thru ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;looks like there is some conversion issue when logo is converted into binary ..&lt;/P&gt;&lt;P&gt;Even debug cannot resolve whats missing in a binary file ( as its difficult to analyse a bin file )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if any body has faced this issue earlier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Aug 2007 12:53:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-10T12:53:01Z</dc:date>
    <item>
      <title>pdf attachment with SO_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-attachment-with-so-document-send-api1/m-p/2659633#M613505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have  a smartform from which i get the OTF . I convert the OTF to PDF using FM convert_otf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i send this file to spool and check it contents .. all is fine and the logo in the smartform appears fine as well .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my reqt is to send the PDF as attachment thru mail to user .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the FM there is a logicwhere 132  long string is converted to 255&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT pt_payslip_pdf into wa_lines.&lt;/P&gt;&lt;P&gt;    TRANSLATE wa_lines USING ' ~'.&lt;/P&gt;&lt;P&gt;    CONCATENATE lf_buffer wa_lines INTO lf_buffer.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  TRANSLATE lf_buffer USING '~ '.&lt;/P&gt;&lt;P&gt;  DO.&lt;/P&gt;&lt;P&gt;    wa_attachment = lf_buffer.&lt;/P&gt;&lt;P&gt;    APPEND wa_attachment to lt_attachment.&lt;/P&gt;&lt;P&gt;    SHIFT lf_buffer LEFT BY 255 PLACES.&lt;/P&gt;&lt;P&gt;    IF lf_buffer IS INITIAL.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now lt_attachment is sent as one of the parameters to &lt;/P&gt;&lt;P&gt;SO_DOCUMENT_SEND_API1&lt;/P&gt;&lt;P&gt;with   wa_packing_list-doc_type = 'RAW'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works perfect in 46C . Now in ECC when i open the attachment in my mail .. I get a disfigured logo , sometimes i get 'error END of COLOR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i remove logo everything is fine .. the contents of pdf is fine in attachment .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone help me in this regard as to what needs to be done to get logo and contents perfect as an attachment .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Neelima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 07:40:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-attachment-with-so-document-send-api1/m-p/2659633#M613505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T07:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: pdf attachment with SO_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-attachment-with-so-document-send-api1/m-p/2659634#M613506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;If you have ECC installed ,&lt;/P&gt;&lt;P&gt;I think that the fastest way to solve your problem would be to replace the sending method &lt;/P&gt;&lt;P&gt;to the BCS interface introduced in ECC .&lt;/P&gt;&lt;P&gt;Just have a look at program BCS_EXAMPLE_6 .&lt;/P&gt;&lt;P&gt;You can copy the lines at the bottom .&lt;/P&gt;&lt;P&gt;I hope that it'll work for you because the ols function is a mess .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 08:13:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-attachment-with-so-document-send-api1/m-p/2659634#M613506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T08:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: pdf attachment with SO_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-attachment-with-so-document-send-api1/m-p/2659635#M613507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for replying Avi . &lt;/P&gt;&lt;P&gt;the pdf format that i get from convert_otf is of tyope tline .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i try to use int he BCS code it expects an xstring .. any idea how to go about with this converstion ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am having problem to convert the pdf to compatible type for bcs asper example6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 10:04:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-attachment-with-so-document-send-api1/m-p/2659635#M613507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T10:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: pdf attachment with SO_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-attachment-with-so-document-send-api1/m-p/2659636#M613508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;I used the example code in ECC for forms that I created in Adobe forms(as the example does)&lt;/P&gt;&lt;P&gt;So I don't really know but I found a couple of functions like  &lt;/P&gt;&lt;P&gt;SX_OBJECT_CONVERT_OTF_RAW &lt;/P&gt;&lt;P&gt;SX_OBJECT_CONVERT_OTF_PDF&lt;/P&gt;&lt;P&gt;SX_OBJECT_CONVERT*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The input data is very complex so I cannot test it , you should try them out .&lt;/P&gt;&lt;P&gt;maybe their output structures will be compatible with the one from the BCS .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 13:58:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-attachment-with-so-document-send-api1/m-p/2659636#M613508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T13:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: pdf attachment with SO_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-attachment-with-so-document-send-api1/m-p/2659637#M613509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for ur help ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using this logic ..If i remove the logo fromt he PDF then the mail goes fine .. if i get the logo back .. i get the issue .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This problem in ECC for logos is only when a logo is large .. small logos go thru ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;looks like there is some conversion issue when logo is converted into binary ..&lt;/P&gt;&lt;P&gt;Even debug cannot resolve whats missing in a binary file ( as its difficult to analyse a bin file )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if any body has faced this issue earlier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 12:53:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-attachment-with-so-document-send-api1/m-p/2659637#M613509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-10T12:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: pdf attachment with SO_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-attachment-with-so-document-send-api1/m-p/2659638#M613510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for ur help .. my problem is now resolved  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using so_new_document_send_api&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 07:38:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-attachment-with-so-document-send-api1/m-p/2659638#M613510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T07:38:33Z</dc:date>
    </item>
  </channel>
</rss>

