cancel
Showing results for 
Search instead for 
Did you mean: 

TO add reviewer in Item level WF through BADI

Former Member
0 Kudos

Hi,

We are on SRM 4.0 SP9 and have implemented Item level WF for SC. Now

our requirement is that for a specific item apart from a Approver I

need that mail should go to few persons who are reviewer.

But in the BADI BBP_WFL_APPROV_BADI there is no export table where I

can fill reviewers.

Please suggest how to achieve this.

Thanks,

Smita

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Smita,

Try using BBP_CHNG_AGNT_GET badi. Obtain the SC item details inside this Badi and for the specific item add the agent.

Thanks

Nandalal

Former Member
0 Kudos

Hi All,

thanks for the reply.

The problem is that for a particular level of approval i.e. for only finance approver I want to add some reviewer for a particular line.and this is based on the multiple Account assignment data.

Say if for a line percentage is divided into multiple cost center. So I need to put the first Cost center's Finance manager as the approvers and others cost center's finance manager as the reviewer.

Has any body came across this kind of scenario.

Thanks,

Smita

pvanhoove
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Smita,

There is no standard way to add a reviewer (except from approval preview). But check if functions BBP_PDH_WFL_REV_DB_UPDATE or BBP_PDH_WFL_REVIEWER_INSERT could help you.

Rgds,

Pierre

Former Member
0 Kudos

Hi Pierre,

I used FM BBP_PDH_WFL_REVIEWER_INSERT and now I when I am creating a SC I could c the assigned reviewer in Approval preview.

But again prob is that it is not getting stored in the DB. I know I need to use FM BBP_PDH_WFL_REV_DB_UPDATE . but the problem I am facing is that from where should I get the WORKITEM_ID to pass in the parameter IV_WORKITEM_ID.

Do you have any idea how to find workitem_id inside the BADI at runtime.

Thanks a lot for your valuable suggestions.

Regards,

Smita

pvanhoove
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

to get the wi id you could use BBP_PDH_WFL_WI_FROM_OBJECT_GET or build something from this function. But you'll be facing another problem: during sc creation, the workflow instance does not exist, in approval preview you only see a buffered version. You 'll need more invistigation.

good luck )

Pierre

Former Member
0 Kudos

Hi,

Who is going to add the Reviewers?Is it the requisitioner?

BR,

Disha.

Former Member
0 Kudos

Hi Smita,

You say you want reviewer for some specific items only.

so it will have some criteria.

Can you build that logic (code) in BBP_WFL_APPROV_BADI ?

then build a Z table for 'reviewer'

then take reference of that Ztable in BADI.

this is only suggestion.

of course ABAP experts will have more ideas.

BR

Dinesh