cancel
Showing results for 
Search instead for 
Did you mean: 

N Step Approval BADI - BBP_WFL_APPROV_BADI

Former Member
0 Kudos

We have implemented this BADI and are having problems with the agent determination.

When creating and ordering the cart the approval preview shows the correct approval agents.

When clicking the 'Agents' button within the workflow log via SWI1, the message 'No selected agents' (Message no. WL795) is shown.

The buffers have been refreshed via SWU_OBUF and the indexes and organisational environment have been refreshed.

Has anyone had this problem before, and if so what steps did you have to undertake to cure it ?

Thanks

Keith

Accepted Solutions (1)

Accepted Solutions (1)

khan_voyalpadusman
Active Contributor
0 Kudos

hi,

looks like the approvers are not added correcty in your system.

can you please check wether the code you have written to fill the approval_tab table is correct.

also let me know wether the shopping cart is send ti the first level of approval.

Former Member
0 Kudos

When checking the container the approvers are shown in the table but the work item is not being sent to the inbox of the first approver.

Keith

khan_voyalpadusman
Active Contributor
0 Kudos

Please check what is the approval_state in the container for the first approver in the container?

is it 2 (or) 5.

If it is 2 , it will not go to the first approver.

Please check there is one OSS Note which solves the above issue. check the notes for approval_state

Former Member
0 Kudos

Just checked and the approval_state for the first approver is indeed 2.

Any idea what the note is that will help me sort this one ?

Former Member
0 Kudos

Found note 'Note 923463 - BAdI n-step approval - Container inconsistent for 1st step'.

This is for SRM_SERVER 550 SAPKIBKT05 and we're on SAPKIBKT07.

khan_voyalpadusman
Active Contributor
0 Kudos

That is the problem , as i have mentioned earlier.

Approval_state should be 5 and not 2.

Please check for other OSS notes which deal with approval_STATE.

You can also debug the shopping cart creation and there you can see how the approval_state is updated for the container.

Award points if usefull

Former Member
0 Kudos

Hi

<b>Please specify the SRM version(Support packs) details in next reply.</b>

<u>Meanwhile, please go through the following SAP OSS Notes, which will definitely help -></u>

Note 798295 BADI workflow: SRM 3.0 upgrade to 4.0 approver list -> main

Note 748655 SC APPROVAL GRAPHIC PREVIEW NOT CORRECT FOR BADI APPROVERS

Note 843636 PO BADI WORKFLOW does not assign correct approvers

Note 861147 BAdI workflow: Adjusting step name to runtime

Note 883207 BBP_WFL_DIN_APPR_BY_RULE_GET: if BAdI not implemented

Note 713567 SRM-EBP-WFL: Limit is ignored in WS14000109

Note 923463 BAdI n-step approval - Container inconsistent for 1st step

Note 901068 BAdI Workflows: Enhancement of Note 896556

Note 898768 BADI Workflow: Determining current approvers

Note 861147 BAdI workflow: Adjusting step name to runtime

Note 688724 BADI workflow: Problems with substitute

Note 788584 BADI Workflow: empty WI_ID in approver table

Note 780021 BADI Workflow: subsequent approvers after rejection

Do let me know.

Regards

- Atul

Former Member
0 Kudos

Atul

Thanks for the note info.

I'll check them out and see if any are applicable.

As for version it's as per a previous response (SRM 5.0, SP 7).

Keith

Former Member
0 Kudos

Just to let you know that the reason for the approval state being '2' was that the container for the approvers had the user IDs without the preceeding 'US'.

Keith

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

This issue surrely comes from the managment of parameter ACTUAL_APPROVAL_INDEX in your coding.

NB: Have a look at note 870391 and related notes, it can help

Regards.

Vadim