<?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 Printing using SUBMIT statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-using-submit-statement/m-p/7885584#M1595239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I have a problem in printing using SUBMIT.&lt;/P&gt;&lt;P&gt;I have three printers identified to print certain orders using submit statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the list of printers is given in a drop down and once the user selects a printer from the list, i have to generate a spool for the corresponding printer. But this is not happening. The spool is generated for the user's default printer defined in SU50. I have my submit statement below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT zppprbsel  WITH aufnr EQ p_wa_batch_res_process_order&lt;/P&gt;&lt;P&gt;                    WITH werks EQ c_1201 "'1201'&lt;/P&gt;&lt;P&gt;                    WITH relvn EQ c_0 "'00000000'&lt;/P&gt;&lt;P&gt;                    WITH relbs EQ c_0 "'00000000'&lt;/P&gt;&lt;P&gt;                    WITH orig  EQ ' '&lt;/P&gt;&lt;P&gt;                    WITH nach  EQ c_x "'X'&lt;/P&gt;&lt;P&gt;                    TO SAP-SPOOL&lt;/P&gt;&lt;P&gt;*SPOOL PARAMETERS l_dest&lt;/P&gt;&lt;P&gt;                    WITHOUT SPOOL DYNPRO&lt;/P&gt;&lt;P&gt;                    WITH DESTINATION = l_dest&lt;/P&gt;&lt;P&gt;                    WITH IMMEDIATELY = SPACE&lt;/P&gt;&lt;P&gt;                    WITH KEEP_IN_SPOOL = 'X'&lt;/P&gt;&lt;P&gt;                    VIA JOB  v_job_name&lt;/P&gt;&lt;P&gt;                    NUMBER   v_job_cnt&lt;/P&gt;&lt;P&gt;                    AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here my l_dest has one of the three printers that the user selects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i change my default printer to one of the three printers the spool is generated fine. A spool always generated for the default printer of the user?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 May 2011 05:12:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-05-09T05:12:22Z</dc:date>
    <item>
      <title>Printing using SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-using-submit-statement/m-p/7885584#M1595239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I have a problem in printing using SUBMIT.&lt;/P&gt;&lt;P&gt;I have three printers identified to print certain orders using submit statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the list of printers is given in a drop down and once the user selects a printer from the list, i have to generate a spool for the corresponding printer. But this is not happening. The spool is generated for the user's default printer defined in SU50. I have my submit statement below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT zppprbsel  WITH aufnr EQ p_wa_batch_res_process_order&lt;/P&gt;&lt;P&gt;                    WITH werks EQ c_1201 "'1201'&lt;/P&gt;&lt;P&gt;                    WITH relvn EQ c_0 "'00000000'&lt;/P&gt;&lt;P&gt;                    WITH relbs EQ c_0 "'00000000'&lt;/P&gt;&lt;P&gt;                    WITH orig  EQ ' '&lt;/P&gt;&lt;P&gt;                    WITH nach  EQ c_x "'X'&lt;/P&gt;&lt;P&gt;                    TO SAP-SPOOL&lt;/P&gt;&lt;P&gt;*SPOOL PARAMETERS l_dest&lt;/P&gt;&lt;P&gt;                    WITHOUT SPOOL DYNPRO&lt;/P&gt;&lt;P&gt;                    WITH DESTINATION = l_dest&lt;/P&gt;&lt;P&gt;                    WITH IMMEDIATELY = SPACE&lt;/P&gt;&lt;P&gt;                    WITH KEEP_IN_SPOOL = 'X'&lt;/P&gt;&lt;P&gt;                    VIA JOB  v_job_name&lt;/P&gt;&lt;P&gt;                    NUMBER   v_job_cnt&lt;/P&gt;&lt;P&gt;                    AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here my l_dest has one of the three printers that the user selects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i change my default printer to one of the three printers the spool is generated fine. A spool always generated for the default printer of the user?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 05:12:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-using-submit-statement/m-p/7885584#M1595239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-09T05:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Printing using SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-using-submit-statement/m-p/7885585#M1595240</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;Before the SUBMIT get the PRINT PARAMETER by using the FM --&amp;gt; GET_PRINT_PARAMETERS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IMPORTING
              out_parameters         = print_parameters&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;print_parameters-pdest = 'LOCL'. " Change the Destination before passsing the PRINT_PARAMETER to SUBMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then pass the print_parameters from the FM to the SUBMIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SUBMIT zppprbsel WITH aufnr EQ p_wa_batch_res_process_order
