Workflow container gets updated with values when we trigger event synchronously only not for TRFC?

arghadip kar arghadipkar at yahoo.com
Tue Jan 26 14:54:49 EST 2010


Hi All

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.
 CALL FUNCTION im_handler->m_linkage-recfb
      DESTINATION im_handler->m_linkage-rfcdest
      EXPORTING
           objtype            = l_bor_objtype
           objkey             = l_bor_objkey
           event              = l_bor_event
           rectype            = l_bor_rectype
           exceptions_allowed = 'X'
      IMPORTING
           rec_id             = l_receiver_id
      TABLES
           event_container    = lt_event_container
      EXCEPTIONS
           temp_error         = 1
           OTHERS             = 99.  " catch all exceptions
When I Uncheck this Flag this FM gets called in background.
      CALL FUNCTION im_handler->m_linkage-recfb
           IN BACKGROUND TASK
           AS SEPARATE UNIT
           DESTINATION im_handler->m_linkage-rfcdest
           EXPORTING
                objtype            = l_bor_objtype
                objkey             = l_bor_objkey
                event              = l_bor_event
                rectype            = l_bor_rectype
                exceptions_allowed = space
           TABLES
                event_container    = lt_event_container.
      CALL FUNCTION 'ID_OF_BACKGROUNDTASK'
           IMPORTING
                tid = l_trfc_id.
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.
Can you please throw some light on what is the issue.

Thanks

Arghadip Kar

SAP Workflow Expert

IBM INDIA


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20100126/101952a3/attachment.htm


More information about the SAP-WUG mailing list