<?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: Generate spool request directly in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-spool-request-directly/m-p/5574933#M1271547</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While creating "mstr_print_parms" set NO_DIALOG = 'X' like the example given below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL FUNCTION 'GET_PRINT_PARAMETERS'
       EXPORTING
            AUTHORITY              = SPACE
            COPIES                 = '1'
            COVER_PAGE             = SPACE
            DATA_SET               = SPACE
            DEPARTMENT             = SPACE
            DESTINATION            = SPACE
            EXPIRATION             = '1'
            IMMEDIATELY            = SPACE
            IN_ARCHIVE_PARAMETERS  = SPACE
            IN_PARAMETERS          = SPACE
            LAYOUT                 = SPACE
            MODE                   = SPACE
            NEW_LIST_ID            = 'X'
            NO_DIALOG              = 'X'
            USER                   = SY-UNAME
       IMPORTING
            OUT_PARAMETERS         = MSTR_PRINT_PARMS
            VALID                  = MC_VALID
       EXCEPTIONS
            ARCHIVE_INFO_NOT_FOUND = 1
            INVALID_PRINT_PARAMS   = 2
            INVALID_ARCHIVE_PARAMS = 3
            OTHERS                 = 4.
*-- Make sure that a printer destination has been set up
*-- If this is not done the PDF function module ABENDS
  IF MSTR_PRINT_PARMS-PDEST = SPACE.
    MSTR_PRINT_PARMS-PDEST = 'LOCL'. "'ZPDF'.
  ENDIF.
*-- Explicitly set output format so that
*-- the PDF conversion comes out OK
  IF P_PAART IS INITIAL.
    P_PAART = 'X_65_255'.
  ENDIF.
  MSTR_PRINT_PARMS-PAART = P_PAART.
  MOVE SY-REPID TO W_REPID.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 May 2009 04:15:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-09T04:15:08Z</dc:date>
    <item>
      <title>Generate spool request directly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-spool-request-directly/m-p/5574932#M1271546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My requirement is that as soon as user click on Execute(F8) automatically a spool request is generated without asking for PRINT &amp;amp; PRINT PREVIEW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SUBMIT z_mm_rpt_problem_mgmt_prnt&lt;/P&gt;&lt;P&gt;        TO SAP-SPOOL WITHOUT SPOOL DYNPRO&lt;/P&gt;&lt;P&gt;          SPOOL PARAMETERS mstr_print_parms&lt;/P&gt;&lt;P&gt;          WITH  p_reqno = it_zprohdr-requestno&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;this is asking for PRINT &amp;amp; PRINT PREVIEW and sometimes no spool is generated for the documents which exits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be the error.&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;Edited by: ABHUT on May 9, 2009 9:12 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2009 03:42:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-spool-request-directly/m-p/5574932#M1271546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-09T03:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Generate spool request directly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-spool-request-directly/m-p/5574933#M1271547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While creating "mstr_print_parms" set NO_DIALOG = 'X' like the example given below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL FUNCTION 'GET_PRINT_PARAMETERS'
       EXPORTING
            AUTHORITY              = SPACE
            COPIES                 = '1'
            COVER_PAGE             = SPACE
            DATA_SET               = SPACE
            DEPARTMENT             = SPACE
            DESTINATION            = SPACE
            EXPIRATION             = '1'
            IMMEDIATELY            = SPACE
            IN_ARCHIVE_PARAMETERS  = SPACE
            IN_PARAMETERS          = SPACE
            LAYOUT                 = SPACE
            MODE                   = SPACE
            NEW_LIST_ID            = 'X'
            NO_DIALOG              = 'X'
            USER                   = SY-UNAME
       IMPORTING
            OUT_PARAMETERS         = MSTR_PRINT_PARMS
            VALID                  = MC_VALID
       EXCEPTIONS
            ARCHIVE_INFO_NOT_FOUND = 1
            INVALID_PRINT_PARAMS   = 2
            INVALID_ARCHIVE_PARAMS = 3
            OTHERS                 = 4.
