cancel
Showing results for 
Search instead for 
Did you mean: 

SRM Shopping cart work items getting auto forwarded to next level?

Former Member
0 Kudos

Hi Gurus,

I have a peculiar problem with shopping cart(n-step Badi) workflow.

The Badi returns IT approvers and Non IT approvers as expected. IT approver will have index '1' and other approvers with

index 2, 3, 4 etc. When there are no IT approvers required it has non IT approvers staring with indices 1, 2, 3 etc..

The workflow is fine when we have no IT approvers. But when there is an IT approver the work item getting auto forwarded

to index 2. if we look at the log it will appear as if the IT approver at index '1' has forwarded the work item to

approver at index '2' (who is a non IT approver).

I am not able to understand this behavior. Did any body has experience of this kind? Any suggestion to get over this

problem is highly appreciated.

Thanks

Kala

Accepted Solutions (1)

Accepted Solutions (1)

khan_voyalpadusman
Active Contributor
0 Kudos

hi,

does this happen when the shopping cart is ordered ?

do you mean to tell that workitem is directly going to approver with index 2 ? without going first to approver with index 1??..

looks like in your case BADI ends up adding two approvers with the same index 1...

this will create problems...

also check what is the approval_state for each of the approver in the workflow log....

Former Member
0 Kudos

Hi Khan,

Thanks for your reply.

Indexing comes fine. If there are more than one IT approvers all the IT approvers get index 1 as the requirement is one approval for all the IT approvers and there after sequential approvals from other non IT approvers.

Even when there are mutiple IT approvers the workitem after waiting for some time gets auto forwarded to non IT approver with index 2. Waiting time is some times up to dead line missed time and some times less than that, on some occasions work item doesnt even make to the inbox of IT approver, it gets straight away forwarded to approvers at index 2.

After this auto forwarding workflow works fine and as expected. On all occasions the log shows that the forwardin is done by the IT approvers.

Thanks

Kala

martin_nooteboom
Active Contributor
0 Kudos

Hi kala,

Perhaps it is an authorization issue. I don't see a way the system will "automatically" forward the workitem. Does this happen in the productive system or could you reproduce it on the development or quality system? I suspect it has to do with an action by the IT approver. And after the forward, what is the approval level?

Regards,

Martin

Former Member
0 Kudos

Hi Martin,

'Determine next approver' step has the IT approver with approval index '1'.

Then cart got forwarded to Non IT approvers who should be with index '2'. But when he approved it the 'Actual agent' container element of this step has this approver.

When I look at the 'Determine next approver' step after this approval, the index is et as '2' but no approver i.e. 'Actual Agent' is set as initial.

You are right, this only happens in Production system and we couldnt replicate this Dev and Q systems.

Any clues?

Thanks

Kala

imthiaz_ahmed
Active Contributor
0 Kudos

Sorry to interfere, something is messed up in the deadline monitoring( getting auto forwarded) or the BADI. Please verify. Even a slightest error in coidng the n-level badi generates unimaginable issues.

Regards, IA

martin_nooteboom
Active Contributor
0 Kudos

Hi Kala,

If you couldn't replicate it, look for differences between the situation for the DEV or QA and the PRD system. Check authorizations and such.

But I suspect one of the users has forwarded the shopping cart. You can also check if the user has autoforwarding activated in the inbox (I am not sure if this is possible from the portal, but it is in the SAP inbox).

Regards,

Martin

Former Member
0 Kudos

Hi Martin,

Thanks for your reply.

The approver was not approving the cart but doing every other thing like saving etc. The work item was thus getting forwarded. If he is appoving then there are no issues. I could figure this out when I sat together with him and saw what exactly he was doing..

Thanks again.

Kala

martin_nooteboom
Active Contributor
0 Kudos

Hi Kala,

This looks like an error in your Badi. Make sure you always get the users at the same level.

Regards,

Martin

Answers (0)