I need to have a custom event on a standard table. The event should get triggered whenever there is any new entry added to standard table or changes made in table. Also inside that custom event I need to insert some custom code.
NOTE: Not sure if we can add custom logic in case of standard event for the standard table. My case I need to check for custom events for standard table. Kindly also suggest if custom event for standard is recommended in case there are no standard event.
Standard table: AGR_USERS
My Inputs
I have created one custom event by creating sub object of standard event BUS2032 (sales order). I have written custom logic to update a custom table inside custom created event on change (to update custom table). When I am creating sales order no entry is inserted in custom table.
Steps I followed:
- Transaction code
SWO1: created custom subtype ofBUS2032. - Tcode: created custom event for custom created subtype of
BUS2032in step 1. - Tcode
SWEC: created new entry for events of change document with custom subtype and event, also selected create radio button. SE24: created one custom class in which in event inserting entry in custom table.SWE2: added details as shown in image.
Now when I create Sales order using VA01, no entry is inserted in custom table.
Kindly suggest