cancel
Showing results for 
Search instead for 
Did you mean: 

Process Controlled Workflow - 1-step approval for shopping cart approval

Former Member
0 Kudos

Hi,

I have configured a one-level approval for SC (Process Controlled Workflow):

Object Type: BUS2121

Additional 1 level under schema: 3C_SC_600_000 (the last level is the automatic approval)

Level Type: Approval with completion

Eval ID: 0EV_SC_SL1

RR Name: RR_SPENDING_LIMIT_APPROVER

RR Param: USTONY.Y (I hardcoded it using my user ID, for the moment)

Task ID: 40007953 (I have checked, it's generalized as well)

Decision Type: Item-based decision for entire document

For PPOMA_BBP:

Under my org unit (Position):

Approval Limit: 1000

Output Limit: 1000

I didn't do any BADI implementations yet.

During creation of SC by other user, before "Order" the SC, the approval preview can show correctly that the Processor is as indicated in the config.

Once the SC is ordered, the whole step is gone and the event linkage becoming delinked (because there is error, and according to the config in SWEQADM).

However, I cannot find the workitem (no workitem generated) and SLG1 does not give any clue whatsoever.

I tried debugging method APPROVAL_LIMIT, and it seems fine as well.

Please help, what did I do wrong here?

Thanks,

Tony Y

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Solved by myself... 😛

Former Member
0 Kudos

But Sahil, SAP's standard implementation, /SAPSRM/CL_IM_WF_RR_MANAGER, works perfectly... if I am going to implement, what would be the different between theirs and mine?

Thanks,

Tony

Former Member
0 Kudos

Hi Sahil,

I even changed to first process level to:

Level Type: Approval

Eval ID: 0EV000

RR Name: RR_MANAGER

RR Param: (Blank)

Task ID: 40007953 (I have checked, it's generalized as well)

Decision Type: Decision for entire document

Under PPOMA_BBP:

I made myself as a head of the org unit with the role manager.

The requester is "Exclude" the role manager.

The agent can be determined now.

But the workitem ID is still cannot be generated. It's always no workitem generated.

Please everyone, any help?

Thanks in advance,

Tony

Former Member
0 Kudos

Hi Sahil,

Thanks for the respond.

I have tried your advise and it is still not working.

I have debugged /SAPSRM/BD_WF_RESP_RESOLVER as well, and it can resolve correctly.

By the way, I notice that this is happening to all scenarios, meaning, as long as I added a level (even though just assigning a constant "always TRUE" and assigning a fixed processor), it still behaves the same way.

Doubt that implementing BAdI will will work...

Any other suggestions?

Thanks anyway,

Tony

Former Member
0 Kudos

Tony,

then Its better start implementing it and let me know if anyhting you required.

regards

sahil p

Former Member
0 Kudos

Hi Tony,

As per your inputs I would prefer to do some changes.

whenever we maintain level type as Approval with completion the corresponding task ID should be 40007952 other than 40007953.

where 40007952 is for shopping cart completion approval.

Try to create the SC and check if at all any difference.

If this does not work then you have to implement the Badi. i,s is /SAPSRM/BD_WF_RESP_RESOLVER to get approvals for variouls line item of SC. Also u have to create custom event and expresion in order to identify approval process levels.

regards

sahil