<?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: Page-Break while printing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/page-break-while-printing/m-p/3147260#M748241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the option of Grouping to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details, read the documentation of the data element SLIS_CTRLS, which is used for the structure field slis_sortinfo_alv-group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;slis_sortinfo_alv is the line type of the parameter IT_SORT of the FM REUSE_ALV_GRID_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use '*' as the value for slis_sortinfo_alv-group, it will initiate a page break and if you use 'UL', the ALV will use Underline to differentiate between the group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort-spos = '10'.&lt;/P&gt;&lt;P&gt;SORT-FIELDNAME = 'Years'.&lt;/P&gt;&lt;P&gt;SORT-TABNAME = 'DATA_TAB2'.&lt;/P&gt;&lt;P&gt;sort-UP = 'X'.&lt;/P&gt;&lt;P&gt;sort-subtot = 'X'.&lt;/P&gt;&lt;P&gt;SORT-GROUP = '* '.&lt;/P&gt;&lt;P&gt;APPEND SORT. CLEAR SORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the It_SOET internal table write:&lt;/P&gt;&lt;P&gt;IT_SORT-Group = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will give a page break... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward point if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Dec 2007 09:39:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-11T09:39:15Z</dc:date>
    <item>
      <title>Page-Break while printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/page-break-while-printing/m-p/3147259#M748240</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;is it possible in ALV to have a page-break with header and footer while printing???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 09:32:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/page-break-while-printing/m-p/3147259#M748240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-11T09:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Page-Break while printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/page-break-while-printing/m-p/3147260#M748241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the option of Grouping to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details, read the documentation of the data element SLIS_CTRLS, which is used for the structure field slis_sortinfo_alv-group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;slis_sortinfo_alv is the line type of the parameter IT_SORT of the FM REUSE_ALV_GRID_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use '*' as the value for slis_sortinfo_alv-group, it will initiate a page break and if you use 'UL', the ALV will use Underline to differentiate between the group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort-spos = '10'.&lt;/P&gt;&lt;P&gt;SORT-FIELDNAME = 'Years'.&lt;/P&gt;&lt;P&gt;SORT-TABNAME = 'DATA_TAB2'.&lt;/P&gt;&lt;P&gt;sort-UP = 'X'.&lt;/P&gt;&lt;P&gt;sort-subtot = 'X'.&lt;/P&gt;&lt;P&gt;SORT-GROUP = '* '.&lt;/P&gt;&lt;P&gt;APPEND SORT. CLEAR SORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the It_SOET internal table write:&lt;/P&gt;&lt;P&gt;IT_SORT-Group = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will give a page break... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward point if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 09:39:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/page-break-while-printing/m-p/3147260#M748241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-11T09:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Page-Break while printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/page-break-while-printing/m-p/3147261#M748242</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;I hope the following steps will solve your problem :&lt;/P&gt;&lt;P&gt;1. Merge the data from the 3 tables into a single table (say gt_outtab).&lt;/P&gt;&lt;P&gt;2. The table gt_outtab should have a field (say tab ) to indicate the table from which the data has come . Depending on the tables conatining the initial data , you can assign 1, 2 , 3 into the new field (tab).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Bulid the fieldcatalog with the particular column (TAB) of the output table as no_out='X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gs_fieldcat-COL_POS = lv_line.&lt;/P&gt;&lt;P&gt;gs_fieldcat-fieldname = 'TAB'.&lt;/P&gt;&lt;P&gt;gs_fieldcat-outputlen = 1.&lt;/P&gt;&lt;P&gt;gs_fieldcat-just = 'L'.&lt;/P&gt;&lt;P&gt;gs_fieldcat-coltext = 'Table'.&lt;/P&gt;&lt;P&gt;gs_fieldcat-seltext = 'Table'.&lt;/P&gt;&lt;P&gt;gs_fieldcat-NO_OUT = 'X'.&lt;/P&gt;&lt;P&gt;APPEND gs_fieldcat TO lt_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Define the data of type lvc_s_print&lt;/P&gt;&lt;P&gt;DATA: gs_print TYPE lvc_s_prnt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Before calling the method set_table_for_first_display assign grpchgedit of the structure gs_print as 'X' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gs_print-grpchgedit = 'X'.&lt;/P&gt;&lt;P&gt;CALL METHOD gr_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;is_print = gs_print&lt;/P&gt;&lt;P&gt;is_layout = ls_layo&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;it_outtab = gt_outtab[]&lt;/P&gt;&lt;P&gt;it_fieldcatalog = lt_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. Run the report . The particular column is not displayed in the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7. Go to Print Preview mode. Press the sort ascending or descending button on toolbar (without selecting a column).A dialog box appears asking for sort order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8. Add the field(TAB), from the available list on right hand side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9. In the last column titled NG of this sort order dialog box, write * for page feed .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10. Press the copy button .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if found helpful&amp;#133;..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chandra Sekhar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2007 14:31:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/page-break-while-printing/m-p/3147261#M748242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-14T14:31:55Z</dc:date>
    </item>
  </channel>
</rss>

