cancel
Showing results for 
Search instead for 
Did you mean: 

how to implement SRM7.0 Approver BADI /SAPSRM/BD_WF_AGENTS_SC

bhakti2
Active Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

konstantin_anikeev
Active Contributor
0 Kudos

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

bhakti2
Active Participant
0 Kudos

thank you for for exactly helpful details. wil check and get back

konstantin_anikeev
Active Contributor
0 Kudos

Hi Bhakti,

please check also following for example.

Regards

Konstantin

bhakti2
Active Participant
0 Kudos

hi Konstantin, here is thank you for sharing great knowledge.

Answers (0)