<?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 sapscript problem... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem/m-p/1365883#M180991</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How come my program(sapscript) still writes on the same page even though I explicitly called &lt;/P&gt;&lt;P&gt;a new-page via FM CONTROL_FORM? My condition is, for every change of dealer, I would call on a new page &lt;/P&gt;&lt;P&gt;then write the details of that dealer on the new page. I debugged my sapscript and noticed that it calls a new-page&lt;/P&gt;&lt;P&gt;based on the condition that I made but I noticed that it does not immediately create a new page but writes the details &lt;/P&gt;&lt;P&gt;of that new dealer on the current page where its supposed to be for the new page. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope to hear from you guys. Again, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 May 2006 05:59:26 GMT</pubDate>
    <dc:creator>aris_hidalgo</dc:creator>
    <dc:date>2006-05-30T05:59:26Z</dc:date>
    <item>
      <title>sapscript problem...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem/m-p/1365883#M180991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How come my program(sapscript) still writes on the same page even though I explicitly called &lt;/P&gt;&lt;P&gt;a new-page via FM CONTROL_FORM? My condition is, for every change of dealer, I would call on a new page &lt;/P&gt;&lt;P&gt;then write the details of that dealer on the new page. I debugged my sapscript and noticed that it calls a new-page&lt;/P&gt;&lt;P&gt;based on the condition that I made but I noticed that it does not immediately create a new page but writes the details &lt;/P&gt;&lt;P&gt;of that new dealer on the current page where its supposed to be for the new page. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope to hear from you guys. Again, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 05:59:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem/m-p/1365883#M180991</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-05-30T05:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript problem...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem/m-p/1365884#M180992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the new-page command has to be put in the MAIN window. Pl chk if its written within any other window,...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 06:12:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem/m-p/1365884#M180992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T06:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript problem...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem/m-p/1365885#M180993</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've written it in the report. If it has to be written in the main window, what would be the code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 06:13:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem/m-p/1365885#M180993</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-05-30T06:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript problem...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem/m-p/1365886#M180994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;/:NEW-PAGE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 06:20:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem/m-p/1365886#M180994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T06:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript problem...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem/m-p/1365887#M180995</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; instead of checking the conditon from the  main program &lt;/P&gt;&lt;P&gt;do it in the script itself ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; just store the last value in a temporary variable and check if it matches the current value..&lt;/P&gt;&lt;P&gt; if not call a new page..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 /: IF v_tmp NE v_curr
 /: NEW-PAGE	
 /: ENDIF
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Satesh R&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 06:34:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem/m-p/1365887#M180995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T06:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript problem...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem/m-p/1365888#M180996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi viraylab,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I explicitly called &lt;/P&gt;&lt;P&gt;a new-page via FM CONTROL_FORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Instead of using CONTROL_FORM,&lt;/P&gt;&lt;P&gt; we can do simply like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. a) create a new ELEMENT in layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  /E  mynewpage&lt;/P&gt;&lt;P&gt;  /: NEW-PAGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  b) In your driver program,  &lt;/P&gt;&lt;P&gt;      write the IF condition for page break&lt;/P&gt;&lt;P&gt;    ,and then using WRITE_FORM&lt;/P&gt;&lt;P&gt;    call this ELEMENT mynewpage.&lt;/P&gt;&lt;P&gt;&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>Tue, 30 May 2006 06:39:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem/m-p/1365888#M180996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T06:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript problem...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem/m-p/1365889#M180997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wrote an IF condition in my MAIN window that if a certain valuable is initial, it would trigger a new page. Here is the code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: IF &amp;amp;XKOPFDR&amp;amp; EQ ''&lt;/P&gt;&lt;P&gt;/: NEW-PAGE&lt;/P&gt;&lt;P&gt;/:ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently debugging my sapscript and found out that even though the condition is TRUE, it would not immediately trigger a new page so value that are supposed to be written on the next page are written on the current page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help would be greatly appreciated.Again, thank you guys and take care!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 08:42:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem/m-p/1365889#M180997</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-05-30T08:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript problem...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem/m-p/1365890#M180998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. u may write this logic &lt;/P&gt;&lt;P&gt;  inside the driver program, and test.&lt;/P&gt;&lt;P&gt;  (instead of  writing the logic in layout itself)&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>Tue, 30 May 2006 08:48:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem/m-p/1365890#M180998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T08:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript problem...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem/m-p/1365891#M180999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was what I did before trying to code it in the layout itself but it also didn't work. Sorry for being so stubborn but I really can't seem to figure this out since this a Z version of WASCHEIN and I'm kinda new to ABAP. Again, thank you guys for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 08:54:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem/m-p/1365891#M180999</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-05-30T08:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript problem...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem/m-p/1365892#M181000</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;have u checked if the variables that u want to print in next page are getting triggered AFTER the new-page command in SAPSCRIPt?? &lt;/P&gt;&lt;P&gt;also, is ur cursor really goin within the IF condition, ie in the NEW-PAGE command?? pl chk that carefully...&lt;/P&gt;&lt;P&gt;apart from that i dont c any reason why this is happening..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 09:31:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem/m-p/1365892#M181000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T09:31:03Z</dc:date>
    </item>
  </channel>
</rss>

