<?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 BDS - Print attachments. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bds-print-attachments/m-p/9452974#M1741682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a report that, among other things, has vendor invoices as one of the fields.&amp;nbsp; Currently the report looks at the BDS to determine if there is an attachment (using FM BDS_ALL_CONNECTIONS_GET).&amp;nbsp; If there is an attachment then it simply tells the user that via a field in the ALV.&amp;nbsp; The next step is to allow the user to print the attachments using a button on the ALV. First the user will highlight the row that corresponds to the invoice in question and click the button.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue is that I am unable to find a way to print these documents.&amp;nbsp; The FM that I use returns to me the document ID.&amp;nbsp; I can take that document ID to FM SO_DOCUMENT_READ_API1 and that gives me the contents in two different tables.&amp;nbsp; One is in Hex form and the other is what I assume is binary but I could be wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering, how do I take this Hex format and print it?&amp;nbsp; Is there a FM to print the BDS document directly?&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, 12 May 2013 16:51:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-05-12T16:51:13Z</dc:date>
    <item>
      <title>BDS - Print attachments.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bds-print-attachments/m-p/9452974#M1741682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a report that, among other things, has vendor invoices as one of the fields.&amp;nbsp; Currently the report looks at the BDS to determine if there is an attachment (using FM BDS_ALL_CONNECTIONS_GET).&amp;nbsp; If there is an attachment then it simply tells the user that via a field in the ALV.&amp;nbsp; The next step is to allow the user to print the attachments using a button on the ALV. First the user will highlight the row that corresponds to the invoice in question and click the button.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue is that I am unable to find a way to print these documents.&amp;nbsp; The FM that I use returns to me the document ID.&amp;nbsp; I can take that document ID to FM SO_DOCUMENT_READ_API1 and that gives me the contents in two different tables.&amp;nbsp; One is in Hex form and the other is what I assume is binary but I could be wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering, how do I take this Hex format and print it?&amp;nbsp; Is there a FM to print the BDS document directly?&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, 12 May 2013 16:51:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bds-print-attachments/m-p/9452974#M1741682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-12T16:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: BDS - Print attachments.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bds-print-attachments/m-p/9452975#M1741683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If possible, take the binary content and convert it to pdf format so that you can download it and take the print. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Athreya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 03:28:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bds-print-attachments/m-p/9452975#M1741683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-13T03:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: BDS - Print attachments.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bds-print-attachments/m-p/9452976#M1741684</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;Please try to use the FM BDS_OBJECT_DISPLAY to get the file content in table CONTENT, You also have the ASCII format in ASCII_CONTENT. Then to achieve your functionality of print can you put this in Application server or presentation server using FM SXPG_COMMAND_EXECUTE and print from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Arindam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 03:38:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bds-print-attachments/m-p/9452976#M1741684</guid>
      <dc:creator>arindam_m</dc:creator>
      <dc:date>2013-05-13T03:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: BDS - Print attachments.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bds-print-attachments/m-p/9452977#M1741685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Arindam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion.&amp;nbsp; I am running into a problem finding the URL of the document for FM &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;BDS_OBJECT_DISPLAY&lt;/SPAN&gt;.&amp;nbsp; I have tried to use FM BDS_BUSINESSDOCUMENT_GET_URL but it says that nothing is found when I pass the correct parameters (the same parameters that I pass to &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;BDS_ALL_CONNECTIONS_GET&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 11:44:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bds-print-attachments/m-p/9452977#M1741685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-13T11:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: BDS - Print attachments.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bds-print-attachments/m-p/9452978#M1741686</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;Try the FM BDS_BUILD_URL_FOR_AL to build the URL for the doc. Also check BDS_BUSINESSDOCUMENT_GET_URL if URL exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Arindam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 21:42:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bds-print-attachments/m-p/9452978#M1741686</guid>
      <dc:creator>arindam_m</dc:creator>
      <dc:date>2013-05-13T21:42:01Z</dc:date>
    </item>
  </channel>
</rss>

