<?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: Print label using BarTender in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-label-using-bartender/m-p/9866888#M1788338</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your help, Eitan!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Nov 2013 15:52:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-11-04T15:52:42Z</dc:date>
    <item>
      <title>Print label using BarTender</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-label-using-bartender/m-p/9866880#M1788330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, experts! I want to print label using BarTender. And the layout is designed in BarTender, what I need to do is send data in XML to BarTender. How can I make it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 08:12:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-label-using-bartender/m-p/9866880#M1788330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-04T08:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Print label using BarTender</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-label-using-bartender/m-p/9866881#M1788331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the "Commander" that come with bar tender:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I write from SAP two simple files (not XML)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;A trigger file that the Commander intercept&lt;BR /&gt;Content:&lt;BR /&gt;BTW% /AF="&amp;lt;path to the btw file&amp;gt;"/PRN="&amp;lt;printer name&amp;gt;" /DD /PD /D=&amp;lt;path to the data&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;A Data file (Tab seperated value) with heading for reference&lt;BR /&gt;It contain only two lines.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;From the bar tender help:&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;Commander is a software utility, available with the Automation Edition of BarTender, that enables you to perform automatic printing using BarTender in situations where using command line or ActiveX automation is either not possible or not cost-effective. Commander can run as an application or as a Windows service.&lt;BR /&gt;How Commander Works&lt;BR /&gt;When a system needs to print, it simply performs a triggering action, such as placing a file in a location of your choosing on the network, transmitting an e-mail, sending data via RS-232 (a serial port), or sending information through a TCP/IP sock connection. Commander detects the arrival or occurrence of these "triggers" and then "wakes up" BarTender so it can merge your data into templates and automatically execute a BarTender print job.&lt;BR /&gt;A trigger file or message may be empty, where it serves only as a mechanism for starting a print job. Alternatively, it can contain data and/or script commands that will later by used by BarTender, Commander, or another application that Commander launches. Because applications creating triggers can include different content in the triggers they produce, Commander allows you to dynamically define BarTender documents, print settings, data sources, and much more using Commander variables.&lt;BR /&gt;For example, an in-house order fulfillment application enters data about an order into a database and saves an empty file named NewOrder.dat in a directory being watched by Commander. After Commander detects the trigger file, it will open a document in BarTender that is configured to query the database about orders entered after a specified time. Once BarTender has read the data, it will use the contents of the data file to print the document. Commander then deletes the NewOrder.dat and resumes monitoring the directory.&lt;BR /&gt;In all Windows environments, Commander can be configured to operate as a Windows service that runs whenever your computer is on, whether or not anyone is actually logged into the machine. You can also run multiple BarTender processes for better performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 08:44:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-label-using-bartender/m-p/9866881#M1788331</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2013-11-04T08:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Print label using BarTender</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-label-using-bartender/m-p/9866882#M1788332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Eitan! It is really helpful to understad 'Commander'!&lt;/P&gt;&lt;P&gt;And could you share your data file and BarTender templete file with me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 09:11:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-label-using-bartender/m-p/9866882#M1788332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-04T09:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Print label using BarTender</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-label-using-bartender/m-p/9866883#M1788333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must be having a folder in Bartender folder on your local PC, from where it takes the XML file or the Excel file as the source to populate the label whose layout is designed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First convert ABAP to XML. For this you can&amp;nbsp; using FMs&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;CALL FUNCTION 'SDIXML_DATA_TO_DOM'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt; &lt;SPAN style="color: black;"&gt;CALL FUNCTION 'SDIXML_DOM_TO_XML'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this code. &lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://wiki.scn.sap.com/wiki/display/Snippets/ABAP+TO+XML" title="http://wiki.scn.sap.com/wiki/display/Snippets/ABAP+TO+XML"&gt;http://wiki.scn.sap.com/wiki/display/Snippets/ABAP+TO+XML&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then send this xml output to the source folder used in Bartender using FM like WS_DOWNLOAD&lt;/P&gt;&lt;P&gt;IF r_local = 'X'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL FUNCTION 'WS_DOWNLOAD'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bin_filesize = w_size&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filename&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = p_file " File name in local PC. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filetype&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 'BIN'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TABLES&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data_tab&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = xml_tab&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXCEPTIONS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OTHERS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* Instead of XML, you may also have the option to take data from Excel file in the Bartender software. In that case, you just need to move the abap data as Excel sheet to local file using&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S31"&gt;* Convert to excel file and send it to the input of Codesoft software for printing labels.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;CALL&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;FUNCTION&lt;/SPAN&gt; &lt;SPAN class="L1S33"&gt;'SAP_CONVERT_TO_XLS_FORMAT'&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_filename&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = p_file&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;TABLES&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_tab_sap_data = i_data.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;ENDIF&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S31"&gt;In the Bartender layout, edit the configuration such that it uses the same file that is exported from SAP to populate the information in the layout. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S31"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 09:24:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-label-using-bartender/m-p/9866883#M1788333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-04T09:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Print label using BarTender</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-label-using-bartender/m-p/9866884#M1788334</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 is no need for XML .&lt;/P&gt;&lt;P&gt;No need to make it more complex the necesery &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1925/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 09:34:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-label-using-bartender/m-p/9866884#M1788334</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2013-11-04T09:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Print label using BarTender</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-label-using-bartender/m-p/9866885#M1788335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Eitan!&lt;/P&gt;&lt;P&gt;Coud you tell me how the data in data file match with templete file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 09:57:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-label-using-bartender/m-p/9866885#M1788335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-04T09:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Print label using BarTender</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-label-using-bartender/m-p/9866886#M1788336</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;The file are created on a network server using "OPEN DATASET" and are tab seperated values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Files included:&lt;/P&gt;&lt;P&gt;Triger file:&lt;BR /&gt;Bar_0187043236_700830_trig.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data file:&lt;BR /&gt;Bar_0187043236_700830_data.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pictures of the commander setup (with some censorship).&lt;/P&gt;&lt;P&gt;Use the built in help it is very good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/313538" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/313539" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 10:49:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-label-using-bartender/m-p/9866886#M1788336</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2013-11-04T10:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Print label using BarTender</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-label-using-bartender/m-p/9866887#M1788337</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;When you design the label there is an option to define your input so you specify a file that is the same format as the file you will be producing from SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You use the header as a reference to position the data on the label see the data file .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At run time the trigger file contain the actual file names to be used the /AF= and /D= parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%BTW% /AF="&lt;A href="https://community.sap.com/"&gt;\\server\BarTenderP\btwDoc\700830.btw&lt;/A&gt;" /PRN="Zebra TLP2844-Z" /PD /D="&lt;A href="https://community.sap.com/"&gt;\\server\BarTenderP\OutDoc\Bar_0187043236_700830_data.txt&lt;/A&gt;" /DD /Close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an option in the program to produce a data file only and I give it to the label designer (End user)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file names that I create from the sap are different each time (delivery number + label code) &lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 12:34:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-label-using-bartender/m-p/9866887#M1788337</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2013-11-04T12:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Print label using BarTender</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-label-using-bartender/m-p/9866888#M1788338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your help, Eitan!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 15:52:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-label-using-bartender/m-p/9866888#M1788338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-04T15:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Print label using BarTender</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-label-using-bartender/m-p/9866889#M1788339</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;You are welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 16:10:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-label-using-bartender/m-p/9866889#M1788339</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2013-11-04T16:10:00Z</dc:date>
    </item>
  </channel>
</rss>

