ABSENCE.DELETED - Two new event parameters needed

Dart, Jocelyn jocelyn.dart at sap.com
Mon Nov 5 18:06:19 EST 2001


Hi Michel,
It's not enough to define the parameters against your event and then
try to receive them.  You actually have to send them when the event
is raised, i.e. you need to change the code where the actual event is
raised to fill and send your new parameters.
 
Normally only minimal details are sent for an event such as the
object reference and the event creator.  Anything else you have
to add yourself programatically to the raising of the event.
 
As you are dealing with HR events your best bet is to have a look
in tables T779W and T779X - and replace/add an HR event rules
function module (HR_EVENT_RULES*) with your own function module
that raises the event with your extra parameters.
The HR event rules function modules allow you to access the
before and after image, and decide which event is to be raised.
The actual event container is then built by function module
RH_EVENT_CONTAINER_BUILD.   You may need to modify this to
fill in your new event parameters.   Note that this is a modification
so take great care - especially as this routine builds event containers
for all HR events.
 
My comments are based on a 4.6x system so if you are in a lower
release it should still work that way but double check it.
 
Regards,
        Jocelyn Dart
Consultant (EBP, BBP, Ecommerce, Internet Transaction Server, Workflow)
SAP Australia
Email jocelyn.dart at sap.com <mailto:jocelyn.dart at sap.com>
Tel: +61 412 390 267
Fax: +61 2 9935 4880
 
-----Original Message-----
From: Michel Laviolette [mailto:michel_laviolette at hotmail.com]
Sent: Tuesday, 6 November 2001 8:02 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: ABSENCE.DELETED - Two new event parameters needed
 
 
Wfers,
I can t seam to figure out the intricacies behind setting up additional
event container parameters. Here s the scenario:
 
Goal:
I m trying to capture the BEGUZ and ENDUZ values on the ABSENCE.DELETED
event. The container element  _EVT_OBJECT is blank as the record is nuked by
the time the event is published. I was able to parse out the _EVT_OBJKEY
values... all but BEGUZ and ENDUZ are there.
 
Agonizing route I've taken:
The ABSENCE object is delegated to my customer object ZABSENCE. I redefined
the DELETED event and added two parameters (StartTime   multiline datatype
reference for field PA2001-beguz, EndTime   multiline datatype reference for
field PA2001-enduz). I also created two matching database field attributes
(StartTime & EndTime). I created an event linkage entry for ABSENCE.DELETED
which emails me the content of the event container.
 
Test script:
Generate the object. Delete an absence record. The event is successfully
created and the email is sent. I can see all but the two new parameters
described above
 
Questions:
Am I on the right track? Do I need to write some code behind the two new
parameters? My interpretation of the documentation on the subject is that
the multiline parameters should hold both the old and the new values (index
0001 & 0002)? Is this also applicable on record deletions?
 
Please let me know if you require further details to analyse this problem.
 
Any help would be much appreciated.
 
Michel Laviolette
Workflow Developer
Hull, Quebec Canada
 
 
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
 


More information about the SAP-WUG mailing list