Our requirement is to have cost centre based approval using BRF.
We will be getting the Approval chain from ECC using an RFC call.
If ECC returns an Approver depending on the approval limit, all other people in the chain below him should get a review work item.
1) Our requirement is to combine the items belonging to same cost center together and send a single work item to the approver. I checked the sample code provided in thread:
It talks about using 2 methods:
However I checked in other threads that I need to use the method Get_AREA_TO_ITEM_MAP. Is it not required when using the above two methods?
2) Can I add my code directly inside the class /SAPSRM/CL_WF_AREA_COST_CTR or copy it into a new one??
Why is this BADI /SAPSRM/IF_WF_AREA~GET_RESPONSIBLE_APPROVERS not available in SPRO under Process controlled WF?
3) Since my requirement is also to assign reviewers as well as approvers to decision sets based on cost centre using the same ECC function module, could I do it in one RFC call?
For e.g. I am already making the RFC call from within the Method /SAPSRM/IF_WF_AREA~GET_RESPONSIBLE_APPROVERS for getting approvers.
Could I call the BADI SAPSRM/IF_EX_WF_REVIEWER_RULE :- Method :- GET_REVIEWER_BY_DOCUMENT & set the reviewers also from here.
If not I need to implement the whole logic of grouping by cost centres etc in the reviewer BADI & make 2 RFC calls to ECC