<?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: Taking printouts while executing a report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/taking-printouts-while-executing-a-report/m-p/6710773#M1453763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a parameter IS_PRINT to print directly. See demo program BCALV_TEST_FULLSCREEN_PRINT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Mar 2010 17:03:13 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2010-03-07T17:03:13Z</dc:date>
    <item>
      <title>Taking printouts while executing a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/taking-printouts-while-executing-a-report/m-p/6710768#M1453758</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 have one report which displays output in ALV and the user taking print out of the list using print button. Currently user wants an option to select print functionality in selection screen and based on the selection report should automaticaly gave the print out .&lt;/P&gt;&lt;P&gt;Can i use the below FMs to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SLVC_TABLE_PS_TO_SPOOL   -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; send the internal table data to Spool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RSPO_OUTPUT_SPOOL_REQUEST' -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; Spool to printer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ratheesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Mar 2010 09:15:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/taking-printouts-while-executing-a-report/m-p/6710768#M1453758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-07T09:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Taking printouts while executing a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/taking-printouts-while-executing-a-report/m-p/6710769#M1453759</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;Not sure if above works. But you can try in this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF po_print EQ 'X'.  "Selection screen parameter is selected.
PRINT-CONTROL ON.  "Redirect the o/p to spool.
CALL ALV FM
PRINT-CONTROL OFF.

CALL ALV FM again as usual&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need to set the print parameters accordingly and printer is connected to SAP system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Mar 2010 13:10:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/taking-printouts-while-executing-a-report/m-p/6710769#M1453759</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2010-03-07T13:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Taking printouts while executing a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/taking-printouts-while-executing-a-report/m-p/6710770#M1453760</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;Can you tell me what you mean by call the ALV FM again and please tell me how to set the print parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ratheesh BS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Mar 2010 13:37:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/taking-printouts-while-executing-a-report/m-p/6710770#M1453760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-07T13:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Taking printouts while executing a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/taking-printouts-while-executing-a-report/m-p/6710771#M1453761</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;o/p displayed by the first FM call between PRINT-CONTROL statements is sent to the spool. second FM call with same data is used to display on screen. You need to add one more condition for checking sy-batch is initial or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF po_print EQ 'X' AND sy-batch IS iNITIAL. "Means running in foreground.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think print parameters are taken by default if not specified. First try above solution. If not works you can try setting the print parameters. There is some FM for this. Search in SE37 with &lt;STRONG&gt;SET&lt;/STRONG&gt;PRINT&lt;STRONG&gt;PARAM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Mar 2010 15:55:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/taking-printouts-while-executing-a-report/m-p/6710771#M1453761</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2010-03-07T15:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Taking printouts while executing a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/taking-printouts-while-executing-a-report/m-p/6710772#M1453762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Can you tell me what you mean by call the ALV FM again and please tell me how to set the print parameters&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it means the "Reuse_alv_list_display " or "resuse_alv_grid_display" funtion module...... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Mar 2010 16:29:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/taking-printouts-while-executing-a-report/m-p/6710772#M1453762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-07T16:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Taking printouts while executing a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/taking-printouts-while-executing-a-report/m-p/6710773#M1453763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a parameter IS_PRINT to print directly. See demo program BCALV_TEST_FULLSCREEN_PRINT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Mar 2010 17:03:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/taking-printouts-while-executing-a-report/m-p/6710773#M1453763</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-03-07T17:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Taking printouts while executing a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/taking-printouts-while-executing-a-report/m-p/6710774#M1453764</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;Call the FM again, call the reuse ALV FM...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you got another better solution.(Set IS_PRINT = 'X'). Try this and let us know if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Mar 2010 18:48:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/taking-printouts-while-executing-a-report/m-p/6710774#M1453764</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2010-03-07T18:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Taking printouts while executing a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/taking-printouts-while-executing-a-report/m-p/6710775#M1453765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example program will Pop up a dialog box for entering the output device,  i want to avoid this pop up box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i do this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ratheesh BS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Mar 2010 07:41:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/taking-printouts-while-executing-a-report/m-p/6710775#M1453765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-08T07:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Taking printouts while executing a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/taking-printouts-while-executing-a-report/m-p/6710776#M1453766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I can see, it uses REUSE_ALV_GRID_DISPLAY, which then calls form PRINT_PARAMS_SET2 in program SAPLKKBL. There it initializes L_NO_DIALOG variable to 'X' only if it runs in background. Do it using SUBMIT VIA JOB ... and of course you have to define a printer in the job print parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Mar 2010 09:54:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/taking-printouts-while-executing-a-report/m-p/6710776#M1453766</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-03-08T09:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Taking printouts while executing a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/taking-printouts-while-executing-a-report/m-p/6710777#M1453767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this mean we cannot suppress the dialog box when executing the ALV in online mode ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i remember correctly the PRIPARAMS in the ALV print params structure has NO_DIALOG field. But it does not seem to work in online mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please explain your solution in detail ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Mar 2010 10:01:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/taking-printouts-while-executing-a-report/m-p/6710777#M1453767</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-03-08T10:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Taking printouts while executing a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/taking-printouts-while-executing-a-report/m-p/6710778#M1453768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Does this mean we cannot suppress the dialog box when executing the ALV in online mode ?&lt;/P&gt;&lt;P&gt;That's right (at least with REUSE_ALV_GRID_DISPLAY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; If i remember correctly the PRIPARAMS in the ALV print params structure has NO_DIALOG field. But it does not seem to work in online mode.&lt;/P&gt;&lt;P&gt;No, NO_DIALOG field doesn't exist in PRI_PARAMS. It's only a parameter in GET_PRINT_PARAMETERS function module. As I explained, the only control you have on it is to run it in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Can you please explain your solution in detail ?&lt;/P&gt;&lt;P&gt;You create another program which runs REUSE_ALV_GRID_DISPLAY with IS_PRINT-PRINT = 'X', and you call this program in background using SUBMIT VIA JOB.&lt;/P&gt;&lt;P&gt;If you want more information about SUBMIT VIA JOB, then could you ask a new question. Only one by thread as explained in forum rules. Or, search forum: &lt;A href="http://www.sdn.sap.com/irj/scn/advancedsearch?query=pri_params" target="test_blank"&gt;http://www.sdn.sap.com/irj/scn/advancedsearch?query=pri_params&lt;/A&gt;&lt;EM&gt;submit&lt;/EM&gt;via+job&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Mar 2010 10:14:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/taking-printouts-while-executing-a-report/m-p/6710778#M1453768</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-03-08T10:14:22Z</dc:date>
    </item>
  </channel>
</rss>

