<?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: set_print_parameters in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-print-parameters/m-p/3510890#M844485</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;Chk out this program,&lt;/P&gt;&lt;P&gt;REPORT SAPMZTST NO STANDARD PAGE HEADING LINE-COUNT 0(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS P TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SET_PRINT_PARAMETERS'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;ARCHIVE_MODE = '3'&lt;/P&gt;&lt;P&gt;COPIES = '5'&lt;/P&gt;&lt;P&gt;DEPARTMENT = 'BASIS'&lt;/P&gt;&lt;P&gt;DESTINATION = 'LT50'&lt;/P&gt;&lt;P&gt;EXPIRATION = ' '&lt;/P&gt;&lt;P&gt;IMMEDIATELY = 'X'&lt;/P&gt;&lt;P&gt;LAYOUT = 'X_65_132'&lt;/P&gt;&lt;P&gt;LINE_COUNT = 54&lt;/P&gt;&lt;P&gt;LINE_SIZE = 20&lt;/P&gt;&lt;P&gt;LIST_NAME = 'Test'&lt;/P&gt;&lt;P&gt;LIST_TEXT = 'Test for User''s Guide'&lt;/P&gt;&lt;P&gt;NEW_LIST_ID = 'X'&lt;/P&gt;&lt;P&gt;RECEIVER = 'KELLERH'&lt;/P&gt;&lt;P&gt;RELEASE = ' '&lt;/P&gt;&lt;P&gt;SAP_COVER_PAGE = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO P TIMES.&lt;/P&gt;&lt;P&gt;WRITE / SY-INDEX.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: 'Page', SY-PAGNO.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-PAGE.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;WRITE: 'End of', SY-PAGNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After executing this program, the user can enter a value for parameter P on the selection screen (for example 100) and choose Execute + print. The system then displays this dialog window:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chk out this links..&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_40b/helpdata/en/9f/dba58735c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_40b/helpdata/en/9f/dba58735c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4808966"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4808966"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps u,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arunsri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Mar 2008 04:56:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-07T04:56:58Z</dc:date>
    <item>
      <title>set_print_parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-print-parameters/m-p/3510889#M844484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;expert!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im having a problem with the alignment of my page.i used set_print parameters.im printing a paper in landscape type and i used 'X_65_255' as its layout and 63 as its line count and 255 as its line size.problem is when i print the second page it starts on the fourth line instead of starting in the first line of the page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you share your ideas with me guys on how i would fix this problem?my first page is ok but the preceding pages were not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 04:48:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-print-parameters/m-p/3510889#M844484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T04:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: set_print_parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-print-parameters/m-p/3510890#M844485</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;Chk out this program,&lt;/P&gt;&lt;P&gt;REPORT SAPMZTST NO STANDARD PAGE HEADING LINE-COUNT 0(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS P TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SET_PRINT_PARAMETERS'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;ARCHIVE_MODE = '3'&lt;/P&gt;&lt;P&gt;COPIES = '5'&lt;/P&gt;&lt;P&gt;DEPARTMENT = 'BASIS'&lt;/P&gt;&lt;P&gt;DESTINATION = 'LT50'&lt;/P&gt;&lt;P&gt;EXPIRATION = ' '&lt;/P&gt;&lt;P&gt;IMMEDIATELY = 'X'&lt;/P&gt;&lt;P&gt;LAYOUT = 'X_65_132'&lt;/P&gt;&lt;P&gt;LINE_COUNT = 54&lt;/P&gt;&lt;P&gt;LINE_SIZE = 20&lt;/P&gt;&lt;P&gt;LIST_NAME = 'Test'&lt;/P&gt;&lt;P&gt;LIST_TEXT = 'Test for User''s Guide'&lt;/P&gt;&lt;P&gt;NEW_LIST_ID = 'X'&lt;/P&gt;&lt;P&gt;RECEIVER = 'KELLERH'&lt;/P&gt;&lt;P&gt;RELEASE = ' '&lt;/P&gt;&lt;P&gt;SAP_COVER_PAGE = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO P TIMES.&lt;/P&gt;&lt;P&gt;WRITE / SY-INDEX.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: 'Page', SY-PAGNO.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-PAGE.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;WRITE: 'End of', SY-PAGNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After executing this program, the user can enter a value for parameter P on the selection screen (for example 100) and choose Execute + print. The system then displays this dialog window:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chk out this links..&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_40b/helpdata/en/9f/dba58735c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_40b/helpdata/en/9f/dba58735c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4808966"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4808966"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps u,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arunsri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 04:56:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-print-parameters/m-p/3510890#M844485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T04:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: set_print_parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-print-parameters/m-p/3510891#M844486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi there&lt;/P&gt;&lt;P&gt;when i execute tht program am getting a short dump&lt;/P&gt;&lt;P&gt;can u pls let me know why and give me another example&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;bhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 09:30:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-print-parameters/m-p/3510891#M844486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T09:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: set_print_parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-print-parameters/m-p/3510892#M844487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because Function Type is Conflicted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz use this source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After executing this program, press the key Ctrl + P .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can see the values are same the parameters in fuction module 'SET_PRINT_PARAMETERS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  z_test001 NO STANDARD PAGE HEADING LINE-COUNT 0(2).


DATA :archive_mode  LIKE  pri_params-armod VALUE '3',
      copies  LIKE  pri_params-prcop VALUE '5',
      department  LIKE  pri_params-prabt VALUE 'BASIS',
      destination LIKE  pri_params-pdest VALUE 'LT50',
      expiration  LIKE  pri_params-pexpi VALUE ' ',
      immediately LIKE  pri_params-primm VALUE 'X',
      layout  LIKE  pri_params-paart VALUE 'X_65_132',
      line_count  LIKE  pri_params-linct VALUE '54',
      line_size LIKE  pri_params-linsz VALUE '20',
      list_name LIKE  pri_params-plist VALUE 'TEST',
      list_text LIKE  pri_params-prtxt VALUE `Test for User's Guide`,
      new_list_id LIKE  pri_params-prnew VALUE 'X',
      receiver  LIKE  pri_params-prrec VALUE 'KELLERH',
      release LIKE  pri_params-prrel VALUE ' ',
      sap_cover_page  LIKE  pri_params-prsap VALUE 'X'.

PARAMETERS p TYPE i DEFAULT 10.

INITIALIZATION.

  CALL FUNCTION 'SET_PRINT_PARAMETERS'
    EXPORTING
      archive_mode   = archive_mode
      copies         = copies
      department     = department
      destination    = destination
      expiration     = expiration
      immediately    = immediately
      layout         = layout
      line_count     = line_count
      line_size      = line_size
      list_name      = list_name
      list_text      = list_text
      new_list_id    = new_list_id
      receiver       = receiver
      release        = release
      sap_cover_page = sap_cover_page.

START-OF-SELECTION.

  DO p TIMES.
    WRITE / sy-index.
  ENDDO.

TOP-OF-PAGE.

  WRITE: 'Page', sy-pagno.
  ULINE.

END-OF-PAGE.
  ULINE.
  WRITE: 'End of', sy-pagno.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jaime White 999 on Aug 22, 2011 4:08 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 02:08:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-print-parameters/m-p/3510892#M844487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-22T02:08:26Z</dc:date>
    </item>
  </channel>
</rss>

