<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi everyone,<BR>
&nbsp;<BR>
I am trying to raise an event for the ABAP class "<SPAN><SPAN class=L1S33>CL_HRASR00_WF_PROCESS_OBJECT" and the event "TRIGGERED", but I only get an ABAP error message.</SPAN></SPAN><BR>
<SPAN><SPAN class=L1S33></SPAN></SPAN>&nbsp;<BR>
<SPAN><SPAN class=L1S33>I am using the same code as Jocelyn in her blog:</SPAN></SPAN><BR>
<SPAN><SPAN class=L1S33></SPAN></SPAN>&nbsp;<BR>
<SPAN><SPAN class=L1S33><A href="https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/4089">https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/4089</A></SPAN></SPAN><BR>
<SPAN><SPAN class=L1S33></SPAN></SPAN>&nbsp;<BR>
<SPAN></SPAN>&nbsp;<BR>
<SPAN>All the parameters has been defined and set according to the import parameters in the method.</SPAN><BR>
<SPAN></SPAN>&nbsp;<BR>
&nbsp;
<STYLE type=text/css>
SPAN {
font-family: "Courier New";
font-size: 10pt;
color: #000000;
background: #FFFFFF;
}
.L1S52 {
color: #0000FF;
}
</STYLE>
<SPAN>&nbsp;&nbsp;<SPAN class=L1S52>Try</SPAN>.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=L1S52>CALL</SPAN>&nbsp;<SPAN class=L1S52>METHOD</SPAN>&nbsp;CL_SWF_EVT_EVENT=&gt;RAISE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=L1S52>EXPORTING</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;im_objcateg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;cl_swf_evt_event=&gt;mc_objcateg_cl<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;im_objtype&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;lv_objtype<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;im_event&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;lv_event<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;im_objkey&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;lv_objkey<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;im_event_container&nbsp;=&nbsp;lr_event_parameters<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.<BR>&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=L1S52>CATCH</SPAN>&nbsp;cx_swf_evt_invalid_objtype&nbsp;.<BR>&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=L1S52>CATCH</SPAN>&nbsp;cx_swf_evt_invalid_event&nbsp;.<BR>&nbsp;&nbsp;<SPAN class=L1S52>ENDTRY</SPAN>.<BR><BR>&nbsp;&nbsp;<SPAN class=L1S52>COMMIT</SPAN>&nbsp;<SPAN class=L1S52>WORK</SPAN>.</SPAN> <BR>
&nbsp;<BR>
&nbsp;<BR>
When I debug in SE80, I can see that the system is failing in the following code:<BR>
&nbsp;<BR>
Program: SAPLHRASR00_WF_UTILITIES<BR>
Function: HR_ASR_CHECK_EVENT<BR>
&nbsp;<BR>
Code:<BR>
&nbsp;<BR>
<!--StartFragment -->&nbsp;
<STYLE type=text/css>
SPAN {
font-family: "Courier New";
font-size: 10pt;
color: #000000;
background: #FFFFFF;
}
.L1S31 {
font-style: italic;
color: #808080;
}
.L1S52 {
color: #0000FF;
}
</STYLE>
<SPAN><SPAN class=L1S31>*&nbsp;Get&nbsp;instance&nbsp;for&nbsp;message&nbsp;handler</SPAN><BR>&nbsp;&nbsp;<SPAN class=L1S52>CREATE</SPAN>&nbsp;OBJECT&nbsp;message_list.<BR>&nbsp;&nbsp;process_object_guid&nbsp;=&nbsp;sender-instid.<BR><BR><SPAN class=L1S31>*&nbsp;Get&nbsp;instance&nbsp;for&nbsp;process&nbsp;object&nbsp;runtime</SPAN><BR>&nbsp;&nbsp;<SPAN class=L1S52>CALL</SPAN>&nbsp;<SPAN class=L1S52>METHOD</SPAN>&nbsp;cl_hrasr00_process_runtime=&gt;get_instance<BR>&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=L1S52>EXPORTING</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pobj_guid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;process_object_guid<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;message_handler&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;message_list<BR>&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=L1S52>IMPORTING</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;instance_pobj_runtime&nbsp;=&nbsp;process_object_runtime<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;is_ok&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;is_ok.<BR><FONT style="BACKGROUND-COLOR: #ffff00">&nbsp;&nbsp;<SPAN class=L1S52><FONT style="BACKGROUND-COLOR: #ffff00">ASSERT</FONT></SPAN>&nbsp;is_ok&nbsp;=&nbsp;if_hrasr00_process_constants=&gt;true.</FONT><BR>&nbsp;&nbsp;<SPAN class=L1S52>ASSERT</SPAN>&nbsp;process_object_runtime&nbsp;<SPAN class=L1S52>IS</SPAN>&nbsp;<SPAN class=L1S52>NOT</SPAN>&nbsp;<SPAN class=L1S52>INITIAL</SPAN>.</SPAN> <BR>
&nbsp;<BR>
The system is failing in the marked line.<BR>
&nbsp;<BR>
Error message:<BR>
"Runtime Error: ASSERTION_FAILED"<BR>
&nbsp;<BR>
"Short text: the ASSERT condition has been violated".<BR>
&nbsp;<BR>
I would gladly appreciate any input on this matter.<BR>
&nbsp;<BR>
Thanks in advance.<BR>
&nbsp;<BR>
Best regards,<BR>
&nbsp;<BR>
Tor<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR><br /><hr />check out the rest of the Windows Live™.
More than mail–Windows Live™ goes way beyond your inbox.
 <a href='http://www.microsoft.com/windows/windowslive/' target='_new'>More than messages</a></body>
</html>