on 08-24-2012 8:26 AM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
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 ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please check have you scheduled this report /SAPSRM/OFFLINEAPPROVALSEND.
Regards,
RBEI / SRM naga.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.