cancel
Showing results for 
Search instead for 
Did you mean: 

SC Approval - Workflow sends all items to immediate approval

Former Member
0 Kudos

Hi All,

I am using n-step workflow BAdI for SC approval.

When no agents are found for all items in the shopping cart it is immediately 'Approved & Released' by the workflow.

Thinking that this is normal behaviour when no approvers are found I programmed the BADI to populate the table APPROVAL_ADMINISTRATORS with the workflow adminitrator.

Guess what, it still went for immediate release.

Any ideas from you gurus.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Recently applied Service Pack 10 and notes 950510 and 986391 to resolve

workflow WAIT problem using N-step approval WF WS14000133.

However, if workflow does not need approval, LS_APPROVER table is left

initial and "No_Further_Approval_Needed" is set to "X". Approval

preview Displays "No Approval Required", but when the shopping cart is

ordered, a workflow item is sent to all agents and approval is required.

Looks like same symptom of Note 909871. This correction has already

been applied.

Appreciate any help.

Former Member
0 Kudos

Hi All,

Thanks for your responses.

If I can explain further. If no approvers are found for the SC (all line items) from the BADI I would expect the workflow to error with 'No agents found'. It does not; instead it goes for immediate approval. So the question is; is this the normal behaviour.

Now, given that I can identify when no approvers are found by querying the APPROVAL_TABLE, I can proceed to populate the APPROVAL_ADMINISTRATORS with the admin uids. This I do but again the SC goes for immediate approval instead of sending approval messages to the agents contained within the APPROVAL_ADMINISTRATORS table. Note, I am NOT setting the variable 'NO_FURTHER_APPROVAL_NEEDED = 'X'.

Cheers and thanks again...

Paul

Former Member
0 Kudos

Hi,

Check the condition "if approval_table[] is initial."

Also.In the CASE condition for actual_approval_index,for others ,you cna directly set the flag "no_further_approval_needed = 'X'" if you dont want to send the Witem for approval to administator !

HTH.

BR,

Disha.

Pls reward points for helpful answers

Former Member
0 Kudos

Hi,

I have not filled the WF admin but when no approver required set no_further_approval_needed = 'X'.

This is the standard behaviour of WF , when no appover found it should go to the next level of approver or if no further approval required it should create SC and so on.

Regards,

Smita

Former Member
0 Kudos

Hi PAUL,

I'm no guru But I have made n-step approval work for PO and contracts.

Please check on

1. OOCU -

SRM > SRM-EBP > SRM-EBP-WFL

Activate Event Linkage WS 14000133

Assign Agents - Make sure its NOT set to General Task

2. Create Start Condition for SAVE SHC and or Change

Disable other start conditions of SAVE and Change SHC.

3. in the BADI, populate the APPROVAL_TABLE not APPROVAL_ADMINISTRATORS.

Hope this helps

Case

Former Member
0 Kudos

if no agents are found,

set no_further_approval_needed = 'X'.