‎2008 Oct 25 8:55 PM
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
‎2008 Oct 25 9:06 PM
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
‎2008 Oct 25 9:06 PM
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
‎2008 Oct 25 9:50 PM
HI Uwe ,
Thanks !
So there is e.g. like events in Abap OO when something Change in the system (data change) or...?
Regards
‎2008 Oct 27 4:35 AM
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
‎2008 Oct 27 7:36 AM
Hi Uwe,
Thanks i understand ,
I want to learn about Abap events in OO ,
maybe u have simple example how to do that?
Regards
‎2008 Oct 27 7:38 AM
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