<?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: Overwriting spool parameters. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/overwriting-spool-parameters/m-p/1857972#M362519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Need to use ARCHIVE PARAMETERS also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below examples from the documenation might help you understand the same:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Without archiving 
DATA: PARAMS LIKE PRI_PARAMS, 
      DAYS(1)  TYPE N VALUE 2, 
      COUNT(3) TYPE N VALUE 1, 
      VALID    TYPE C. 

CALL FUNCTION 'GET_PRINT_PARAMETERS' 
  EXPORTING DESTINATION           = 'LT50' 
            COPIES                = COUNT 
            LIST_NAME             = 'TEST' 
            LIST_TEXT             = 'SUBMIT ... TO SAP-SPOOL' 
            IMMEDIATELY           = 'X' 
            RELEASE               = 'X' 
            NEW_LIST_ID           = 'X' 
            EXPIRATION            = DAYS 
            LINE_SIZE             = 79 
            LINE_COUNT            = 23 
            LAYOUT                = 'X_PAPER' 
            SAP_COVER_PAGE        = 'X' 
            COVER_PAGE            = 'X' 
            RECEIVER              = 'SAP*' 
            DEPARTMENT            = 'System' 
            NO_DIALOG             = ' ' 
  IMPORTING OUT_PARAMETERS        = PARAMS 
            VALID                 = VALID. 

IF VALID &amp;lt;&amp;gt; SPACE. 
  SUBMIT RSTEST00 TO SAP-SPOOL 
    SPOOL PARAMETERS PARAMS 
    WITHOUT SPOOL DYNPRO. 
ENDIF. 


Example
* With archiving 
DATA: PARAMS   LIKE PRI_PARAMS, 
      ARPARAMS LIKE ARC_PARAMS, 
      DAYS(1)  TYPE N VALUE 2, 
      COUNT(3) TYPE N VALUE 1, 
      VALID    TYPE C. 

CALL FUNCTION 'GET_PRINT_PARAMETERS' 
  EXPORTING DESTINATION            = 'LT50' 
            COPIES                 = COUNT 
            LIST_NAME              = 'TEST' 
            LIST_TEXT              = 'SUBMIT ... TO SAP-SPOOL' 
            IMMEDIATELY            = 'X' 
            RELEASE                = 'X' 
            NEW_LIST_ID            = 'X' 
            EXPIRATION             = DAYS 
            LINE_SIZE              = 79 
            LINE_COUNT             = 23 
            LAYOUT                 = 'X_PAPER' 
            SAP_COVER_PAGE         = 'X' 
            COVER_PAGE             = 'X' 
            RECEIVER               = 'SAP*' 
            DEPARTMENT             = 'System' 
            SAP_OBJECT             = 'RS' 
            AR_OBJECT              = 'TEST' 
            ARCHIVE_ID             = 'XX' 
            ARCHIVE_INFO           = 'III' 
            ARCHIVE_TEXT           = 'Description' 
            NO_DIALOG              = ' ' 
  IMPORTING OUT_PARAMETERS         = PARAMS 
            OUT_ARCHIVE_PARAMETERS = ARPARAMS 
            VALID                  = VALID. 

IF VALID &amp;lt;&amp;gt; SPACE. 
  SUBMIT RSTEST00 TO SAP-SPOOL 
    SPOOL PARAMETERS PARAMS 
    ARCHIVE PARAMETERS ARPARAMS 
    WITHOUT SPOOL DYNPRO. 
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jan 2007 05:36:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-23T05:36:29Z</dc:date>
    <item>
      <title>Overwriting spool parameters.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overwriting-spool-parameters/m-p/1857968#M362515</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 have a Z program and I am setting the print parameters using the FM 'GET_PRINT_PARAMETERS'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The destination is set to LOCL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However my program calls a standard program - RFEBKA00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This program again uses the 'GET_PRINT_PARAMETERS' and it is not setting destination to LOCL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The parameters I am setting is getting over written in the second call to this FM.&lt;/P&gt;&lt;P&gt;Thus when the job runs in back ground, I am getting the error : printer " " not found&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not getting a way how to come out of this.&lt;/P&gt;&lt;P&gt;YOur valuable suggestion would be helpful and rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 05:17:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overwriting-spool-parameters/m-p/1857968#M362515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T05:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting spool parameters.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overwriting-spool-parameters/m-p/1857969#M362516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you are using SUBMIT statement for calling program: RFEBKA00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to make use of addition &amp;lt;b&amp;gt;DESTINATION&amp;lt;/b&amp;gt; in SUBMIT statement to pass the printer and &amp;lt;b&amp;gt;ARCHIVE PARAMETERS&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 05:24:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overwriting-spool-parameters/m-p/1857969#M362516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T05:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting spool parameters.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overwriting-spool-parameters/m-p/1857970#M362517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eswar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used hte code in the following way::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT rfebka00&lt;/P&gt;&lt;P&gt;         WITH Destination EQ 'LOCL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its not working tough..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 05:34:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overwriting-spool-parameters/m-p/1857970#M362517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T05:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting spool parameters.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overwriting-spool-parameters/m-p/1857971#M362518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;After using FM: GET_PRINT_PARAMETERS, modify any parameters that you want to change and then use the FM: SET_PRINT_PARAMETERS to set the new print parameters.&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;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 05:34:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overwriting-spool-parameters/m-p/1857971#M362518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T05:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting spool parameters.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overwriting-spool-parameters/m-p/1857972#M362519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Need to use ARCHIVE PARAMETERS also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below examples from the documenation might help you understand the same:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Without archiving 
