on 07-29-2013 3:37 PM
hi,
I have checked several threads for this BADI
but I am looking for step by step method
I have done following
1) define agents in apro
2) put this agent in process level in schema
3) create implementation of above BADI
3.1) se19 - create impl section - give /SAPSRM/BD_WF_AGENTS - give enhc impl name zimp_testsc and short text -
3.2) then it gives table for - Create BADi impl for existing BADi definiteions. here i select /sapsrm/bd_wf_resp_resolver from dropdown of third column
and give m own names in Badi impl ZIMP_resp_resl and implementation Class columns zcl_resp_resl
4) next i give filter value of agent name of step 1
5) now i go to se19 and give /SAPSRM/BD_WF_AGENTS_SC in Edit impl section and display. there i refer to a std implementation /SAPSRM/BD_WF_SC_RR_MANAGER and copy code of every method.
now I think i should write my code of getting approver in method get_responsible_approvers in the method GET_APPROVERS_BY_AREA_GUID
but further to this i cant figure out. where do i get shopping cart data , which i need to refer. to get the approver name ?
thanks in advance
Hi Bhakti,
first you need to implement method GET_AREA_TO_ITEM_MAP.
It should return table with grouping areas to items. Area guids should be taken via instance of area class (check the classes /SAPSRM/CL_WF_AREA_*).
After that in the method GET_APPROVERS_BY_AREA_GUID you just call the corresponding method of AREA-class.
check this thread http://scn.sap.com/thread/1682215
Best Regards
Konstantin
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.