on 08-13-2010 7:49 AM
I am sending the workitem to 5 approvers in the BADI:BBP_WFL_APPROV_BADI.
with approval index 1.
And my requirement is that the workflow should be approved, if any 2 can approve from the 5 approvers.
How do i determine that,Please suggest.
Hi Kittu,
You could make it a two-step approval. IN the first step you send the approval to 5 users. If one approves, the workitem dissappears for all approvers, and step 2 is started in which you send the approval to the remaining 4. If step two is also approved, the workflow is finished and the document is approved.
Regards,
Sjoerd.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
sorry Sjoerd Santegoets
I find that assigned but i have this issue.
If the approval branch(index) has 5 approvers and If any one of them is approving the APPROVAL_HISTORY_TABLE has all the 5 approvers of that index.
USER1 is one of the 5 users.
When he is approving,the approval table has all the 5 approvers and no where the actual approver of that index is captured.
Can we capture the actual approver based on Sy-Uname?or can u please suggest any other solution.
Edited by: kittu reddy on Aug 16, 2010 5:38 PM
Hi,
You could try to read the agents from the workflow. You could do this by directly querying the tables. In SWWWIHEAD you will find all workitems with the actual agent in field WI_AAGENT. You could also try to read the info using a function like BBP_WFL_DIN_APPR_WORKFLOW_GET, or BBP_WFL_DIN_APPR_CONTAINER_GET. You do need the main workitem for this. You can read this using function BBP_PDH_WFL_WI_FROM_OBJECT_GET.
Regards,
Sjoerd.
HI Sjoerd Santegoets
I have explored these options already,But they dint work.
I need to capture the agent in BADI when he is actually approving the WI.
so that i can avoid him for the next step.
but the agent is captured in database and FMs only after the BADI is executed.
The FM BBP_WFL_DIN_APPR_WORKFLOW_GET also returns all the agents that belong to that approval index rather than the person who is actually approving it.
example: Approval index 1 has user1,user2 and user3.
when user1 is approving the WI, the database and as well as the FM's have all the 3 users info .
but i need only user1 to avoid it in the next step..so that in the next step i can send only to user2 and User3.
I only need to capture the User information who is actually approving it only at the time of approval as this is when the next step of approvers would be determined in the BADI.After he approves the WI will immedeately route to the next step of approvers,so i need to capture it only when approving.
As of now i am using Sy-uname to capture the actual user approving..Please let me know if this could have any limitations.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.