cancel
Showing results for 
Search instead for 
Did you mean: 

Approver and Requestor should not be same

former_member714675
Discoverer
0 Kudos

Hi,

I am working on a requirement like

1. M1 creates SC whose approver is M2.

2. But M2 make M1 as substitute for approval.

3. Now M1 will get the SC for approval, in which he cant approve(we did this by coding in the BADI (BBP_DOC_CHECK_BADI)

In the above case the erroe message is working fine. I have problem in the below case.

1. M1 creates SC.

2. M2 rejects it.

3. M1 edits the rejected SC.

here also am getting the error message which is triggered through the BADI _BBP_DOC_CHECK_BADI.

I also tried by making some flag in view, but in both the above cases same view is used FPM_OIF_COMPONENT>>CNR_VIEW.

Is there anyway to get the Rejection status in the BADI with GUID.

I already tried

  BBP_PD_SC_GETDETAIL, GET Item Detail FM's... nothing working out.

Thanks for any answer

Aravindh M

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

What is your SRM version?

Have you considered switching off  customizing switch SRM_700_APF_APPR_BY_CREATOR ?

 

Please refer note Note 1551561 - Approval by Document Creator

Regards,

Sushil.

Former Member
0 Kudos

Hi Aravindh,

Are you using Application controlled or Process controlled workflow?

Thank you

Ritesh

former_member714675
Discoverer
0 Kudos

Hi Ritesh,

We are using Application Controlled workflow.

One step approval and two step approval.

Regards

Aravindh

Former Member
0 Kudos

Hi Aravindh,

Please try to use Table SWW_CONT. This will require your Workflow ID (I.e. Shopping cart workflow ID). You could get this from Table SWW_WI2OBJ where INSTID = Shopping cart number (If you have non 10 digit number then put extra zero's in front).

Once you get WF ID then go in to SWW_CONT table and get the value of Element APPROVALSTATE . It will be '0' or '1'. Where 1 means Shopping cart status is "Rejected".

This way you can trigger message based on Requester who is "Rejecting" or "Approving" cart through DOC_CHECK_BADI.

Hope this helps.

Thank you

Ritesh