Skip to Content
0
Former Member
Oct 01, 2007 at 02:47 PM

Event blocks

25 Views

Hi Sapians ,

Actually i am bit confused about the concept of events .

so cn u please tell me ,What is the difference between event and processing block?

consider an example of report program .

START-OF-SELECTION .

SELECT MAX( prescrpt_id ) FROM zprescription INTO max_prescrption .

SELECT * FROM zprescription INTO TABLE itab_pr

WHERE prescrpt_id = max_prescrption .

READ TABLE itab_pr INTO WA_Pr WITH KEY

prescrpt_id = max_prescrption .

if WA_Pr-medicine1 = ENT6 AND

WA_Pr-medicine2 = ENT7 AND

WA_Pr-medicine3 = ENT8 AND

WA_Pr-medicine4 = ENT9 .

WRITE : 'YOUR DATA SAVED ALREADY .'.

flag2 = 1 .

My question is flag value is set first or first it calls the list processor and print the 'write/' statement .

Can i have a link of events ,so i can go thoroughly through this topic ?

With warm regards

Tarun