cancel
Showing results for 
Search instead for 
Did you mean: 

SC creator should not able to change default approver

SagarSontakke
Active Participant
0 Kudos

Hi All,

I have a scenario where I do not want the SC creater to be able to change the defaulted approver.

I am on SRM 4.0.

BADI "BBP_CHNG_AGNT_ALLOW"is not present in SRM.

Is there any other way of doing this?

Thanks in advance,

Sagar Sontakke

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Pls see the foll thread for more pointers/workaround solutions:

BR,

Disha.

DO reward points for useful answers.

Answers (2)

Answers (2)

SagarSontakke
Active Participant
0 Kudos

Hi Disha,

Now i have badi "BBP_CHNG_AGNT_ALLOW" in my SRM system.

My requirement is that user should able to change the defalt approver but user can insert one more aaprover using add approver button.

I have implemented the both themethod of badi's but method "AUTHORISE_FOR_CHANGE" is not called anywhere when user is creating the shopping cart.

Method "AUTHORISE_FOR_INSERT" gets called but again if i set EV_CHNG_BUTTONS_DISABLED = 'X', it does not work. but if i set EV_ADD_BUTTONS_DISABLED = 'X' then it works bbut add approver button gets disabled.

Is there any other way to call first method of this badi??

Regards,

SVS

Former Member
0 Kudos

Hi,

I have implemented the same BADI at my place and it works fine for me.I am not able to chnage the approver but just ADD the approver using the ADD APPROVER button.

This is the code in my BADI:

BBP_CHNG_AGNT_ALLOW~AUTHORISE_FOR_CHANGE

IF iv_user EQ sy-uname.

ev_chng_buttons_disabled = 'X'.

ENDIF.

What is the SP level at your place for SRM?

Also have a look at these notes:

1174405 BBP_CHNG_AGNT_ALLOW:ev_chng_buttons_disabled has no effect

1076883 IV_NODE_USER is not transferred to BAdI BBP_CHNG_AGNT_GET

997961 BBP_CHNG_AGNT_ALLOW: Approver can still be changed

839370 Change approver button is not disabled as set in BADI

894346 BBP_CHNG_AGNT_ALLOW: 'Change' button is active

742314 BADI for approver selection when adding/changing approvers

818342 New BADIs: BBP_CHNG_AGNT_ALLOW and BBP_CHNG_AGENT_GET

BR,

Disha.

Former Member
0 Kudos

Hi. When you click the "change approver" button there will be a specific SY-UCOMM sent through.

You can use the BBP_DOC_CHECK_BADI to issue an error if the wrong person presses this button by checking the SY-UCOMM Value.

Regards,

Dave.