<?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: Controlling printer formatting from within program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/controlling-printer-formatting-from-within-program/m-p/6066742#M1354822</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;look here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba56d35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba56d35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All Print Parameters are described.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And a little code example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING
      destination    = lv_pdest
      copies         = lv_count
      list_name      = lv_lnam
      list_text      = lv_prtxt
      immediately    = lv_flg_prn
      release        = ' '
      new_list_id    = 'X'
      expiration     = lv_days
      line_size      = 255
      line_count     = 65
      layout         = 'X_65_255'
      sap_cover_page = ' '
      cover_page     = ' '
      receiver       = lv_prrec
      department     = lv_prabt
      no_dialog      = 'X'
    IMPORTING
      out_parameters = ls_params
      valid          = lv_valid.

  IF lv_valid &amp;lt;&amp;gt; space.
    NEW-PAGE PRINT ON
      PARAMETERS ls_params NEW-SECTION NO DIALOG.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Aug 2009 09:38:36 GMT</pubDate>
    <dc:creator>former_member611006</dc:creator>
    <dc:date>2009-08-28T09:38:36Z</dc:date>
    <item>
      <title>Controlling printer formatting from within program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/controlling-printer-formatting-from-within-program/m-p/6066741#M1354821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement in which the user wants to that the printer's default setting of format 'X_65_1024'  should be changed to 'X_65_255' in case of if he executes this perticular report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output of the report is ALV list display.&lt;/P&gt;&lt;P&gt;Is it possible to control printer's setting from within the program?&lt;/P&gt;&lt;P&gt;I serached and found two FMs.&lt;/P&gt;&lt;P&gt;'SET_PRINT_PARAMETERS' and 'GET_PRINT_PARAMETERS' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am unable to understand how to use these FMs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any pointers to resolve this issue would be very helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 09:25:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/controlling-printer-formatting-from-within-program/m-p/6066741#M1354821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-28T09:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling printer formatting from within program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/controlling-printer-formatting-from-within-program/m-p/6066742#M1354822</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;look here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba56d35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba56d35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All Print Parameters are described.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And a little code example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING
      destination    = lv_pdest
      copies         = lv_count
      list_name      = lv_lnam
      list_text      = lv_prtxt
      immediately    = lv_flg_prn
      release        = ' '
      new_list_id    = 'X'
      expiration     = lv_days
      line_size      = 255
      line_count     = 65
      layout         = 'X_65_255'
      sap_cover_page = ' '
      cover_page     = ' '
      receiver       = lv_prrec
      department     = lv_prabt
      no_dialog      = 'X'
    IMPORTING
      out_parameters = ls_params
      valid          = lv_valid.

  IF lv_valid &amp;lt;&amp;gt; space.
    NEW-PAGE PRINT ON
      PARAMETERS ls_params NEW-SECTION NO DIALOG.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 09:38:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/controlling-printer-formatting-from-within-program/m-p/6066742#M1354822</guid>
      <dc:creator>former_member611006</dc:creator>
      <dc:date>2009-08-28T09:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling printer formatting from within program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/controlling-printer-formatting-from-within-program/m-p/6066743#M1354823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT xxxxxx LINE-SIZE 255 LINE-COUNT 65 .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 09:40:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/controlling-printer-formatting-from-within-program/m-p/6066743#M1354823</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2009-08-28T09:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling printer formatting from within program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/controlling-printer-formatting-from-within-program/m-p/6066744#M1354824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for you reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me how to use GET_PRINT_PARAMETERS  in case of ALV list display?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the user clicks on Print button on menu bar, I want the dialog box to be pre-populated with default settings.&lt;/P&gt;&lt;P&gt;The code given is useful in case of write statement but not in case of ALV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 10:11:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/controlling-printer-formatting-from-within-program/m-p/6066744#M1354824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-28T10:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling printer formatting from within program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/controlling-printer-formatting-from-within-program/m-p/6066745#M1354825</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;try to set your parameters at the beginning:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'SET_PRINT_PARAMETERS'
      EXPORTING
           immediately           = 'X'
           layout                = 'X_65_255'
         line_count              = 65.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 10:25:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/controlling-printer-formatting-from-within-program/m-p/6066745#M1354825</guid>
      <dc:creator>former_member611006</dc:creator>
      <dc:date>2009-08-28T10:25:18Z</dc:date>
    </item>
  </channel>
</rss>

