Definition of an Event Source |
Scroll Previous Topic Top Next Topic More |
An event source is one table that can consist of various tables from the transform phase like data views or source tables that are joined together to serve as a single source from which one or more events can be extracted. Some events are quite similar referring to their data origin, so they might originate from the same event source. But other events might come from rather different data structures so you probably need to create various event sources.
Continuing with the previous example, after the tables RSEG, CDHDR and CDPOS are connected by keys the CaseID should be built from the RSEG table:
•CaseID: BELNR & '_' & MANDT & '_' & BUKRS & '_' & GJAHR
Then, we create a "where" filter to obtain the event. We know that a new order is created because in the SAP change log tables a new row with a change indicator of "I" is created, such a row matches the following filter criteria:
•OBJECTCLASS = ‘EINKBELEG’
•TABNAME = ‘EKKO’
•FNAME = ‘KEY’
•CHNGIND = ‘I’
We also recommend including a username to automatically calculate the automation rate of your process. We use the field USERNAME from the CDHDR table as username.
Furthermore, an ActivityOriginID field can be created, which contains the SAP document causing the event, thus, the connection between the process mining log and its original tables is not lost. For this event a %CDPOS_PKEY is used, but it can be used any other field as well.