WITH werks EQ c_1201 "'1201'
WITH relvn EQ c_0 "'00000000'
WITH relbs EQ c_0 "'00000000'
WITH orig EQ ' '
WITH nach EQ c_x "'X'
TO SAP-SPOOL
SPOOL PARAMETERS  print_parameters  "Pass here
WITHOUT SPOOL DYNPRO
WITH DESTINATION = l_dest
WITH IMMEDIATELY = SPACE
WITH KEEP_IN_SPOOL = 'X'
VIA JOB v_job_name
NUMBER v_job_cnt
AND RETURN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhukar Shetty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 05:23:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-using-submit-statement/m-p/7885585#M1595240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-09T05:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Printing using SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-using-submit-statement/m-p/7885586#M1595241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set default print parameters for Spool&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'SET_PRINT_PARAMETERS'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        destination = l_dest&lt;/P&gt;&lt;P&gt;        line_size   = l_linsz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SUBMIT zppprbsel  WITH aufnr EQ p_wa_batch_res_process_order&lt;/P&gt;&lt;P&gt;                    WITH werks EQ c_1201 "'1201'&lt;/P&gt;&lt;P&gt;                    WITH relvn EQ c_0 "'00000000'&lt;/P&gt;&lt;P&gt;                    WITH relbs EQ c_0 "'00000000'&lt;/P&gt;&lt;P&gt;                    WITH orig  EQ ' '&lt;/P&gt;&lt;P&gt;                    WITH nach  EQ c_x "'X'&lt;/P&gt;&lt;P&gt;                    TO SAP-SPOOL&lt;/P&gt;&lt;P&gt;                    SPOOL PARAMETERS  l_dest&lt;/P&gt;&lt;P&gt;                    WITHOUT SPOOL DYNPRO&lt;/P&gt;&lt;P&gt;                    WITH DESTINATION = l_dest&lt;/P&gt;&lt;P&gt;                    WITH IMMEDIATELY = SPACE&lt;/P&gt;&lt;P&gt;                    WITH KEEP_IN_SPOOL = 'X'&lt;/P&gt;&lt;P&gt;                    VIA JOB  v_job_name&lt;/P&gt;&lt;P&gt;                    NUMBER   v_job_cnt&lt;/P&gt;&lt;P&gt;                    AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i put that and still i get the same result... spool is generated to my default printer and not the printer i selected...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 05:38:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-using-submit-statement/m-p/7885586#M1595241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-09T05:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Printing using SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-using-submit-statement/m-p/7885587#M1595242</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;please try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SUBMIT zppprbsel 
  WITH aufnr EQ p_wa_batch_res_process_order 
  WITH werks EQ c_1201 "'1201'
  WITH relvn EQ c_0 "'00000000'
  WITH relbs EQ c_0 "'00000000'
  WITH orig  EQ ' '
  WITH nach  EQ c_x "'X'
VIA JOB v_job_name
NUMBER v_job_cnt
TO SAP-SPOOL
  DESTINATION   = l_dest
  IMMEDIATELY   = SPACE
  KEEP_IN_SPOOL = 'X'
  WITHOUT SPOOL DYNPRO
AND RETURN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's the result?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 06:22:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-using-submit-statement/m-p/7885587#M1595242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-09T06:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Printing using SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-using-submit-statement/m-p/7885588#M1595243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the above logic as well. My printer is still getting the spool and not the selected printer. &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 06:39:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-using-submit-statement/m-p/7885588#M1595243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-09T06:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Printing using SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-using-submit-statement/m-p/7885589#M1595244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;had a mistake with "="!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correction:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SUBMIT zppprbsel 
  WITH aufnr EQ p_wa_batch_res_process_order 
  WITH werks EQ c_1201 "'1201'
  WITH relvn EQ c_0 "'00000000'
  WITH relbs EQ c_0 "'00000000'
  WITH orig  EQ ' '
  WITH nach  EQ c_x "'X'
VIA JOB v_job_name
NUMBER v_job_cnt
TO SAP-SPOOL
  DESTINATION   l_dest
  IMMEDIATELY   SPACE
  KEEP_IN_SPOOL 'X'
  WITHOUT SPOOL DYNPRO
AND RETURN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to remove SPOOL PARAMETERS if you pass destination and other parameters and you must'nt pass spool parameters with "WITH" or "=" ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 06:43:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-using-submit-statement/m-p/7885589#M1595244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-09T06:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Printing using SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-using-submit-statement/m-p/7885590#M1595245</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;Just a thought.. Please see the default parameters... SYSTEM-&amp;gt;USERPROFILE-&amp;gt;OWNDATA.. here the you might be having the default printer.. Please keep it blank and see ,also try to put one of the three printers there and see..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,.&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 06:57:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-using-submit-statement/m-p/7885590#M1595245</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2011-05-09T06:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Printing using SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-using-submit-statement/m-p/7885591#M1595246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When i change my default printer to the required printer, the spool is generating fine. but if i dont change it to the printer i need then also my default printer gets the spool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 07:33:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-using-submit-statement/m-p/7885591#M1595246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-09T07:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Printing using SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-using-submit-statement/m-p/7885592#M1595247</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 can specify one printer at one time.. You cannot use both of them.So use one printer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 07:39:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-using-submit-statement/m-p/7885592#M1595247</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2011-05-09T07:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Printing using SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-using-submit-statement/m-p/7885593#M1595248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually my requirement is like no matter what my default printer set up is, spool should be generated only for the printer that i select in my report.... i am not able to achieve this..... always spool gets generated to my default printer only...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 08:47:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-using-submit-statement/m-p/7885593#M1595248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-09T08:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Printing using SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-using-submit-statement/m-p/7885594#M1595249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what i am saying..In place of default printer give the printer which you want out of the three so that it will work for you.. it won't work for other two printers.. else go for one more approach.. don't have any default printer and in the program use "SET_PRINT_PARAMTERS' and 'GET_PRINT_PARAMTERS' and tehre specify the printer and see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 09:16:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-using-submit-statement/m-p/7885594#M1595249</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2011-05-09T09:16:39Z</dc:date>
    </item>
  </channel>
</rss>

