<?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 Event blocks in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-blocks/m-p/2853939#M668880</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sapians ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually i am bit confused about the concept of events .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so cn u please tell me ,What is the difference between event and processing block?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;consider an example of report program .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; START-OF-SELECTION .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT MAX( prescrpt_id ) FROM zprescription INTO max_prescrption .&lt;/P&gt;&lt;P&gt;SELECT * FROM zprescription INTO TABLE itab_pr&lt;/P&gt;&lt;P&gt;WHERE prescrpt_id = max_prescrption .&lt;/P&gt;&lt;P&gt;READ TABLE itab_pr INTO WA_Pr WITH  KEY&lt;/P&gt;&lt;P&gt;prescrpt_id = max_prescrption .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if   WA_Pr-medicine1 = ENT6 AND&lt;/P&gt;&lt;P&gt;     WA_Pr-medicine2 = ENT7 AND&lt;/P&gt;&lt;P&gt;     WA_Pr-medicine3 = ENT8 AND&lt;/P&gt;&lt;P&gt;     WA_Pr-medicine4 = ENT9 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     WRITE : 'YOUR DATA SAVED ALREADY .'.&lt;/P&gt;&lt;P&gt;     flag2 = 1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is flag value is set first or first it calls the list processor and print the 'write/'  statement .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i have a link of events ,so i can go thoroughly through this topic ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With warm regards &lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2007 14:47:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-01T14:47:25Z</dc:date>
    <item>
      <title>Event blocks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-blocks/m-p/2853939#M668880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sapians ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually i am bit confused about the concept of events .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so cn u please tell me ,What is the difference between event and processing block?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;consider an example of report program .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; START-OF-SELECTION .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT MAX( prescrpt_id ) FROM zprescription INTO max_prescrption .&lt;/P&gt;&lt;P&gt;SELECT * FROM zprescription INTO TABLE itab_pr&lt;/P&gt;&lt;P&gt;WHERE prescrpt_id = max_prescrption .&lt;/P&gt;&lt;P&gt;READ TABLE itab_pr INTO WA_Pr WITH  KEY&lt;/P&gt;&lt;P&gt;prescrpt_id = max_prescrption .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if   WA_Pr-medicine1 = ENT6 AND&lt;/P&gt;&lt;P&gt;     WA_Pr-medicine2 = ENT7 AND&lt;/P&gt;&lt;P&gt;     WA_Pr-medicine3 = ENT8 AND&lt;/P&gt;&lt;P&gt;     WA_Pr-medicine4 = ENT9 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     WRITE : 'YOUR DATA SAVED ALREADY .'.&lt;/P&gt;&lt;P&gt;     flag2 = 1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is flag value is set first or first it calls the list processor and print the 'write/'  statement .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i have a link of events ,so i can go thoroughly through this topic ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With warm regards &lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 14:47:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/event-blocks/m-p/2853939#M668880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T14:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Event blocks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-blocks/m-p/2853940#M668881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Tarun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;events are sun in a specific order, some people will surely copy the order here... What you ask here is slightly different. It happens so, that the system processes the WRITE statement and the list is processed in the background during program run (you can have a look at it in debugger), than the system processes the flag2 = 1. line. After the program finished, you'll get the complete list, which was built up during program run (remember you could have much more WRITE statements).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 14:51:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/event-blocks/m-p/2853940#M668881</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-10-01T14:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Event blocks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-blocks/m-p/2853941#M668882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sir &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your answer solved my problem compeletely ,actually i saw the same during debugging .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i want to ask that all my write statement Top-of-page and end-of-page are passed to background program or ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if we write something like that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE / 'power' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   top-of-PAGE .&lt;/P&gt;&lt;P&gt;   WRITE / ent1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; INITIALIZATION .&lt;/P&gt;&lt;P&gt;   ent1 = '009'  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION .&lt;/P&gt;&lt;P&gt;   select * INTO TABLE itab FROM zemp&lt;/P&gt;&lt;P&gt;     WHERE Emp_id = ENT1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; end-OF-SELECTION .&lt;/P&gt;&lt;P&gt;ent1 = '008' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output comes like &lt;/P&gt;&lt;P&gt;009 &lt;/P&gt;&lt;P&gt;power &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but according to event details &lt;/P&gt;&lt;P&gt;it must be like that&lt;/P&gt;&lt;P&gt;008 &lt;/P&gt;&lt;P&gt;power&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sir you are really too good so can i have your email_id ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With warm regards&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 15:19:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/event-blocks/m-p/2853941#M668882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T15:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Event blocks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-blocks/m-p/2853942#M668883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is a predefined order of the event blocks, that means it does not matter in which order do you write them in your program, SAP will do in the right order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The order you can find in this thread:&lt;/P&gt;&lt;P&gt;&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="2672722"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 15:37:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/event-blocks/m-p/2853942#M668883</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-10-01T15:37:38Z</dc:date>
    </item>
  </channel>
</rss>

