cancel
Showing results for 
Search instead for 
Did you mean: 

shopping cart rejection mail

Former Member
0 Kudos

Hi,

shopping cart has been created onbehalf of 'X'. It has gone to person 'Y' for approval. 'Y' has rejected

and the rejection mail has gone to onbehalf person(Y). Could any anyone suggest me that

whether is there any BADI's which will help for the scenario as " sc rejection mail should go to

creator of the shopping cart not to onbehalf person".

Thanks & Regards

Ashok

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello

yes there is a BADI for that

Use the BBP_OFFLINE_APP_BADI and the method "recipients_get"

Best Regards,

SZD

Former Member
0 Kudos

Hi Daniel,

Thanks for yor reply. I wanted to debug the BADI:"BBP_OFFLINE_APP_BADI ".

Could please suggest me hw can i do this.

Thanks in advance.

Regards

Ashok

Former Member
0 Kudos

Hello Ashok.

SE18, choose BBP_OFFLINE_APP_BADI

put a BP in your implementation.

se38, start the report RBBP_NOTIFICATION_OFFAPP or the report RSWUWFMLEC.

/h

then you can jump to your BADI.

Daniel

Former Member
0 Kudos

Hi Daniel,

I wanted to debug the BADI for below scenario.

Once i have created onbehalf shopping cart with more tha output limit value in SRM it used to

trigger the approvers. Once it is rejected by approver rejection mail will trigger to onbehalf person.

In this case i wanted to debug the BADI: BBP_OFFLINE_APP_BADI and need to check who are

all the approvers are calling in the method:RECIPIENTS_GET.

Please help me hw to debug this scenario. Kindly let me know if you need more clarifications.

Regards

Ashok

Former Member
0 Kudos

it is easy.

once the workitem is at you approver, checkt he workitem number with swi1

call the bbp_bgrd_approval transaction, put this workitem number here, action should be 1 for rejection. And start this in debugging.

Daniel

Former Member
0 Kudos

Hi Daniel,

I Put the break point in Report prog: RBBP_NOTIFICATION_OFFAPP in one session and

called the bbp_bgrd_approval transaction in another session and given workitem number here, action given as '1' for rejection. Even though "BBP_OFFLINE_APP_BADI" is not yet called.

Could you correct me whether i did in the correct manner...or else plz tell me the correct procedure.

Iam once again thanking you for your replies.

Regards

Ashok

Former Member
0 Kudos

Sorry

bbp_bgrd_approval is used if you want to debug BBP_WFL_APPROVE_BADI

you have to start the RBBP_NOTIFICATION_OFFAPP with se38 , and

after the selection screen enter debugging. put a breakpoint to the line 384.

this could differs in your system, but you will find it.

Former Member
0 Kudos

Hi Daniel,

Now iam telling my requirement clearly and kindly give me the necessary steps to do for this.

1. Created one sc by 'X' on behalf of 'Y'.(Bcaz 'Y' doesn't have requisitioner roles)

2. Approver(z) has been triggered for above sc.

3. sc is rejected by 'z' & rejection mail & sc has been sent to 'Y'.

My requirement:

- Is it possible to route the creator of the shopping cart(X) instead of shop-onbehalf of(Y).

-If possible kindly let me know the clear steps to do this change.

Please let me know if you need any information.

Regards

Ashok

Former Member
0 Kudos

Hello

your BADI called like this

IF gv_badi_implemented EQ c_on.

CALL METHOD go_off_app_badi->recipients_get

EXPORTING

is_sel_params = ls_sel_params

it_workitem_tab = lt_workitem_tab

CHANGING

ct_wi_recipient = lt_wi_recipient.

ENDIF. "<--- IF gv_badi_implemented EQ c_on

in your BADI you have the possibility to change the recipient, if you are changenig lt_wi_recipient.

You have to put the user from "y" here instead of "x"

Daniel

Former Member
0 Kudos

Hi,

Thx for your input.

- Cud u tell me when this method: "go_off_app_badi->recipients_get" exactly get's called.

- why iam asking means i wanted to check the current approvers who are calling in "lt_wi_recipient".

in debugging scenario.

1.And one more thing please confirm me while creating sc itself should i need to put the break point

at method "go_off_app_badi->recipients" to check the approvers who are calling in "lt_wi_recipient".

(or)

2.SC created. While rejecting the sc should i need to put the break point at method "go_off_app_badi->recipients" to check the approvers who are calling in "lt_wi_recipient".

-Kindly tell me scenario1 or 2 i need to do. If not please guide me the correct procedure.

Thanks in advance

Regards

Ashok