<?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: Can binary data be sent using WRITE? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-binary-data-be-sent-using-write/m-p/1309168#M161133</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the hex/binary issue is a red herring. The data is represented as hex so that human beings can read it quickly - internally the data always occupies the bytes in binary code. Maybe the printer expects the data to be of a specific length and you are not complying. HAve you tried an XSTRING variable or RAW if it's from a dictionary based structure?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Apr 2006 23:26:14 GMT</pubDate>
    <dc:creator>former_member186741</dc:creator>
    <dc:date>2006-04-26T23:26:14Z</dc:date>
    <item>
      <title>Can binary data be sent using WRITE?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-binary-data-be-sent-using-write/m-p/1309167#M161132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know how I can trick the WRITE command to send binary data to a printer using the WRITE command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing a driver for an Eltron thermal label printer that supports the EPL2 command language. To send a small graphic (a logo) I use the "GW" command that requires binary data. Other printers (e.g. Zebra with ZPL2 language) accept Hex written as characters, but this one does not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried putting the necessary bytes into a hex (TYPE X) field but looking at the print spool I see that WRITE has helpfully converted the bytes to their 2 character hexadecimal equivalents. I want to send the bytes instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output device is defined as ASCIIPRI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2006 21:39:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-binary-data-be-sent-using-write/m-p/1309167#M161132</guid>
      <dc:creator>juan_suros</dc:creator>
      <dc:date>2006-04-26T21:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can binary data be sent using WRITE?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-binary-data-be-sent-using-write/m-p/1309168#M161133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the hex/binary issue is a red herring. The data is represented as hex so that human beings can read it quickly - internally the data always occupies the bytes in binary code. Maybe the printer expects the data to be of a specific length and you are not complying. HAve you tried an XSTRING variable or RAW if it's from a dictionary based structure?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2006 23:26:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-binary-data-be-sent-using-write/m-p/1309168#M161133</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-04-26T23:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can binary data be sent using WRITE?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-binary-data-be-sent-using-write/m-p/1309169#M161134</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;GOOD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TO THROUGH THE FOLLOING LINKS&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.makebarcode.com/info/appnote/app_024.html" target="test_blank"&gt;http://www.makebarcode.com/info/appnote/app_024.html&lt;/A&gt;&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;MRUTYUN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2006 03:52:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-binary-data-be-sent-using-write/m-p/1309169#M161134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-27T03:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can binary data be sent using WRITE?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-binary-data-be-sent-using-write/m-p/1309170#M161135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, exactly. The PRINT-CONTROL command in ABAP was what I was looking for. The image is now recognizable in printed output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For future reference of anyone reading this, make sure you define your print control as "Hexadecimal" or it won't work. You will probably have to split the data up across several print controls, also, as the text field is only 58 characters long.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help guys!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Juan Suros&lt;/P&gt;&lt;P&gt;Kyocera International, Inc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2006 17:03:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-binary-data-be-sent-using-write/m-p/1309170#M161135</guid>
      <dc:creator>juan_suros</dc:creator>
      <dc:date>2006-04-27T17:03:16Z</dc:date>
    </item>
  </channel>
</rss>

