<?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 report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-report/m-p/1778283#M335550</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi...&lt;/P&gt;&lt;P&gt;You can use the following function to print a report&lt;/P&gt;&lt;P&gt;&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;P&gt;&lt;/P&gt;&lt;P&gt;check if it is working for ya!&lt;/P&gt;&lt;P&gt;all the best.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Dec 2006 05:29:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-11T05:29:26Z</dc:date>
    <item>
      <title>Printing report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-report/m-p/1778280#M335547</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 need to allow user to specify the printer properties before printing the report out. Can anyone suggest which FM to use ? I tried using Get_Print_Parameters but it prompt me to enter spool request which I dont want the user to see this screen. I have a spool id available. Please assist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Loo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 02:23:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-report/m-p/1778280#M335547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T02:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Printing report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-report/m-p/1778281#M335548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try executing the same FM with:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
mode                   = 'BATCH'
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 03:11:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-report/m-p/1778281#M335548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T03:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Printing report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-report/m-p/1778282#M335549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hie Rob,&lt;/P&gt;&lt;P&gt;      May i know what the 'BATCH' here does ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Loo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found out the Batch means :- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'BATCH' Define the print parameters for a background job.&lt;/P&gt;&lt;P&gt;In this mode, the name of the report to be started&lt;/P&gt;&lt;P&gt;is passed with the REPORT parameter.The REPORT&lt;/P&gt;&lt;P&gt;statement of the specified report is checked for&lt;/P&gt;&lt;P&gt;LINE-SIZE and LINE-COUNT definitions. These&lt;/P&gt;&lt;P&gt;definitions are passed as default specifications.&lt;/P&gt;&lt;P&gt;Furthermore, the SAVE key is offered&lt;/P&gt;&lt;P&gt;instead of the PRINT key in this mode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i still dont understand the usage of Batch here got to do with the spool screen i got.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Loo BiE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 03:56:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-report/m-p/1778282#M335549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T03:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Printing report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-report/m-p/1778283#M335550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi...&lt;/P&gt;&lt;P&gt;You can use the following function to print a report&lt;/P&gt;&lt;P&gt;&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;P&gt;&lt;/P&gt;&lt;P&gt;check if it is working for ya!&lt;/P&gt;&lt;P&gt;all the best.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 05:29:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-report/m-p/1778283#M335550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T05:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Printing report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-report/m-p/1778284#M335551</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 also try this function module SET_PRINT_PARAMETERS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 05:30:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-report/m-p/1778284#M335551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T05:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Printing report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-report/m-p/1778285#M335552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavithra,&lt;/P&gt;&lt;P&gt;     Thanks for the suggestion. I've tried dat but the parameter box keep popping up den when i finally get rid of dat parameter box, the spool screen still comes out. Any other way ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 06:15:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-report/m-p/1778285#M335552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T06:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Printing report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-report/m-p/1778286#M335553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try it - it works for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 14:23:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-report/m-p/1778286#M335553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T14:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Printing report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-report/m-p/1778287#M335554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys for helping up. I've tried the FM "Print_Report" it actually work but i do not want the Spool Request screen to comes out. Thus, i've created my another selection-screen for that purposes using submit &amp;lt;sy-repid&amp;gt; ztest   .... where ztest is another report.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 06:43:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-report/m-p/1778287#M335554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-13T06:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Printing report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-report/m-p/1778288#M335555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi loo,&lt;/P&gt;&lt;P&gt;Can you please send your code. What you have done?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 09:16:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-report/m-p/1778288#M335555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-13T09:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Printing report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-report/m-p/1778289#M335556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd submit my report to sap-spool and then i retrieve the spool number and perform the printing. The code are like below :- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;In Report A ***&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;FORM print_to_printer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM send_to_spool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SUBMIT zhrr335_eeo_prt VIA SELECTION-SCREEN AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "Print_to_printer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;In Report B ***&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Message Declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: l_msg1 TYPE symsgv ,&lt;/P&gt;&lt;P&gt;      l_msg2 TYPE symsgv ,&lt;/P&gt;&lt;P&gt;      l_msg3 TYPE symsgv .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Print Parameters&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: l_print_parms LIKE pri_params,&lt;/P&gt;&lt;P&gt;      l_valid(1)      TYPE c,&lt;/P&gt;&lt;P&gt;      l_rqname(12)    TYPE c,&lt;/P&gt;&lt;P&gt;      l_rqident LIKE tsp01-rqident.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK frm1 WITH FRAME TITLE text-prt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_dest TYPE tsp03-padest,&lt;/P&gt;&lt;P&gt;            p_copies TYPE tsp02-pjcopies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 1(31) TEXT-Z01 FOR FIELD p_strtpg.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_strtpg TYPE tsp02-pjstrtpage.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 47(10) TEXT-Z02 FOR FIELD p_endpg.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_endpg TYPE tsp02-pjendpage.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK frm1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF p_dest EQ space.&lt;/P&gt;&lt;P&gt;    p_dest = 'LOCL'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF p_copies EQ space.&lt;/P&gt;&lt;P&gt;    p_copies = 1.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF p_strtpg EQ space.&lt;/P&gt;&lt;P&gt;    p_strtpg = 1.&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;Find out what the spool number is that was just created&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM get_spool_number USING sy-uname CHANGING l_rqident.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RSPO_OUTPUT_SPOOL_REQUEST'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      copies                 = p_copies&lt;/P&gt;&lt;P&gt;      device                 = p_dest&lt;/P&gt;&lt;P&gt;      spool_request_id       = l_rqident&lt;/P&gt;&lt;P&gt;      startpage              = p_strtpg&lt;/P&gt;&lt;P&gt;      endpage                = p_endpg&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      change_copies_no_right = 6&lt;/P&gt;&lt;P&gt;      change_dest_no_right   = 7&lt;/P&gt;&lt;P&gt;      dest_invalid           = 12&lt;/P&gt;&lt;P&gt;      dest_not_found         = 13&lt;/P&gt;&lt;P&gt;      dest_no_right          = 14&lt;/P&gt;&lt;P&gt;      internal_problem       = 15&lt;/P&gt;&lt;P&gt;      OTHERS                 = 23.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    l_msg1 = 'Printing in process.'.&lt;/P&gt;&lt;P&gt;    l_msg2 = 'Please wait.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MESSAGE i001(00) WITH l_msg1 l_msg2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SET SCREEN 0.&lt;/P&gt;&lt;P&gt;    LEAVE SCREEN.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    l_msg3 = 'Error Printing report'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MESSAGE e001(00) WITH l_msg3.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FORM get_spool_number *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Get the most recent spool created by user/report              *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  F_REPID                                                       *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  F_UNAME                                                       *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  F_RQIDENT                                                     *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_spool_number USING f_uname CHANGING f_rqident.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: lc_rq2name LIKE tsp01-rq2name.&lt;/P&gt;&lt;P&gt;  DATA: li_tsp01 TYPE tsp01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE 'ZHRR335_' f_uname+0(3) INTO lc_rq2name SEPARATED BY '_'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM tsp01 INTO li_tsp01&lt;/P&gt;&lt;P&gt;    WHERE  rq2name = lc_rq2name&lt;/P&gt;&lt;P&gt;      ORDER BY rqcretime DESCENDING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    f_rqident = li_tsp01-rqident.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    CLEAR f_rqident.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM." get_spool_number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it could help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Loo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 08:53:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-report/m-p/1778289#M335556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-18T08:53:28Z</dc:date>
    </item>
  </channel>
</rss>

