<?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: regardin the code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regardin-the-code/m-p/2039666#M419286</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;1. top-of-page.&lt;/P&gt;&lt;P&gt;write: / '******&lt;STRONG&gt;rajesh&lt;/STRONG&gt;*****'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. write: / 'rajesh'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.new-page.&lt;/P&gt;&lt;P&gt;write: / 'rajesh***'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Mar 2007 06:09:05 GMT</pubDate>
    <dc:creator>former_member194669</dc:creator>
    <dc:date>2007-03-10T06:09:05Z</dc:date>
    <item>
      <title>regardin the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regardin-the-code/m-p/2039662#M419282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;write: / 'rajesh'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        new-page.&lt;/P&gt;&lt;P&gt;        write: / 'rajesh***'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;top-of-page.&lt;/P&gt;&lt;P&gt; write: / '******&lt;STRONG&gt;rajesh&lt;/STRONG&gt;*****'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; can u tell me which of the form it will trigger &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   can u give me the seqence clearly step by step plz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2007 06:03:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regardin-the-code/m-p/2039662#M419282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-10T06:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: regardin the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regardin-the-code/m-p/2039663#M419283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;'******&lt;STRONG&gt;rajesh&lt;/STRONG&gt;*****'.&lt;/P&gt;&lt;P&gt;'rajesh'.&lt;/P&gt;&lt;P&gt;'******&lt;STRONG&gt;rajesh&lt;/STRONG&gt;*****'.&lt;/P&gt;&lt;P&gt;'rajesh***'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;P&gt;SHIBA DUTTA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2007 06:05:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regardin-the-code/m-p/2039663#M419283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-10T06:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: regardin the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regardin-the-code/m-p/2039664#M419284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;******&lt;STRONG&gt;rajesh&lt;/STRONG&gt;*******&lt;/P&gt;&lt;P&gt;rajesh&lt;/P&gt;&lt;P&gt;******&lt;STRONG&gt;rajesh&lt;/STRONG&gt;*******&lt;/P&gt;&lt;P&gt;rajesh*******&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check it out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2007 06:08:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regardin-the-code/m-p/2039664#M419284</guid>
      <dc:creator>SantoshKallem</dc:creator>
      <dc:date>2007-03-10T06:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: regardin the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regardin-the-code/m-p/2039665#M419285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SORY I WAS NOT CLEAR IN MY PREV ANSWER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIRST WRITE STATEMENT TRIGGER TOP-OF-PAGE SO IT IS PRINTING TOP-OF-PAGE THEN IT WILL WRITE ******&lt;STRONG&gt;rajesh&lt;/STRONG&gt;***** THEN IT WILL AGAIN COME BACK TO THE FIRST WRITE STATEMENT AND WRITE 'rajesh***. AGAIN NEW-PAGE TRIGGER TOP-OF-PAGE  AND WRITE ******&lt;STRONG&gt;rajesh&lt;/STRONG&gt;*****  AND THEN IT WILL WRITE AFTER NEW-PAGE. 'rajesh***&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;P&gt;SHIBA DUTTA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2007 06:08:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regardin-the-code/m-p/2039665#M419285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-10T06:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: regardin the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regardin-the-code/m-p/2039666#M419286</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;1. top-of-page.&lt;/P&gt;&lt;P&gt;write: / '******&lt;STRONG&gt;rajesh&lt;/STRONG&gt;*****'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. write: / 'rajesh'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.new-page.&lt;/P&gt;&lt;P&gt;write: / 'rajesh***'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2007 06:09:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regardin-the-code/m-p/2039666#M419286</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-03-10T06:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: regardin the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regardin-the-code/m-p/2039667#M419287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The ans given by Shiba is write...&lt;/P&gt;&lt;P&gt;1. it will trigger Top-of-page event&lt;/P&gt;&lt;P&gt;2. it will display ur write: / 'rajesh'. since this statement is present for start-of-selection event&lt;/P&gt;&lt;P&gt;3. since u have given the event as New-page so again the top-of-page event is triggered &amp;amp; then ur write: / 'rajesh***'. statement is executed &amp;amp; displayed in the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if this has helped then pls give the points to this ans..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2007 06:20:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regardin-the-code/m-p/2039667#M419287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-10T06:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: regardin the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regardin-the-code/m-p/2039668#M419288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;  first the top of page evnt gets triggered irrespective of the position it has been declaredtop-of-page.&lt;/P&gt;&lt;P&gt;write: / '******&lt;STRONG&gt;rajesh&lt;/STRONG&gt;*****'.&lt;/P&gt;&lt;P&gt; and the statemment rajesh write: / 'rajesh'.&lt;/P&gt;&lt;P&gt;and finally the new page evnt gets triggered and the statemnt is written to the list&lt;/P&gt;&lt;P&gt;new-page.&lt;/P&gt;&lt;P&gt;write: / 'rajesh***'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;kiran kumar k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2007 07:21:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regardin-the-code/m-p/2039668#M419288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-10T07:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: regardin the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regardin-the-code/m-p/2039669#M419289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rajesh....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When ever the first write statement &lt;/P&gt;&lt;P&gt;	(WRITE: / 'rajesh'.) &lt;/P&gt;&lt;P&gt;is encountered execution of that write will be suspended and the control goes to top-of-page event and the write statement in that event &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(  WRITE: / '******&lt;STRONG&gt;rajesh&lt;/STRONG&gt;*****'.) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will be executed, after that the write statement &lt;/P&gt;&lt;P&gt;  	(WRITE: / 'rajesh'.) will be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now new-line is executed so it will cause a page break.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the next output statements will be printed in the next page. but when the next write statement &lt;/P&gt;&lt;P&gt;(WRITE: / 'rajesh***'.)&lt;/P&gt;&lt;P&gt;is encountered, the control goes to the top-of-page event because it is the first output statement to be executed in that page and the top-of-page will be executed after that the statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: / 'rajesh***'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the output consists of 2 pages sa below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Page1:&lt;/P&gt;&lt;P&gt;******&lt;STRONG&gt;rajesh&lt;/STRONG&gt;*****&lt;/P&gt;&lt;P&gt;rajesh&lt;/P&gt;&lt;P&gt;page2:&lt;/P&gt;&lt;P&gt;******&lt;STRONG&gt;rajesh&lt;/STRONG&gt;*****&lt;/P&gt;&lt;P&gt;rajesh***&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2007 07:37:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regardin-the-code/m-p/2039669#M419289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-10T07:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: regardin the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regardin-the-code/m-p/2039670#M419290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;write: / 'rajesh'.


