I have developed a customized workflow in ECM module. The business requirement is that whenever the status is 04, I need to send a work item to the initiator of the workflow. I created a task, and in that I assigned the agent as the initiator. When I triggered the workflow the work item is going to WF-BATCH (I noticed this after analyzing the work item SWI2_FREQ ). Can you help me?
It all depends on how you are triggering your workflow. It seems that the event is being raised by WF-BATCH (perhaps in a separate logical unit of work) and hence the work item is being routed to WF-BATCH. I would debug further and see how the event is being raised. If you find that the event is always being raised by WF-BATCH you may need to change your logic to determine the actual user that you want to route the work item to.
Dig Deeper on SAP workflow development
Find out how to configure clients so that the same version of an SAP workflow item is used when the workflow is triggered in separate clients.
An SAP user has created a user decision step in an SAP workflow item and wants to know how an end user can send an attachment to other users.
A SearchSAP.com reader wants to know how to hide the forward button in an SAP Business Workplace toolbar.