<?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 How to check if the given Printer exists? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-if-the-given-printer-exists/m-p/9254805#M1721189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm writing a Batch Program where in it has P_File &amp;amp; P_Printer (File Path and Printer path with names).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to check if the provided value for P_PRINTER (the Printer name) exists or not. For example, we check for the File names exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I searched in SCN, but couldn't find a relevant thread. Is GET_PRINT_PARAMETERS FM used ti check? If yes, how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any Function Module to check if the Printer (input given in Selection-screen) exists or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Awaiting reply..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sowmya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Mar 2013 12:35:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-03-06T12:35:59Z</dc:date>
    <item>
      <title>How to check if the given Printer exists?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-if-the-given-printer-exists/m-p/9254805#M1721189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm writing a Batch Program where in it has P_File &amp;amp; P_Printer (File Path and Printer path with names).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to check if the provided value for P_PRINTER (the Printer name) exists or not. For example, we check for the File names exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I searched in SCN, but couldn't find a relevant thread. Is GET_PRINT_PARAMETERS FM used ti check? If yes, how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any Function Module to check if the Printer (input given in Selection-screen) exists or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Awaiting reply..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sowmya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 12:35:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-if-the-given-printer-exists/m-p/9254805#M1721189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-06T12:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if the given Printer exists?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-if-the-given-printer-exists/m-p/9254806#M1721190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Check the table TSP03D, that table contains the name of the Printers on SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 13:08:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-if-the-given-printer-exists/m-p/9254806#M1721190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-06T13:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if the given Printer exists?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-if-the-given-printer-exists/m-p/9254807#M1721191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman';"&gt;Hi Sowmya,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Times New Roman';"&gt;Check the following tables:&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Times New Roman';"&gt;TSP03 - Printer Declaration &lt;BR /&gt;TSP03A - Device Description &lt;BR /&gt;TSP03C - Device Description Extension &lt;BR /&gt;TSP03D - Device Description (New Format) &lt;BR /&gt;TSP0A - Device Types &lt;BR /&gt;TSP01 - Assignment of printers to terminals&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Times New Roman';"&gt;This might help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Times New Roman';"&gt;Thanks&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Times New Roman';"&gt;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 13:11:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-if-the-given-printer-exists/m-p/9254807#M1721191</guid>
      <dc:creator>siva_subramanian2</dc:creator>
      <dc:date>2013-03-06T13:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if the given Printer exists?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-if-the-given-printer-exists/m-p/9254808#M1721192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will just need to check table tsp03d.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;SELECT COUNT(*)&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM tsp03d&lt;/P&gt;&lt;P&gt; WHERE name = p_printer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; AND padisabled = abap_false.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0. "Printer exists and is not locked&lt;/P&gt;&lt;P&gt;&amp;nbsp; "Do something&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 13:30:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-if-the-given-printer-exists/m-p/9254808#M1721192</guid>
      <dc:creator>obadiah_king</dc:creator>
      <dc:date>2013-03-06T13:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if the given Printer exists?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-if-the-given-printer-exists/m-p/9254809#M1721193</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 am not sure of any standard FM to validate the printer name but table TSP03 can certainly be used to validate the printer . Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumud&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 13:41:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-if-the-given-printer-exists/m-p/9254809#M1721193</guid>
      <dc:creator>kumud</dc:creator>
      <dc:date>2013-03-06T13:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if the given Printer exists?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-if-the-given-printer-exists/m-p/9254810#M1721194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 15:01:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-if-the-given-printer-exists/m-p/9254810#M1721194</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2013-03-06T15:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if the given Printer exists?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-if-the-given-printer-exists/m-p/9254811#M1721195</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;By using the table TSP03 you can know whether a printer exits or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vineesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 15:27:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-if-the-given-printer-exists/m-p/9254811#M1721195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-06T15:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if the given Printer exists?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-if-the-given-printer-exists/m-p/9254812#M1721196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sowmya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with Siva Subramanian and &lt;A __default_attr="275273" __jive_macro_name="user" class="jive_macro jive_macro_user" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;SPAN&gt; table TSP03 can be used to check the the printers even it is a check table for foreign key table TSP03C, TSP01.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kindly let me know your feedback.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Vignesh Yeram&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 16:53:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-if-the-given-printer-exists/m-p/9254812#M1721196</guid>
      <dc:creator>vigneshyeram</dc:creator>
      <dc:date>2013-03-06T16:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if the given Printer exists?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-if-the-given-printer-exists/m-p/9254813#M1721197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sowmya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this " &lt;STRONG&gt;RSPO_DEVICE_GET&lt;/STRONG&gt;"&amp;nbsp; FM , Just Pass "&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Output Device Name &lt;/SPAN&gt;" in NAME like 'LP01'.&lt;/P&gt;&lt;P&gt;you got Printer Name with Path from this field "S_PAPROSNAME" , you can cross check with SPAD T-code --&amp;gt;Access Method Tab--&amp;gt; Host Printer filed name .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&lt;STRONG&gt;Also Check in&amp;nbsp; SE37&amp;nbsp;&amp;nbsp; " RSPO* " &lt;/STRONG&gt; and press F4&amp;nbsp; you got Some FMs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OR&amp;nbsp; Check this Piece of Code .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;TABLES: TSP03D.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;PARAMETERS &lt;/SPAN&gt;:&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;STRONG&gt;S_DEVICE(30)&lt;/STRONG&gt; OBLIGATORY &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;LOWER &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;CASE &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;DEFAULT &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-style: inherit; font-family: inherit;"&gt;'LP01'&lt;/SPAN&gt;.&amp;nbsp; &lt;SPAN class="L0S31" style="font-style: inherit; font-family: inherit;"&gt;"&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Output Devices like LP01,LOCL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S31" style="font-style: inherit; font-family: inherit;"&gt;*&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;FORMAT &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;INTENSIFIED &lt;/SPAN&gt;OFF.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;SINGLE &lt;/SPAN&gt;* &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;FROM &lt;/SPAN&gt;TSP03D &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;WHERE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;NAME = S_DEVICE.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;IF &lt;/SPAN&gt;SY-SUBRC &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;EQ &lt;/SPAN&gt;&lt;SPAN class="L0S32" style="font-style: inherit; font-family: inherit;"&gt;0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;WRITE &lt;/SPAN&gt;: / TSP03D-NAME &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;COLOR &lt;/SPAN&gt;COL_HEADING INVERSE.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;WRITE &lt;/SPAN&gt;: / TSP03D-PADEST, &lt;SPAN class="L0S33" style="font-style: inherit; font-family: inherit;"&gt;'&amp;lt;&amp;lt; short name&amp;nbsp; !'&lt;/SPAN&gt;.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;WRITE &lt;/SPAN&gt;: /6 TSP03D-PASTANDORT.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;WRITE &lt;/SPAN&gt;: /41 TSP03D-PATYPE.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;WRITE &lt;/SPAN&gt;: /52 TSP03D-PAMSSERVER.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;WRITE &lt;/SPAN&gt;: /61 TSP03D-PAPROSNAME.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;WRITE &lt;/SPAN&gt;: /72 TSP03D-PALPDHOST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Regard's&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Smruti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 03:18:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-if-the-given-printer-exists/m-p/9254813#M1721197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-07T03:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if the given Printer exists?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-if-the-given-printer-exists/m-p/9254814#M1721198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got similar requirement recently.&lt;/P&gt;&lt;P&gt;Declaring parameter like following should solve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_prntr TYPE SYPDEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Conversion routing 'SPDEV'&amp;nbsp; does all the necessary checks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 07:27:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-if-the-given-printer-exists/m-p/9254814#M1721198</guid>
      <dc:creator>ganesh_suryawanshi</dc:creator>
      <dc:date>2014-09-18T07:27:27Z</dc:date>
    </item>
  </channel>
</rss>

