<?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: SAPScript:Selecting Different Tray in SAPscript in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-selecting-different-tray-in-sapscript/m-p/887299#M52727</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Johan Geraedts  &lt;/P&gt;&lt;P&gt;for your reply, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Solution is perfect for Static situation. &lt;/P&gt;&lt;P&gt;But I want to set Tray dynamically from SapScript. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: if &amp;amp;CompamyCode&amp;amp; = 'ABC' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: print-control 'TRY01' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: endif &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: if &amp;amp;CompamyCode&amp;amp; = 'XYZ &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: print-control 'TRY02' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: endif &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the above approach correct? If Yes, then &lt;/P&gt;&lt;P&gt;Do i need to give above statement on every window? &lt;/P&gt;&lt;P&gt;if No, then Do i need to create a different page for each company code? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do any one has step by step explanation for this starting from SPAD settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vipin Nagpal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vipin Nagpal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Apr 2005 21:24:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-04-26T21:24:24Z</dc:date>
    <item>
      <title>SAPScript:Selecting Different Tray in SAPscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-selecting-different-tray-in-sapscript/m-p/887296#M52724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to print on different tray depending up company Code. I want to achieve this with in SAP script rather than modifying Print Prog. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After doing research I come to know that I need to use Print Control Command in Sap Script. Do any one has step by step explanation for this starting from SPAD settings. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2005 01:16:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-selecting-different-tray-in-sapscript/m-p/887296#M52724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-26T01:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript:Selecting Different Tray in SAPscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-selecting-different-tray-in-sapscript/m-p/887297#M52725</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;I found the following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sapscript form =&amp;gt; go to &amp;lt;pages&amp;gt; =&amp;gt; print attributes =&amp;gt; Resource name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resource&lt;/P&gt;&lt;P&gt;This field is used to set which paper tray in the target printer is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To set this, specify which print control the system is to send to the target printer when this form is printed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possible values are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY01: Use paper from tray 1&lt;/P&gt;&lt;P&gt;TRY02: Use paper from tray 2&lt;/P&gt;&lt;P&gt;TRY03: Use paper from tray 3&lt;/P&gt;&lt;P&gt;All printers do not necessarily support tray selection. For a list of printers for which the TRY* print controls are maintained by SAP, see the SAPscript document SAPSCRIPT-TRAYTEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;If a particular paper type is required for this form and this paper is always located in tray 1 of the printer, specify TRY01 here so that the printer always uses this tray.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2005 08:51:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-selecting-different-tray-in-sapscript/m-p/887297#M52725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-26T08:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript:Selecting Different Tray in SAPscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-selecting-different-tray-in-sapscript/m-p/887298#M52726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand you correctly, you want to change the output tray to which the printed documents are sent, not change the source of paper for printing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recently worked on a related project, where I wanted to call advanced printer functions from within SAPscript. I used the Actions (simmilar to events) built into each format in every Device Type in SAP to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SPAD, make sure you are in "Full Administration" mode and select tab "Device Types". Then enter and view any Device Type and press the "Formats" button in the application toolbar. Double click on any format to bring up the "Maintain Format &amp;lt;FORMAT&amp;gt; for Device Type &amp;lt;DEVICE TYPE&amp;gt;" screen. The tab "Formats" shows all the Actions in the process of SAPscript printing where you can enter your own printer control commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the information needed to explain how all this works in a couple of zip files with the following names:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZKM10PRE.zip &amp;lt;- for PRESCRIBE printers&lt;/P&gt;&lt;P&gt;ZKM10PCL.zip &amp;lt;- for PCL printers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They include a document that explains everything with the title:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;New Custom Device Type for SAP R/3&lt;/P&gt;&lt;P&gt;Short Installation Guide / Feature List&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is all available upon request from Kyocera/Mita corporation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;website: &lt;A href="https://community.sap.com/www.kyoceramita.com" target="test_blank"&gt;www.kyoceramita.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;technical support line: (800) 438-6482&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2005 17:31:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-selecting-different-tray-in-sapscript/m-p/887298#M52726</guid>
      <dc:creator>juan_suros</dc:creator>
      <dc:date>2005-04-26T17:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript:Selecting Different Tray in SAPscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-selecting-different-tray-in-sapscript/m-p/887299#M52727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Johan Geraedts  &lt;/P&gt;&lt;P&gt;for your reply, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Solution is perfect for Static situation. &lt;/P&gt;&lt;P&gt;But I want to set Tray dynamically from SapScript. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: if &amp;amp;CompamyCode&amp;amp; = 'ABC' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: print-control 'TRY01' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: endif &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: if &amp;amp;CompamyCode&amp;amp; = 'XYZ &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: print-control 'TRY02' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: endif &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the above approach correct? If Yes, then &lt;/P&gt;&lt;P&gt;Do i need to give above statement on every window? &lt;/P&gt;&lt;P&gt;if No, then Do i need to create a different page for each company code? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do any one has step by step explanation for this starting from SPAD settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vipin Nagpal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vipin Nagpal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2005 21:24:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-selecting-different-tray-in-sapscript/m-p/887299#M52727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-26T21:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript:Selecting Different Tray in SAPscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-selecting-different-tray-in-sapscript/m-p/887300#M52728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vipin, I think your approach is amost there. What I think you need is instead of using print controls, use the 'NEW-PAGE' command with the name of the page within your SapScript that has the paper resource of the printer tray you want to use for that company and so on for each company. So yes, I think you need to create a different page for each company code, but you can share windows between the different pages. See sample layout set S_TEST_02 and standard text SAPSCRIPT-TRAYTEST for further details. (I am currently working on 3.1i so apologies if this info. is not relevant). Regards, Martina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2005 11:51:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-selecting-different-tray-in-sapscript/m-p/887300#M52728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-27T11:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript:Selecting Different Tray in SAPscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-selecting-different-tray-in-sapscript/m-p/887301#M52729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the example S_TEST_02 the key is on the PAGE Print attributes. Under Resource Name you must have TRY01 (or TRY02, TRY03). That selects the tray you want the paper to come from&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 19:26:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-selecting-different-tray-in-sapscript/m-p/887301#M52729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T19:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript:Selecting Different Tray in SAPscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-selecting-different-tray-in-sapscript/m-p/887302#M52730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the example S_TEST_02 the key is on the PAGE Print attributes. Under Resource Name you must have TRY01 (or TRY02, TRY03). That selects the tray you want the paper to come from&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 19:26:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-selecting-different-tray-in-sapscript/m-p/887302#M52730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T19:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript:Selecting Different Tray in SAPscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-selecting-different-tray-in-sapscript/m-p/887303#M52731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the example S_TEST_02 the key is on the PAGE Print attributes. Under Resource Name you must have TRY01 (or TRY02, TRY03). That selects the tray you want the paper to come from&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 19:29:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-selecting-different-tray-in-sapscript/m-p/887303#M52731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T19:29:53Z</dc:date>
    </item>
  </channel>
</rss>

