<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi All</DIV>
<DIV><BR>The workflow gets triggered with all the container element getting properly updated if I Trigger the event from Tcode SWUE with Trigger FM Synchronously Checked. I further debugged and found this FM gets called when I select this flag.</DIV>
<DIV> CALL FUNCTION im_handler->m_linkage-recfb<BR> DESTINATION im_handler->m_linkage-rfcdest<BR> EXPORTING<BR> objtype = l_bor_objtype<BR> objkey = l_bor_objkey<BR> event = l_bor_event<BR> rectype = l_bor_rectype<BR> exceptions_allowed = 'X'<BR>
IMPORTING<BR> rec_id = l_receiver_id<BR> TABLES<BR> event_container = lt_event_container<BR> EXCEPTIONS<BR> temp_error = 1<BR> OTHERS = 99. " catch all exceptions</DIV>
<DIV>When I Uncheck this Flag this FM gets called in background.</DIV>
<DIV> CALL FUNCTION im_handler->m_linkage-recfb<BR> IN BACKGROUND TASK<BR> AS SEPARATE UNIT<BR> DESTINATION im_handler->m_linkage-rfcdest<BR> EXPORTING<BR> objtype = l_bor_objtype<BR> objkey = l_bor_objkey<BR>
event = l_bor_event<BR> rectype = l_bor_rectype<BR> exceptions_allowed = space<BR> TABLES<BR> event_container = lt_event_container.</DIV>
<DIV> CALL FUNCTION 'ID_OF_BACKGROUNDTASK'<BR> IMPORTING<BR> tid = l_trfc_id.</DIV>
<DIV>When we trigger this event synchronously it gets triggered Under the user Id who runs SWUE tcode. For not synchronous it gets triggered with WF-BATCH. WF-BATCH has SAP_ALL and SAP_NEW Authorization. The workflow gets triggered(for not synchronous) after sometime without the container element getting populated after giving a RFC Status as *System overloaded, repeat immediately by batch*. When i Trigger the event synchronously we have no RFC Status.In standard event gets triggered through TRFC and not through synchronous.<BR>Can you please throw some light on what is the issue.<BR><BR>Thanks<BR><BR>Arghadip Kar<BR><BR>SAP Workflow Expert<BR><BR>IBM INDIA</DIV></td></tr></table><br>