*-- Make sure that a printer destination has been set up
*-- If this is not done the PDF function module ABENDS
  IF MSTR_PRINT_PARMS-PDEST = SPACE.
    MSTR_PRINT_PARMS-PDEST = 'LOCL'. "'ZPDF'.
  ENDIF.
*-- Explicitly set output format so that
*-- the PDF conversion comes out OK
  IF P_PAART IS INITIAL.
    P_PAART = 'X_65_255'.
  ENDIF.
  MSTR_PRINT_PARMS-PAART = P_PAART.
  MOVE SY-REPID TO W_REPID.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2009 04:15:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-spool-request-directly/m-p/5574933#M1271547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-09T04:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Generate spool request directly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-spool-request-directly/m-p/5574934#M1271548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hav defined in this manner&lt;/P&gt;&lt;P&gt;*-- Setup the Print Parmaters&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;     authority = space&lt;/P&gt;&lt;P&gt;     copies   = '1'&lt;/P&gt;&lt;P&gt;     cover_page                   = space&lt;/P&gt;&lt;P&gt;     data_set = space&lt;/P&gt;&lt;P&gt;     department                   = space&lt;/P&gt;&lt;P&gt;     destination                  = space&lt;/P&gt;&lt;P&gt;     expiration                   = '1'&lt;/P&gt;&lt;P&gt;     immediately                  = space&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    in_archive_parameters        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    in_parameters                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     layout   = space&lt;/P&gt;&lt;P&gt;     mode     = space&lt;/P&gt;&lt;P&gt;     new_list_id                  = 'X'&lt;/P&gt;&lt;P&gt;     no_dialog = 'X'&lt;/P&gt;&lt;P&gt;     user     = sy-uname&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     out_parameters               = mstr_print_parms&lt;/P&gt;&lt;P&gt;     valid    = mc_valid&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     archive_info_not_found       = 1&lt;/P&gt;&lt;P&gt;     invalid_print_params         = 2&lt;/P&gt;&lt;P&gt;     invalid_archive_params       = 3&lt;/P&gt;&lt;P&gt;     OTHERS   = 4.&lt;/P&gt;&lt;P&gt;*-- Make sure that a printer destination has been set up&lt;/P&gt;&lt;P&gt;*-- If this is not done the PDF function module ABENDS&lt;/P&gt;&lt;P&gt;  IF mstr_print_parms-pdest = space.&lt;/P&gt;&lt;P&gt;    mstr_print_parms-pdest = 'SAPW'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Setting PList Param&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CONCATENATE sy-repid&lt;EM&gt;0(9) sy-uname&lt;/EM&gt;0(3) INTO mstr_print_parms-plist .&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2009 04:26:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-spool-request-directly/m-p/5574934#M1271548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-09T04:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Generate spool request directly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-spool-request-directly/m-p/5574935#M1271549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then set the following to space too&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 in_archive_parameters = SPACE
 in_parameters = SPACE
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and check in debug what is the value of MSTR_PRINT_PARMS-PAART , if it is initial then u need to give some values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Tripat Pal Singh on May 9, 2009 10:07 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2009 04:36:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-spool-request-directly/m-p/5574935#M1271549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-09T04:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Generate spool request directly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-spool-request-directly/m-p/5574936#M1271550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In output a SAP SCRIPT is being generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MSTR_PRINT_PARMS-PAART  what will be assigned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2009 04:47:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-spool-request-directly/m-p/5574936#M1271550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-09T04:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Generate spool request directly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-spool-request-directly/m-p/5574937#M1271551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That u have to see what Print parameters, print formatting ur system has, but i suppose X_65_255 is standard, check my previous post&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2009 05:19:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-spool-request-directly/m-p/5574937#M1271551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-09T05:19:15Z</dc:date>
    </item>
  </channel>
</rss>

