cancel
Showing results for 
Search instead for 
Did you mean: 

Work item not created for a shopping cart

Former Member
0 Kudos

Hello experts,

We have some shopping carts with the status Awaiting Approval (the shopping cart is correct) but it is not sent to the approver. I've checked the shopping cart in BBP_PD and it does not have any work item created.

Is there any way o create this work item for this shopping cart in the backend without editing it in the portal?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Catalin,

Have not worked in SRM for quite a while, but if so workitem was created then it sounds like the event for BUS2121 was not received.

You could firstly check SWO1 for BUS2121 (Shipping Cart) for the list of events. Im going to guess it'll be a .CREATED or .RELEASESTEPCREATED event that should be listened for in your workflow.

If no receiver was found, then you should find your SWEQADM (last tab).

Root cause of the issue is likely to be the event linkage between the document you are creating and the workflow itself. Check your start conditions and check your event linkages.

I am also assuming that all basic workflow customizing is in place. Check in SWU3 for green lights. Check that your SWW* jobs are scheduled in SM37 and that there is a start condition for your workflow in SWB_COND. If there is a problem with your workflow then test it out (have a toy) in SWUD, very helpful for diagnosing.

Hope this helps,

Will

Former Member
0 Kudos

Hi Catalin,

Is the SC saved or ordered?

Only the ordered SC will have the WI.

Thanks,

Baskar

Former Member
0 Kudos

Hello Will, thanks for you answer. Based on it I've solved my issue.

What happened was the fact that the workflow user was locked when shopping carts were created (and ordered) or in other cases approved. This triggered an error.

Based on your feedback, I've went to tcode SWUD and selected Problem: Workflow is hanging -> Work item queue. In there I've placed the cursor on an item, from the queue and the pressed F6 (the same as going to the EDIT menu and selecting the Execute LUW option)

Answers (4)

Answers (4)

vinita_kasliwal
Active Contributor
0 Kudos

HI All ,

I need some help in Workflow .. the SRM system is newly developed and I am able to create a SC and it goes into status requiring approval however there is no approver is determined .. please can some one guide me on where to check for the error ?

This happens in few cases randomly  for the rest of the cases it works fine also it works sometimes for some users and for the same user it did not work when tried again . Please let me know on what should I check ?

Former Member
0 Kudos

Hi Vinita,

Based on my experience this can happen due to several reasons (one of them beeing the workflow schema, another beeing the organization setup incorect and so on).

Could you please provide some details on how you've set up your workflow (application based or process based) and if you have any custom developments?

Cata

vinita_kasliwal
Active Contributor
0 Kudos

Hey All I am looking for some support while trying to redistribute the work ... and when the SC is assigned to the first step approver it misses on the step and goes to the next approver I am new to WF so dont know on how to debug .. need assistance urgently if anyone could let me know ?

Former Member
0 Kudos

Hi,

The below class and method would give the workitem , if at all it is created.

Class: /SAPSRM/CL_WF_APV_FACADE

Method: RETRIEVE_PROCESS_HISTORY

This method will have an exporting table ES_PROCESS, which will inturn some records in it. In that there will be a parameter called Decisionset_list. This should give you some details as to where is the SC.

Also , if you are saying the approver is coming up in the SC but doesnt appear in the UWL of the Approver's inbox, it could also be to do with roles assigned to the approver. See if /SAPSRM/MANAGER is assigned to the approver.

Regards,

Naveen

Former Member
0 Kudos

Hi,

For PC WFL you can check which schema was triggered via SE16 > /sapsrm/d_WF_000

Mayve you have the automatic bc set and on this case no WFL will be created at all.  Try to check if you can find anyl WFL log at SWI6 for this document. Maybe the WFL is stuck in error.

If the WFL is in error you can retrigger it via SWPR. Or you can use the report from note 1575495.

Cheers,

Melina

PS.: If this helps you, please assign the concerning points

Former Member
0 Kudos

Hi,

Please check have you scheduled this report /SAPSRM/OFFLINEAPPROVALSEND.

Regards,

RBEI / SRM naga.

Former Member
0 Kudos

Hi,

This report /SAPSRM/OFFLINEAPPROVALGET helps to transfer the offline replies to the

appropriate work items.

Regards,

RBEI/SRM Naga.

Former Member
0 Kudos

The  /SAPSRM/OFFLINEAPPROVALSEND is scheduled but as there is now work item created for the shopping cart, nothing is sent with this report. This is our problem.

Also, we are not using /SAPSRM/OFFLINEAPPROVALGET.

Former Member
0 Kudos

Hi,

Please inform the below information's.

1.whether workitem is generate in application "process overview" tap.

2.Which workflow you have configured, application controlled workflow or process controlled workflow.

Regards,

RBEI/SRM naga.

Former Member
0 Kudos

Hi,

one more hint that please check whether this attribute

FORWARD_WI to 'X' is maintained in PPOMA for particular node or user level.

Regards,

RBEI/SRM Naga.

Former Member
0 Kudos

Hi,


1. The is no workflow item in the Approval Process Overview tab. (although the Approvers names appear in the table in there)

2. We have the process controlled workflow

The Forward_WI is set to X in PPOMA_BBP

Thanks for all the hints.

Former Member
0 Kudos

Hi,

I can suggest below information will help to solve your issue.

1.Please check The following roles must be given to the SAPconnect user for offline approval:

/SAPSRM/EMPLOYEE

/SAPSRM/OP_PURCHASER

2.It could be due to the position based roles. Requester's position had some user roles associated through Relationship B-007/Related Object AG which standard code doesn't like it. As soon as we remove the position roles, it is able to pickup the stored agents against the respective Process Level GUID and no error is thrown.

3.Finally better look at this Badi '/SAPSRM/BD_WF_AGENTS_SC' example and implement the logic. You just put the code GET_APPROVERS_BY_AREA_GUID , that why the problem . refer the Badi example and implement the logic .

DATA : ls_approver TYPE /sapsrm/s_bd_wf_approver.

 

if is_document-document_guid IS NOT INITIAL.

 

ls_approver-approver_ot = 'US'.

ls_approver-approver_id = 'TOML'.

APPEND ls_approver TO rt_approver.

ENDIF.

Regards,

RBEI/SRM Naga.