on 2015 Sep 03 1:16 PM
Hi,
I have some carzy requirement. we have implemented PCW for SC ( item based partial approval type). In some scenarios there is a possbility that apporvers might repeat for certain steps. for example
level1 - user1
leve2 user2
level 3 user 1
level4 user 4
in this case what I want is, I want to remove level 1. How do I do this?
thanks
Request clarification before answering.
Hello sankara rao bhatta ,
I had a same problem with the workflow . Moreover it when same user is having dual roles then Workflow start repeating . We have been using ACW so I did the code change in the BADI BBP_WFL_APPROV_BADI for method GET_REMAING_APPROVERS. Under this you need to find method get_approval_hier_line , then under this method you need to find method get_appr_hier_format_ln_item . Under this method you can code your requirement before the approval_table is getting filled and after the table where all the approvers are picked everytime . For my case it was lt_appr_frmt. This part will help you to overcome the looping issue with dual role .
Moreover if you are only looking to delete the level1 at run time then you need to code in FM BBP_WFL_DIN_APPR_CONTAINER_GET as this is the standard FM so you can do your enhancement over there . Check when you table lt_cont_approver is getting filled . Once its filled then you can delete the approvers at run time . I have coded that as well . Just sort and delete duplicates .
Cheers
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.