Complete workitem in a step
Customized workflow .
I have a module pool form, where click of a button the workflow is triggered, and approval is sent to the user R3 inbox.
for approval the user clicks on the work item in R3 and the module pool form pops up.
My issue is On click of Approve & Reject Button. the status of approval or rejection has to be captured and next approval process is started.
As it is under R/3 process, so I have used a FM "SAP_WAPI_WORKITEM_COMPLETE" to capture the status
and i am sending the status from the form to container in the workflow -and then the approval process continues.
while using the FM " SAP_WAPI_WORKITEM_COMPLETE " i have to pass the workitem id to the function module.
Can any one tell me where should i capture the work item id from and how do we pass the value to the workflow container. so that the status is used in the workflow.
please tell me how should i get the work item ....!
thanks in advance.