<?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 Code to invoke new-page in sapscript based on a condition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-invoke-new-page-in-sapscript-based-on-a-condition/m-p/1214301#M134357</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a problem here. What I want to do is for every change of value in a certain field, for example field A, those records will be on a new page and it goes as well for field B and its records. Thanks guys and take care!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Mar 2006 05:15:25 GMT</pubDate>
    <dc:creator>aris_hidalgo</dc:creator>
    <dc:date>2006-03-24T05:15:25Z</dc:date>
    <item>
      <title>Code to invoke new-page in sapscript based on a condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-invoke-new-page-in-sapscript-based-on-a-condition/m-p/1214301#M134357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a problem here. What I want to do is for every change of value in a certain field, for example field A, those records will be on a new page and it goes as well for field B and its records. Thanks guys and take care!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 05:15:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-invoke-new-page-in-sapscript-based-on-a-condition/m-p/1214301#M134357</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-03-24T05:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Code to invoke new-page in sapscript based on a condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-invoke-new-page-in-sapscript-based-on-a-condition/m-p/1214302#M134358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Vijay,&lt;/P&gt;&lt;P&gt;  check this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/46/bb181dab4811d4968100a0c94260a5/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/46/bb181dab4811d4968100a0c94260a5/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax:&lt;/P&gt;&lt;P&gt;/: INCLUDE MYTEXT&lt;/P&gt;&lt;P&gt;NEW&amp;#150;PAGE: SAP Script automatically carries out a page break if window MAIN of one page is filled with NEW-PAGE command. You can face page break at any point. The current page is completed and the text in the following line is written on new page. If no name is defined, then, the next page attributes from page setup is taken.&lt;/P&gt;&lt;P&gt;Syntax:&lt;/P&gt;&lt;P&gt;/: NEW &amp;#150; PAGE [PAGE-NAME]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEW&amp;#150;WINDOW: You can have 99 MAIN windows on one page. If MAIN window is filled, then the next MAIN window is accessed automatically. With NEW-WINDOW command, you can call next main window even if the current MAIN window is not yet completely filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROTECT:	 You can determine that a paragraph must not be separated by a page break. The lines in this command are printed together on one page. If the space is enough on current page, then all the lines are printed on current page. If, however the space is not sufficient the PROTECT command works as a &amp;#145;NEW-PAGE&amp;#146;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 05:18:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-invoke-new-page-in-sapscript-based-on-a-condition/m-p/1214302#M134358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T05:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Code to invoke new-page in sapscript based on a condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-invoke-new-page-in-sapscript-based-on-a-condition/m-p/1214303#M134359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Viray,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can make use of IF or else for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example taken from the thread :&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="1405768"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can find more eg. on the same thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: IF &amp;amp;mseg-bwart&amp;amp; NE 631 . &lt;/P&gt;&lt;P&gt;/: IF &amp;amp;MKPF-TCODE2&amp;amp; NE 'MB01' AND &amp;amp;MKPF-TCODE2&amp;amp; NE 'MIGO_GR'&lt;/P&gt;&lt;P&gt;I1 ,,&amp;amp;MSEG-WEMPF&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;For New Page.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;/: NEW-PAGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: ELSE&lt;/P&gt;&lt;P&gt;I1 ,,&amp;amp;MSEG-EBELN&amp;amp;&lt;/P&gt;&lt;P&gt;/: ENDIF &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;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;P&gt;Rewrd points, if found helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 05:24:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-invoke-new-page-in-sapscript-based-on-a-condition/m-p/1214303#M134359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T05:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Code to invoke new-page in sapscript based on a condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-invoke-new-page-in-sapscript-based-on-a-condition/m-p/1214304#M134360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vijaylab,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. For such kind of requirement, we have to&lt;/P&gt;&lt;P&gt;   take care of 2 things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;b&amp;gt; a) logic in driver program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  b) New element in layout for new-page&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.  b) New element in layout for new-page&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   First of all make a new element&lt;/P&gt;&lt;P&gt;   by any name (eg. mynew)&lt;/P&gt;&lt;P&gt;   in the layout and write this line in it.&lt;/P&gt;&lt;P&gt;   /: new-page&lt;/P&gt;&lt;P&gt;  (this element will be called, when we want to print&lt;/P&gt;&lt;P&gt;   new page, based upon the logic)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.    a) logic in driver program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   U must be printing in loop.&lt;/P&gt;&lt;P&gt;   The ITAB must be SORTED on that field (Very important)&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   Take new variable eg. OldValue&lt;/P&gt;&lt;P&gt;   Write your own logic&lt;/P&gt;&lt;P&gt;   to put new value in this oldvalue,&lt;/P&gt;&lt;P&gt;   If the NEW value is NOT EQUAL to old value,&lt;/P&gt;&lt;P&gt;   then &lt;/P&gt;&lt;P&gt;   using WRITE_FORM&lt;/P&gt;&lt;P&gt;   write the element for new page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 05:41:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-invoke-new-page-in-sapscript-based-on-a-condition/m-p/1214304#M134360</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T05:41:08Z</dc:date>
    </item>
  </channel>
</rss>

