Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Need event example

Former Member
0 Likes
757

Hi ,

i learn about event and i want an example how to do it in abap oo,

e.g. trigger event when sales order is created or something else,

maybe someone can help ?

Regards

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
730

Hello Ricardo

Business objects like sales order (BUS2032, transaction SW01) can have events. However, these are not ABAP-OO related events (like a double-click event within a grid/tree control) but are workflow related events.

Thus, you have to check the available workflow documentation how to trigger and handle such events.

Regards

Uwe

5 REPLIES 5
Read only

uwe_schieferstein
Active Contributor
0 Likes
731

Hello Ricardo

Business objects like sales order (BUS2032, transaction SW01) can have events. However, these are not ABAP-OO related events (like a double-click event within a grid/tree control) but are workflow related events.

Thus, you have to check the available workflow documentation how to trigger and handle such events.

Regards

Uwe

Read only

0 Likes
730

HI Uwe ,

Thanks !

So there is e.g. like events in Abap OO when something Change in the system (data change) or...?

Regards

Read only

0 Likes
730

Hello Ricardo

We can different "flavours" of events in SAP (examples see below):

(1) Workflow Events

You define (or use an existing) workflow for approval of purchase requisitions above a certain threshold (proofreading by a second set of eyes). When a purchase requisition is above this level it automatically triggers a workflow which generated a workitem in the approver's inbox (transaction SO01).

(2) Message Events (transaction NACE)

We have implemented the following event: As soon as the warehouse confirms that a delivery is ready to be shipped to the customer (message received via inbound IDoc) this triggers automatically triggers the ASN (= Advanced Shipping Notification; outbound DESADV IDoc) for the customer.

(3) Change Pointer

You can define for various SAP objects (e.g. material master data) so-called changed pointer meaning that if certain changes occurs in a material master this triggers the generation of an outbound IDoc (e.g. to transmit these changes to another SAP system).

Further readings (not a comprehensive list):

[Event Generation|http://help.sap.com/erp2005_ehp_03/helpdata/EN/04/928c6246f311d189470000e829fbbd/content.htm]

[Using Events|http://help.sap.com/erp2005_ehp_03/helpdata/EN/c5/e4aa8c453d11d189430000e829fbbd/content.htm]

[Important Transaction Codes|http://help.sap.com/erp2005_ehp_03/helpdata/EN/9b/572614f6ca11d1952e0000e82dec10/content.htm]

Please note that this list of event types is likely to be incomplete.

Regards

Uwe

Read only

0 Likes
730

Hi Uwe,

Thanks i understand ,

I want to learn about Abap events in OO ,

maybe u have simple example how to do that?

Regards

Read only

0 Likes
730

Hello Ricardo

If you mean events raised by ABAP classes then you may search the SDN forums for my sample reports (all of them starting with ZUS_SDN_... ).

They are simplified versions dealing with different kinds of event handling of controls (ALV, Tree).

Regards

Uwe