<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>
<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> <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> <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> <BR>
<SPAN></SPAN> <BR>
<SPAN>All the parameters has been defined and set according to the import parameters in the method.</SPAN><BR>
<SPAN></SPAN> <BR>
<STYLE type=text/css>
SPAN {
font-family: "Courier New";
font-size: 10pt;
color: #000000;
background: #FFFFFF;
}
.L1S52 {
color: #0000FF;
}
</STYLE>
<SPAN> <SPAN class=L1S52>Try</SPAN>.<BR> <SPAN class=L1S52>CALL</SPAN> <SPAN class=L1S52>METHOD</SPAN> CL_SWF_EVT_EVENT=>RAISE<BR> <SPAN class=L1S52>EXPORTING</SPAN><BR> im_objcateg = cl_swf_evt_event=>mc_objcateg_cl<BR> im_objtype = lv_objtype<BR> im_event = lv_event<BR> im_objkey = lv_objkey<BR> im_event_container = lr_event_parameters<BR> .<BR> <SPAN class=L1S52>CATCH</SPAN> cx_swf_evt_invalid_objtype .<BR> <SPAN class=L1S52>CATCH</SPAN> cx_swf_evt_invalid_event .<BR> <SPAN class=L1S52>ENDTRY</SPAN>.<BR><BR> <SPAN class=L1S52>COMMIT</SPAN> <SPAN class=L1S52>WORK</SPAN>.</SPAN> <BR>
<BR>
<BR>
When I debug in SE80, I can see that the system is failing in the following code:<BR>
<BR>
Program: SAPLHRASR00_WF_UTILITIES<BR>
Function: HR_ASR_CHECK_EVENT<BR>
<BR>
Code:<BR>
<BR>
<!--StartFragment -->
<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>* Get instance for message handler</SPAN><BR> <SPAN class=L1S52>CREATE</SPAN> OBJECT message_list.<BR> process_object_guid = sender-instid.<BR><BR><SPAN class=L1S31>* Get instance for process object runtime</SPAN><BR> <SPAN class=L1S52>CALL</SPAN> <SPAN class=L1S52>METHOD</SPAN> cl_hrasr00_process_runtime=>get_instance<BR> <SPAN class=L1S52>EXPORTING</SPAN><BR> pobj_guid = process_object_guid<BR> message_handler = message_list<BR> <SPAN class=L1S52>IMPORTING</SPAN><BR> instance_pobj_runtime = process_object_runtime<BR> is_ok = is_ok.<BR><FONT style="BACKGROUND-COLOR: #ffff00"> <SPAN class=L1S52><FONT style="BACKGROUND-COLOR: #ffff00">ASSERT</FONT></SPAN> is_ok = if_hrasr00_process_constants=>true.</FONT><BR> <SPAN class=L1S52>ASSERT</SPAN> process_object_runtime <SPAN class=L1S52>IS</SPAN> <SPAN class=L1S52>NOT</SPAN> <SPAN class=L1S52>INITIAL</SPAN>.</SPAN> <BR>
<BR>
The system is failing in the marked line.<BR>
<BR>
Error message:<BR>
"Runtime Error: ASSERTION_FAILED"<BR>
<BR>
"Short text: the ASSERT condition has been violated".<BR>
<BR>
I would gladly appreciate any input on this matter.<BR>
<BR>
Thanks in advance.<BR>
<BR>
Best regards,<BR>
<BR>
Tor<BR>
<BR>
<BR>
<BR>
<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>