DATA: PARAMS LIKE PRI_PARAMS, 
      DAYS(1)  TYPE N VALUE 2, 
      COUNT(3) TYPE N VALUE 1, 
      VALID    TYPE C. 

CALL FUNCTION 'GET_PRINT_PARAMETERS' 
  EXPORTING DESTINATION           = 'LT50' 
            COPIES                = COUNT 
            LIST_NAME             = 'TEST' 
            LIST_TEXT             = 'SUBMIT ... TO SAP-SPOOL' 
            IMMEDIATELY           = 'X' 
            RELEASE               = 'X' 
            NEW_LIST_ID           = 'X' 
            EXPIRATION            = DAYS 
            LINE_SIZE             = 79 
            LINE_COUNT            = 23 
            LAYOUT                = 'X_PAPER' 
            SAP_COVER_PAGE        = 'X' 
            COVER_PAGE            = 'X' 
            RECEIVER              = 'SAP*' 
            DEPARTMENT            = 'System' 
            NO_DIALOG             = ' ' 
  IMPORTING OUT_PARAMETERS        = PARAMS 
            VALID                 = VALID. 

IF VALID &amp;lt;&amp;gt; SPACE. 
  SUBMIT RSTEST00 TO SAP-SPOOL 
    SPOOL PARAMETERS PARAMS 
    WITHOUT SPOOL DYNPRO. 
ENDIF. 


Example
* With archiving 
DATA: PARAMS   LIKE PRI_PARAMS, 
      ARPARAMS LIKE ARC_PARAMS, 
      DAYS(1)  TYPE N VALUE 2, 
      COUNT(3) TYPE N VALUE 1, 
      VALID    TYPE C. 

CALL FUNCTION 'GET_PRINT_PARAMETERS' 
  EXPORTING DESTINATION            = 'LT50' 
            COPIES                 = COUNT 
            LIST_NAME              = 'TEST' 
            LIST_TEXT              = 'SUBMIT ... TO SAP-SPOOL' 
            IMMEDIATELY            = 'X' 
            RELEASE                = 'X' 
            NEW_LIST_ID            = 'X' 
            EXPIRATION             = DAYS 
            LINE_SIZE              = 79 
            LINE_COUNT             = 23 
            LAYOUT                 = 'X_PAPER' 
            SAP_COVER_PAGE         = 'X' 
            COVER_PAGE             = 'X' 
            RECEIVER               = 'SAP*' 
            DEPARTMENT             = 'System' 
            SAP_OBJECT             = 'RS' 
            AR_OBJECT              = 'TEST' 
            ARCHIVE_ID             = 'XX' 
            ARCHIVE_INFO           = 'III' 
            ARCHIVE_TEXT           = 'Description' 
            NO_DIALOG              = ' ' 
  IMPORTING OUT_PARAMETERS         = PARAMS 
            OUT_ARCHIVE_PARAMETERS = ARPARAMS 
            VALID                  = VALID. 

IF VALID &amp;lt;&amp;gt; SPACE. 
  SUBMIT RSTEST00 TO SAP-SPOOL 
    SPOOL PARAMETERS PARAMS 
    ARCHIVE PARAMETERS ARPARAMS 
    WITHOUT SPOOL DYNPRO. 
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 05:36:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overwriting-spool-parameters/m-p/1857972#M362519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T05:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting spool parameters.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overwriting-spool-parameters/m-p/1857973#M362520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Eswar.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem Solved...&lt;/P&gt;&lt;P&gt;A real life saver...&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 05:54:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overwriting-spool-parameters/m-p/1857973#M362520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T05:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting spool parameters.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overwriting-spool-parameters/m-p/1857974#M362521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad could help you:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 05:59:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overwriting-spool-parameters/m-p/1857974#M362521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T05:59:44Z</dc:date>
    </item>
  </channel>
</rss>

