<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi,<BR>
<BR>
Any time I see the word 'ASSERTION' I think of Transaction SAAB (see the help text using this as a key word).<BR>
<BR>
You might want to check that someone hasn't left on a temporary system breakpoint to force the environment to dump...<BR>
<BR>
Mike GT<BR> <BR>
<HR id=stopSpelling>
From: fallenblake@hotmail.com<BR>To: sap-wug@mit.edu<BR>Subject: Problems with raising event for ABAP class<BR>Date: Wed, 15 Jul 2009 13:36:56 +0000<BR><BR>
<STYLE>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass body.EC_hmmessage
{font-size:10pt;font-family:Verdana;}
</STYLE>
Hi everyone,<BR> <BR>I am trying to raise an event for the ABAP class "<SPAN><SPAN class=EC_L1S33>CL_HRASR00_WF_PROCESS_OBJECT" and the event "TRIGGERED", but I only get an ABAP error message.</SPAN></SPAN><BR><SPAN><SPAN class=EC_L1S33></SPAN></SPAN> <BR><SPAN><SPAN class=EC_L1S33>I am using the same code as Jocelyn in her blog:</SPAN></SPAN><BR><SPAN><SPAN class=EC_L1S33></SPAN></SPAN> <BR><SPAN><SPAN class=EC_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=EC_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>
.ExternalClass SPAN
{font-family:'Courier New';font-size:10pt;color:#000000;background:#FFFFFF;}
.ExternalClass .EC_L1S52
{color:#0000FF;}
</STYLE>
<SPAN> <SPAN class=EC_L1S52>Try</SPAN>.<BR> <SPAN class=EC_L1S52>CALL</SPAN> <SPAN class=EC_L1S52>METHOD</SPAN> CL_SWF_EVT_EVENT=>RAISE<BR> <SPAN class=EC_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=EC_L1S52>CATCH</SPAN> cx_swf_evt_invalid_objtype .<BR> <SPAN class=EC_L1S52>CATCH</SPAN> cx_swf_evt_invalid_event .<BR> <SPAN class=EC_L1S52>ENDTRY</SPAN>.<BR><BR> <SPAN class=EC_L1S52>COMMIT</SPAN> <SPAN class=EC_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>
<STYLE>
.ExternalClass SPAN
{font-family:'Courier New';font-size:10pt;color:#000000;background:#FFFFFF;}
.ExternalClass .EC_L1S31
{font-style:italic;color:#808080;}
.ExternalClass .EC_L1S52
{color:#0000FF;}
</STYLE>
<SPAN><SPAN class=EC_L1S31>* Get instance for message handler</SPAN><BR> <SPAN class=EC_L1S52>CREATE</SPAN> OBJECT message_list.<BR> process_object_guid = sender-instid.<BR><BR><SPAN class=EC_L1S31>* Get instance for process object runtime</SPAN><BR> <SPAN class=EC_L1S52>CALL</SPAN> <SPAN class=EC_L1S52>METHOD</SPAN> cl_hrasr00_process_runtime=>get_instance<BR> <SPAN class=EC_L1S52>EXPORTING</SPAN><BR> pobj_guid = process_object_guid<BR> message_handler = message_list<BR> <SPAN class=EC_L1S52>IMPORTING</SPAN><BR> instance_pobj_runtime = process_object_runtime<BR> is_ok = is_ok.<BR><FONT style="BACKGROUND-COLOR: #ffff00"> <SPAN class=EC_L1S52><FONT style="BACKGROUND-COLOR: #ffff00">ASSERT</FONT></SPAN> is_ok = if_hrasr00_process_constants=>true.</FONT><BR> <SPAN class=EC_L1S52>ASSERT</SPAN> process_object_runtime <SPAN class=EC_L1S52>IS</SPAN> <SPAN class=EC_L1S52>NOT</SPAN> <SPAN class=EC_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/">More than messages</A><br /><hr />View your Twitter and Flickr updates from one place – <a href='http://clk.atdmt.com/UKM/go/137984870/direct/01/' target='_new'>Learn more!</a></body>
</html>