Hi,
I have a scenario where I have a task inside a loop.Now from my application I need to capture the 'Approval' or 'Rejection' in a variable and update it to Workflow container in each loop pass.After the first loop pass in my application I write the workflow container for that workitem ID using 'SAP_WAPI_WRITE_CONTAINER' and simultaneously I Complete the work item also using 'SAP_WAPI_WORKITEM_COMPLETE' since the loop should run again,a new work item should be created and task should go to another agent.
The problem is when I go to SWI1 and check my first workitem ID it shows the status as COMPLETED and the container also is set since I have completed the work item using 'SAP_WAPI_WORKITEM_COMPLETE' but the second workitem has no updated values. The second Workitem holds the old values.
Please guide me.
Regards,
Nishant