<?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: Moving binary formatted file (from archive db) to printer in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-binary-formatted-file-from-archive-db-to-printer/m-p/1982694#M401698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishnan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same problem, I need to print pdf doc. automatically and I can reach these files using BDS_GOS_CONNECTIONS_GET.&lt;/P&gt;&lt;P&gt;You said that you can download to a folder and append it and then give a single print is this done without the user get involved; if yes please explain it to me. If no please can you explain to me how you use the Esckar system to send the pdf to printer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Mohammed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2007 05:43:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-11T05:43:16Z</dc:date>
    <item>
      <title>Moving binary formatted file (from archive db) to printer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-binary-formatted-file-from-archive-db-to-printer/m-p/1982685#M401689</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;We have a archive database and the tiff/pdf image is retrieved using the function module ARCHIVOBJECT_GET_TABLE. The image retrieved is converted as attachment and sent through email OR displayed in web page with the help of BSP application. No issues in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current requirement is to automatically print the archived document. Using the above function module I can fetch the data from archive database. The output from this FM is in binary format. Pl suggest how this can be sent to a printer for printing (execution of the program to retrive / print will be a background job!). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Krish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2007 17:13:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-binary-formatted-file-from-archive-db-to-printer/m-p/1982685#M401689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-19T17:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Moving binary formatted file (from archive db) to printer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-binary-formatted-file-from-archive-db-to-printer/m-p/1982686#M401690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be you can convert the Binary output from fm ARCHIVOBJECT_GET_TABLE into text then send directly to printer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES : BEGIN OF TY_TEXT,
TEXT_FIELD(1000) TYPE C,
END OF TY_TEXT.

TYPES : BEGIN OF TY_BINARY,
BINARY_FIELD(1000) TYPE C,
END OF TY_BINARY.

DATA : LT_BINARY type table of TY_BINARY with header line.
DATA : LT_TEXT_OUT type table of TY_TEXT with header line.

* Convert binary to text.
CALL FUNCTION 'SCMS_BINARY_TO_TEXT'
EXPORTING
  INPUT_LENGTH = 100
  WRAP_LINES = 'X'