new-page.
write: / 'rajesh***'.

top-of-page.
write: / '*******rajesh******'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;For this ..you need to understand new-page concept here thats the main key for 4 write statements in the o/p.

during the compilation  by default before the first write statement is triggered 
TOP-OF-PAGE  is triggered .

1.   '*******rajesh******'.

2. since the default line count is 33-36 in the report statement start-of-selection is
triggered and write statement is triggered which is 

'rajesh'

3. Now u are forcing the new-page statement so the system now treats this command as to be print in the new page 

so for this again u have top-of-page for the new page this is important 

&amp;lt;b&amp;gt;so again top-of-page is triggered before the write of of new -page .&amp;lt;/b&amp;gt;

once again top-of-page is triggered .
'*******rajesh******'.

4 . followed by 
'rajesh***'.

new page write statement .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;vijay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have total 4 o/ps .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*******rajesh******  
rajesh               
          
           
*******rajesh******    " ---&amp;gt; repeated for new page .
rajesh***           &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2007 07:51:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regardin-the-code/m-p/2039670#M419290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-10T07:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: regardin the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regardin-the-code/m-p/2039671#M419291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2007 14:26:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regardin-the-code/m-p/2039671#M419291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-10T14:26:11Z</dc:date>
    </item>
  </channel>
</rss>

