<?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: Printing a spool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-a-spool/m-p/4363671#M1038480</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ztest_print line-size 100
 line-count 10.
data: valid type c.
DATA: out_parameters TYPE pri_params.

CALL FUNCTION 'GET_PRINT_PARAMETERS'
  EXPORTING
    destination            = 'LOCA'  "Replace with your Dest.Printer
    immediately            = 'X'
    release                = 'X'
    NO_DIALOG              = 'X'
  IMPORTING
    out_parameters         = out_parameters
    VALID                  = valid
  EXCEPTIONS
    archive_info_not_found = 1
    invalid_print_params   = 2
    invalid_archive_params = 3.


NEW-PAGE PRINT ON PARAMETERS out_parameters NO DIALOG. .

WRITE 'this is for testing'.

NEW-PAGE PRINT OFF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Aug 2008 14:59:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-29T14:59:21Z</dc:date>
    <item>
      <title>Printing a spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-a-spool/m-p/4363667#M1038476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a spool with the NEW-PAGE PRINT ON/OFF instruction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the addiction PARAMETERS p_param where p_param is initialised with the GET_PRINT_PARAMETERS fonction module like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call Function 'GET_PRINT_PARAMETERS'&lt;/P&gt;&lt;P&gt;        Exporting&lt;/P&gt;&lt;P&gt;                &lt;STRONG&gt;RELEASE             = '  '&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        Importing&lt;/P&gt;&lt;P&gt;                    out_parameters       = print_parameters&lt;/P&gt;&lt;P&gt;                    valid                = valid_flag&lt;/P&gt;&lt;P&gt;        Exceptions&lt;/P&gt;&lt;P&gt;                   invalid_print_params = 2&lt;/P&gt;&lt;P&gt;                   Others               = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want that spool not to be printed immediately but later (when I'll call a fonction module that I will create for this task)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 Questions : &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Is the &lt;STRONG&gt;RELEASE&lt;/STRONG&gt; parameter of the FM resposible of keeping or not the spool ?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; How can I get a spool back for prinitng it ?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Yohann.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 14:36:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-a-spool/m-p/4363667#M1038476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T14:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Printing a spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-a-spool/m-p/4363668#M1038477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;*"     VALUE(IMMEDIATELY) LIKE  PRI_PARAMS-PRIMM DEFAULT C_CHAR_UNKNOWN&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you set IMMEDIATELY = 'X' then it will print immediately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Call Function 'GET_PRINT_PARAMETERS'
Exporting
IMMEDIATELY = 'X'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 14:40:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-a-spool/m-p/4363668#M1038477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T14:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Printing a spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-a-spool/m-p/4363669#M1038478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use FM RSPO_RPRINT_SPOOLREQ to print your Spool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 14:46:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-a-spool/m-p/4363669#M1038478</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-08-29T14:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Printing a spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-a-spool/m-p/4363670#M1038479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want to do this before printing spool .&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
***********************************************************************************
*          Find the spool request 
************************************************************************************
        CALL FUNCTION 'RSPO_FIND_SPOOL_REQUESTS'
          EXPORTING
            RQOWNER       = SY-UNAME
          TABLES
            SPOOLREQUESTS = SPOOL.
&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;^ Saquib&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 14:51:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-a-spool/m-p/4363670#M1038479</guid>
      <dc:creator>former_member181966</dc:creator>
      <dc:date>2008-08-29T14:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Printing a spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-a-spool/m-p/4363671#M1038480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ztest_print line-size 100
 line-count 10.
data: valid type c.
DATA: out_parameters TYPE pri_params.

CALL FUNCTION 'GET_PRINT_PARAMETERS'
  EXPORTING
    destination            = 'LOCA'  "Replace with your Dest.Printer
    immediately            = 'X'
    release                = 'X'
    NO_DIALOG              = 'X'
  IMPORTING
    out_parameters         = out_parameters
    VALID                  = valid
  EXCEPTIONS
    archive_info_not_found = 1
    invalid_print_params   = 2
    invalid_archive_params = 3.


NEW-PAGE PRINT ON PARAMETERS out_parameters NO DIALOG. .

WRITE 'this is for testing'.

NEW-PAGE PRINT OFF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 14:59:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-a-spool/m-p/4363671#M1038480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T14:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Printing a spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-a-spool/m-p/4363672#M1038481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answers, I'm just not able to use FM RSPO_RPRINT_SPOOLREQ, I have the message &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Can't find the spool 0 in the system &amp;lt;my_system&amp;gt;' ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to give all parameters to this FM using FM RSPO_ISELECT_TSP01 but it still show me the same message. And I well put the spool number value in the RQIDENT field..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know what is this problem from ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Also don't know what to put in the rs_selfield parameter  of FM &lt;/P&gt;&lt;P&gt;RSPO_RPRINT_SPOOLREQ, is-it usefull for printing ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Yohann&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Yohann Camp on Sep 1, 2008 9:32 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2008 07:29:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-a-spool/m-p/4363672#M1038481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-01T07:29:27Z</dc:date>
    </item>
  </channel>
</rss>

