|Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us|
SAP® Business Workflow Tutorial
Triggering Events Programmatically
By Suresh Kumar Parvathaneni
Purpose: This document details the procedure in triggering the business object
It is assumed that the reader of this document is aware of the business object
concepts and good in ABAP.
In this document,
we would take an example of the business object BUS1001006 (Material) and the
event CREATED. In general, this event is triggered whenever a material is
created using a standard procedure like MM01 or any others. Now we would trigger
this event from our own programs.
Following are the
screenshots of the business object BUS1001006 and the event CREATED. Go to
transaction SWO1 for more information of the business object.
the key field parameter gives you technical information of the field.
In order to
trigger an event programmatically, we would use the function module
Following is the
sample code to trigger the events programmatically:
In order to test
whether the event is getting triggered or not, we can make use of Event Trace.
Switch on the event trace using the transaction SWELS.
Now execute the
program developed earlier. Now switch-off the event trace using the same
Now go to
transaction SWEL. Here you can list out the events triggered in the particular
period of time. Here is the event-trace list:
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM
©2006-2007 SAPTechnical.COM. All rights reserved.
product names are trademarks of their respective companies. SAPTechnical.COM
is in no way affiliated with SAP AG.
Graphic Design by Round the Bend Wizards