on 07-27-2006 11:11 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.