<?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: Function Module to print in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-print/m-p/1574559#M259394</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;print what ABAP list?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if yes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'GET_PRINT_PARAMETERS'
       exporting
            destination    = loc_dest
            copies         = wf_copies
            list_name      = wf_listname
            list_text      = wf_listtext
            immediately    = 'X'
            release        = ' '
            new_list_id    = 'X'
            expiration     = wf_days
            line_size      = 200
            line_count     = 65
            layout         = 'X_65_200'
            sap_cover_page = 'X'
            receiver       = 'SAP*'
            department     = ''
            no_dialog      = 'X'
       importing
            out_parameters = wf_params
            valid          = wf_valid.

  if wf_valid &amp;lt;&amp;gt; space.
    new-page print on parameters wf_params no dialog.
    perform write_summary .
    new-page print off.
  endif .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inthe above code do the normal write within the form write_summary.&lt;/P&gt;&lt;P&gt;and in the function if you pass 'X' to immediately it will print immediately and if you pass blank, it will create a spool request&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Oct 2006 07:27:45 GMT</pubDate>
    <dc:creator>athavanraja</dc:creator>
    <dc:date>2006-10-09T07:27:45Z</dc:date>
    <item>
      <title>Function Module to print</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-print/m-p/1574558#M259393</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;Anyone knows a function module that could perform print function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 07:19:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-print/m-p/1574558#M259393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T07:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to print</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-print/m-p/1574559#M259394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;print what ABAP list?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if yes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'GET_PRINT_PARAMETERS'
       exporting
            destination    = loc_dest
            copies         = wf_copies
            list_name      = wf_listname
            list_text      = wf_listtext
            immediately    = 'X'
            release        = ' '
            new_list_id    = 'X'
            expiration     = wf_days
            line_size      = 200
            line_count     = 65
            layout         = 'X_65_200'
            sap_cover_page = 'X'
            receiver       = 'SAP*'
            department     = ''
            no_dialog      = 'X'
       importing
            out_parameters = wf_params
            valid          = wf_valid.

  if wf_valid &amp;lt;&amp;gt; space.
    new-page print on parameters wf_params no dialog.
    perform write_summary .
    new-page print off.
  endif .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inthe above code do the normal write within the form write_summary.&lt;/P&gt;&lt;P&gt;and in the function if you pass 'X' to immediately it will print immediately and if you pass blank, it will create a spool request&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 07:27:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-print/m-p/1574559#M259394</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-10-09T07:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to print</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-print/m-p/1574560#M259395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the following function to print a report&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'PRINT_REPORT'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;            NO_DIALOG              = ' '&lt;/P&gt;&lt;P&gt;            REPORT                 = L_REPID&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;            ARCHIVE_INFO_NOT_FOUND = 1&lt;/P&gt;&lt;P&gt;              OTHERS               = 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 07:29:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-print/m-p/1574560#M259395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T07:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to print</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-print/m-p/1574561#M259396</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 try the function module SET_PRINT_PARAMETERS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ruthra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 07:30:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-print/m-p/1574561#M259396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T07:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to print</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-print/m-p/1574562#M259397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Setting Print Parameters from within the Program&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use the print statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) NEW-PAGE PRINT ON&lt;/P&gt;&lt;P&gt;2) SUBMIT ... TO SAP-SPOOL&lt;/P&gt;&lt;P&gt;3) CALL FUNCTION 'JOB-SUBMIT'&lt;/P&gt;&lt;P&gt;you set the print parameters from within the program, using the corresponding options of the print statements. You can either display or suppress the Print parameters dialog box. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To ensure that the parameters are sent to the spool system properly and completely, you should always transfer the entire parameter set with the print statements. To create a parameter set, use the function module &amp;lt;b&amp;gt;GET_PRINT_PARAMETERS.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 07:34:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-print/m-p/1574562#M259397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T07:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to print</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-print/m-p/1574563#M259398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also view the following code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Normal definition                                                                                of the print parameters&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: PARAMS LIKE PRI_PARAMS,&lt;/P&gt;&lt;P&gt;      VALID  TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GET_PRINT_PARAMETERS'&lt;/P&gt;&lt;P&gt;  EXPORTING DESTINATION           = 'LT50'&lt;/P&gt;&lt;P&gt;  IMPORTING OUT_PARAMETERS        = PARAMS&lt;/P&gt;&lt;P&gt;             VALID                 = VALID.&lt;/P&gt;&lt;P&gt;IF VALID &amp;lt;&amp;gt; SPACE.&lt;/P&gt;&lt;P&gt;  NEW-PAGE PRINT ON PARAMETERS PARAMS.&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;Definition of the parameters for printing and archiving&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: PRI_PARAMS LIKE PRI_PARAMS,&lt;/P&gt;&lt;P&gt;      ARC_PARAMS LIKE ARC_PARAMS,&lt;/P&gt;&lt;P&gt;      VALID      TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GET_PRINT_PARAMETERS'&lt;/P&gt;&lt;P&gt;  IMPORTING OUT_PARAMETERS         = PRI_PARAMS&lt;/P&gt;&lt;P&gt;            OUT_ARCHIVE_PARAMETERS = ARC_PARAMS&lt;/P&gt;&lt;P&gt;             VALID                  = VALID.&lt;/P&gt;&lt;P&gt;IF VALID &amp;lt;&amp;gt; SPACE.&lt;/P&gt;&lt;P&gt;  NEW-PAGE PRINT ON PARAMETERS         PRI_PARAMS&lt;/P&gt;&lt;P&gt;                     ARCHIVE PARAMETERS ARC_PARAMS.&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;Definition of the parameters for a background job&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: PARAMS LIKE PRI_PARAMS,&lt;/P&gt;&lt;P&gt;      VALID  TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GET_PRINT_PARAMETERS'&lt;/P&gt;&lt;P&gt;  EXPORTING MODE                  = 'BATCH'&lt;/P&gt;&lt;P&gt;              REPORT                = 'MYREPORT'&lt;/P&gt;&lt;P&gt;  IMPORTING OUT_PARAMETERS        = PARAMS&lt;/P&gt;&lt;P&gt;              VALID                 = VALID.&lt;/P&gt;&lt;P&gt;IF VALID &amp;lt;&amp;gt; SPACE.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'JOB_OPEN' ....  EXPORTING JOBCOUNT ...&lt;/P&gt;&lt;P&gt;  SUBMIT MYREPORT VIA JOB 'MY_JOB' NUMBER JOBCOUNT&lt;/P&gt;&lt;P&gt;         TO SAP-SPOOL WITHOUT SPOOL DYNPRO&lt;/P&gt;&lt;P&gt;            SPOOL PARAMTERS PARAMS.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'JOB_CLOSE' ...&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;Modifying the print parameters&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'GET_PRINT_PARAMETERS'       "Obtain print&lt;/P&gt;&lt;P&gt;  EXPORTING NO_DIALOG             = 'X'    "parameters&lt;/P&gt;&lt;P&gt;  IMPORTING OUT_PARAMETERS        = PARAMS.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GET_PRINT_PARAMETERS'       "Modify print&lt;/P&gt;&lt;P&gt;  EXPORTING NO_DIALOG             = 'X'    "parameters&lt;/P&gt;&lt;P&gt;            IN_PARAMETERS         = PARAMS&lt;/P&gt;&lt;P&gt;              LIST_NAME             = 'NEW-LIST'&lt;/P&gt;&lt;P&gt;  IMPORTING OUT_PARAMETERS        = PARAMS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 07:36:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-print/m-p/1574563#M259398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T07:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to print</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-print/m-p/1574564#M259399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@ all, thank you all!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 07:43:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-print/m-p/1574564#M259399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T07:43:06Z</dc:date>
    </item>
  </channel>
</rss>

