<?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: if write stat. write in initialization in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-write-stat-write-in-initialization/m-p/2292103#M500172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just debug the following program, by putting a breakpoint in the first write statement in the initialization. You will understand the logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  Z_82235_TEST4                           .

parameter: p_param type c.

initialization.
  WRITE: / 'initialization 1'.
  WRITE: / 'initialization 2'.
  WRITE: / 'initialization 3'.

START-OF-SELECTION.
  WRITE: / 'line 1'.
  WRITE: / 'line 2'.
  WRITE: / 'line 3'.

TOP-OF-PAGE.
  WRITE: / 'Heading'.
  ULINE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: If you do not have any selection screen then system will autometically embed a start of selection in the first write statement. So in the following program the top_of_page will be called once and you will get all the write statement in the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  Z_82235_TEST4                           .

initialization.
  WRITE: / 'initialization 1'.
  WRITE: / 'initialization 2'.
  WRITE: / 'initialization 3'.

START-OF-SELECTION.
  WRITE: / 'line 1'.
  WRITE: / 'line 2'.
  WRITE: / 'line 3'.

TOP-OF-PAGE.
  WRITE: / 'Heading'.
  ULINE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 May 2007 14:09:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-18T14:09:29Z</dc:date>
    <item>
      <title>if write stat. write in initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-write-stat-write-in-initialization/m-p/2292097#M500166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;   my doubt is" if WRITE stata.  write in initialization Event, when top-of-page can be trigger."&lt;/P&gt;&lt;P&gt;  1) first display the selection screen or list&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 13:32:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-write-stat-write-in-initialization/m-p/2292097#M500166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T13:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: if write stat. write in initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-write-stat-write-in-initialization/m-p/2292098#M500167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Top-of-page will trigger when you have start-of-select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection should contains ateleast one write statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points if it is helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 13:34:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-write-stat-write-in-initialization/m-p/2292098#M500167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T13:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: if write stat. write in initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-write-stat-write-in-initialization/m-p/2292099#M500168</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;You should write the statement under TOP-OF-PAGE event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 13:34:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-write-stat-write-in-initialization/m-p/2292099#M500168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T13:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: if write stat. write in initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-write-stat-write-in-initialization/m-p/2292100#M500169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;What ever you write in Initialization event that doesn't effect on output&lt;/P&gt;&lt;P&gt;that doesn't trigger top of page,&amp;lt;b&amp;gt; it will trigger only selection screen.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;initialization is processed before selection screen is displayed.&lt;/P&gt;&lt;P&gt;once the selection screen is displayed then if you write some write statement in top of page or start of selection the output will come.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 13:35:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-write-stat-write-in-initialization/m-p/2292100#M500169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T13:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: if write stat. write in initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-write-stat-write-in-initialization/m-p/2292101#M500170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case "Top_of_page" will be trigger twice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. First time, in the write statement in initialization. Though will not see any effect of it in your program. "Top_Of_Page" will not displayed in output.&lt;/P&gt;&lt;P&gt;2. Second time, the first write statement after 'Start_Of_Selection". Tou will see the effect in your program. "Top_Of_Page" will displayed in output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can check this by writting a sample program and debugging that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 13:36:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-write-stat-write-in-initialization/m-p/2292101#M500170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T13:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: if write stat. write in initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-write-stat-write-in-initialization/m-p/2292102#M500171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as  per the SAP  Events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the out  list  display  will be  triggered    by   top-of-page  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you   use  write statement   NOT only in   initalise   , uyou try in the     other  events  also    like       GET event   or   selection-screen end .  then  also  you will get input .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; then it not  an even following .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so , what even write  statments atre there  it  will give  you in the output  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it  means  after the TOP-OF-PAGE event  only   the write  state   will be   executed  in the  sap  execute  program . ........even if no top-of-page then  also  it will give you output   because  , the    sap  execute  program  will  be take  care of its   sequence ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 13:44:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-write-stat-write-in-initialization/m-p/2292102#M500171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T13:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: if write stat. write in initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-write-stat-write-in-initialization/m-p/2292103#M500172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just debug the following program, by putting a breakpoint in the first write statement in the initialization. You will understand the logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  Z_82235_TEST4                           .

parameter: p_param type c.

initialization.
  WRITE: / 'initialization 1'.
  WRITE: / 'initialization 2'.
  WRITE: / 'initialization 3'.

START-OF-SELECTION.
  WRITE: / 'line 1'.
  WRITE: / 'line 2'.
  WRITE: / 'line 3'.

TOP-OF-PAGE.
  WRITE: / 'Heading'.
  ULINE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: If you do not have any selection screen then system will autometically embed a start of selection in the first write statement. So in the following program the top_of_page will be called once and you will get all the write statement in the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  Z_82235_TEST4                           .

initialization.
  WRITE: / 'initialization 1'.
  WRITE: / 'initialization 2'.
  WRITE: / 'initialization 3'.

START-OF-SELECTION.
  WRITE: / 'line 1'.
  WRITE: / 'line 2'.
  WRITE: / 'line 3'.

TOP-OF-PAGE.
  WRITE: / 'Heading'.
  ULINE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 14:09:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-write-stat-write-in-initialization/m-p/2292103#M500172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T14:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: if write stat. write in initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-write-stat-write-in-initialization/m-p/2292104#M500173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;when write statment appears in initialization then Top of page event in called.and after that write statment executes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after that when 1st write statment execute in start of selection  then again Top of page event will be trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but write statment in initialization output will not be appear on output list becouse of  selection screen .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 12:08:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-write-stat-write-in-initialization/m-p/2292104#M500173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T12:08:38Z</dc:date>
    </item>
  </channel>
</rss>

