| Home • Tips • Tutorials • Forums • Certification Q's • Interview Q's • Jobs • Testimonials • Contact Us | ||
Document Categories:
What's New?
Contribute?Sample SpecsWhat's Hot? |
SAP® Business Workflow TutorialTriggering Events ProgrammaticallyBy Suresh Kumar Parvathaneni Purpose: This document details the procedure in triggering the business object
events programmatically. Pre-requisites:
It is assumed that the reader of this document is aware of the business object
concepts and good in ABAP. Procedure: 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.
Double-clicking on
the key field parameter gives you technical information of the field.
In order to
trigger an event programmatically, we would use the function module
SWE_EVENT_CREATE. 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.
Press ‘Switch
On”. Now execute the
program developed earlier. Now switch-off the event trace using the same
transaction SWELS. 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 Home • Contribute • About Us • Privacy • Terms Of Use • Disclaimer • Safe • Companies: Advertise on SAPTechnical.COM | Post Job • Contact Us ©2006-2007 SAPTechnical.COM. All rights reserved. All
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 |
||