Custom event not getting triggered for standard table in SAP

569 views Asked by At

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:

  1. Transaction code SWO1: created custom subtype of BUS2032.
  2. Tcode: created custom event for custom created subtype of BUS2032 in step 1.
  3. Tcode SWEC: created new entry for events of change document with custom subtype and event, also selected create radio button.
  4. SE24: created one custom class in which in event inserting entry in custom table.
  5. SWE2: added details as shown in image.

Now when I create Sales order using VA01, no entry is inserted in custom table.

Kindly suggest

0

There are 0 answers