TABLES
  BINARY_TAB = LT_BINARY
  TEXT_TAB = LT_TEXT_OUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2007 19:37:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-binary-formatted-file-from-archive-db-to-printer/m-p/1982686#M401690</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-02-19T19:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Moving binary formatted file (from archive db) to printer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-binary-formatted-file-from-archive-db-to-printer/m-p/1982687#M401691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishnan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to email the archived tiff/pdf image.  However, I do not know how to convert the image from binary or from archiveobject using the FM ARCHIVOBJECT_GET_TABLE to the format required as an attachment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you be able to shed some light on how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 20:23:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-binary-formatted-file-from-archive-db-to-printer/m-p/1982687#M401691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T20:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Moving binary formatted file (from archive db) to printer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-binary-formatted-file-from-archive-db-to-printer/m-p/1982688#M401692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While using ARCHIVOBJECT_GET_TABLE, you can get image as binary table from the table parameter "binarchivobject".   Also from the importing paramter you can get the binary length in "binlength".  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following steps to convert the binary to line format to send through email.&lt;/P&gt;&lt;P&gt;1.  Using fm SCMS_BINARY_TO_STRING to convert the binary to string (inputs - binary length and binary table-- note- the data type for "binlength"(archiv fm) and "input_length" (SCMS fm) are different, so convert and use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.  Using the FM - SO_STRING_TO_TAB, convert the string to line format.  Input is the string output from SCMS fm and output is the table structure of structure SOLI.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once it is converted as line structure it can be sent as attachment using the function module SO_NEW_DOCUMENT_ATT_SEND_API1 (key inputs are document data, packing list - this is the one which carries the index for texts / multiple images, object header, contents bin - this is the one which carries the image)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Krish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 20:41:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-binary-formatted-file-from-archive-db-to-printer/m-p/1982688#M401692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T20:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Moving binary formatted file (from archive db) to printer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-binary-formatted-file-from-archive-db-to-printer/m-p/1982689#M401693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishnan.&lt;/P&gt;&lt;P&gt;Did you find an answer to your problem? I'm facing the same. I need to put together a series of scanned images from the archive and print the lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 11:12:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-binary-formatted-file-from-archive-db-to-printer/m-p/1982689#M401693</guid>
      <dc:creator>TomS2</dc:creator>
      <dc:date>2007-06-04T11:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Moving binary formatted file (from archive db) to printer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-binary-formatted-file-from-archive-db-to-printer/m-p/1982690#M401694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two indirect alternatives, which I found for this requirement.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.  We are using Esker software to send fax messages.  I sent all the files which are required to be printed as fax message to this server and with the help of Esker developers, I directed this message to a printer.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.  If all the images are pdf then you can download to a folder, append it and then give a single print!  This doesn't worked out for me since I have both pdf and tiff and it needs to be printed sequentially.  If your requirement is only on pdf let me know so that I can send you the code which I tried to combine files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Krish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 14:29:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-binary-formatted-file-from-archive-db-to-printer/m-p/1982690#M401694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T14:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Moving binary formatted file (from archive db) to printer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-binary-formatted-file-from-archive-db-to-printer/m-p/1982691#M401695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Krishnan&lt;/P&gt;&lt;P&gt;thanx for your quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i had a look at Esker before, but i don't think it's an option to install this software in our system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for now, the images are not all in PDF, but with some changes that could be the case later on. would appreciate if you had code-examples for appending and printing the PDF's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you know if it's possible to convert images of other types to PDF in ABAP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 06:04:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-binary-formatted-file-from-archive-db-to-printer/m-p/1982691#M401695</guid>
      <dc:creator>TomS2</dc:creator>
      <dc:date>2007-06-05T06:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Moving binary formatted file (from archive db) to printer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-binary-formatted-file-from-archive-db-to-printer/m-p/1982692#M401696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't have to call SCMS_BINARY_TO_STRING  and SO_STRING_TO_TAB.&lt;/P&gt;&lt;P&gt;You can use TABLE_COMPRESS and TABLE_DECOMPRESS (even if the are obsolete). Try to look at FM SO_OBJECT_DATA_FOR_SEND_GET - there first ARCHIVOBJECT_GET_TABLE is called and then rutine table_copy(saplsokp) is called to do the compress/decompress. The result is a SOLI_TAB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 09:28:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-binary-formatted-file-from-archive-db-to-printer/m-p/1982692#M401696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T09:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Moving binary formatted file (from archive db) to printer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-binary-formatted-file-from-archive-db-to-printer/m-p/1982693#M401697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishnan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same problem, I need to print pdf doc. automatically and I can reach these files using BDS_GOS_CONNECTIONS_GET.&lt;/P&gt;&lt;P&gt;You said that you can download to a folder and append it and then give a single print is this done without the user get involved; if yes please explain it to me. If no please can you explain to me how you use the Esckar system to send the pdf to printer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mohammed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 05:42:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-binary-formatted-file-from-archive-db-to-printer/m-p/1982693#M401697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T05:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Moving binary formatted file (from archive db) to printer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-binary-formatted-file-from-archive-db-to-printer/m-p/1982694#M401698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishnan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same problem, I need to print pdf doc. automatically and I can reach these files using BDS_GOS_CONNECTIONS_GET.&lt;/P&gt;&lt;P&gt;You said that you can download to a folder and append it and then give a single print is this done without the user get involved; if yes please explain it to me. If no please can you explain to me how you use the Esckar system to send the pdf to printer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Mohammed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 05:43:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-binary-formatted-file-from-archive-db-to-printer/m-p/1982694#M401698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T05:43:16Z</dc:date>
    </item>
  </channel>
</rss>

