When a PO is created my workflow is triggered (BUS2012/RELEASESTEPCREATED) but the release strategy workitem is not coming is not SAP Business work place. I'M GETTING THE BELOW ATTACHED ERROR, PLEASE SEE THE ATTACHED SCREEN SHOT.
I have checked and re-checked and my bindings are correct. PLEASE TELL ME IF I HAVE MISSED SOMETHING.
Please advice how to solve it.
May be the below things should be check list to resolve the error
1. Make sure You have done all the necessary bindings
2. Make sure you have refreshed the buffer by using SWU_OBUF
3. Make sure you try to check the consistency of the workflow from SWUD transaction and try to refresh the org environment.
After doing some research, I found out that my AC rule is not assigning any agent. I did a simulation in PFAC it is working fine. I declared a container wi_actua_agent type wsyst-agent and moving the agent exported from my AC Rule. I dont see ay container _wi_actual_agent in workflow container but I see one in the task container (as export only). I have copied BUS2012 and using SINGLERELEASE for the release strategy. In my step I'm using AC rule to assign an agent. I know my rule is working because in the rule I have written a code to send an email and I'm getting the email in SOST. But some how the AGENT form the AC Rule is not applying to the step.
I declared a container wi_actua_agent type wsyst-agent and moving the agent exported from my AC Rule.
You do not have to export any thing to the workflow container from rule you cannot export anything from rule container to workflow container and even system also will not allow you to export anything other than ACTOR_TAB.
1. Check the actor tab and what is the object ID and object type are getting assigned the valid OBJECT types are 'US' User O - Organization P -Personnel Number S - Position C - JOB so if the object ID is not a valid object the workflow doesn't understand to whom the workitem needs to be sent
Also check the object ID what ever you are passing is valid on the current date... and available in the org. structure or at least it should be a valid user ID.
In my step I'm using AC rule to assign an agent. I know my rule is working because in the rule I have written a code to send an email and I'm getting the email in SOST.
This should never be done in the rule the main purpose of the rule is to just determine the agents and assign it to the workflow. Do not include any extra functionality in the rule apart from deriving the approvers.
Message was edited by: Pavan Bhamidipati
Since I had copied the BUS2012 into my workflow, The single release method in the task was considering the default agent rule instead of my AGENT AC rule. Once I removed the default rule and used my Agent rule instead everything is working as expected except one issue.
When I process the work item in the SBWP, it is not going to ME35K, it gives some administrator related error. I have configured BUS2105 for PR release and it works as expected, Processing the workitem for PR release takes me to the PR release screen. Do you have any idea why it is not working in the case of PO and CONTRACT release. Since the work items are not getting processed, my workflow step in SWI2_FREQ says 'IN PROCESS" though I have released the PO/CONTRACT completely. Do u have any hints how to end the workflow "IN PROCESS".
i was thinking to use BUS2012 RELEASED event to terminate the task in BUS2012 RELEASESTEPCREATED by using the RELEASED EVENT in the TERMINATING EVENT tab of the TASK in RELEASESTEPCREATED EVENT.
Basically, use RELEASED event to terminate RELEASESTEPCREATED , since after the RELEASE too my workflow step is in "IN PROCESS" state.
Hello Tushar !
The task that releases the purchase order should be configured with terminating event as because this task is asynchronous.
To get an insight about configuring this task with terminating event, please refer to standard task TS20000166 of standard workflow WS20000075 for purchase order release.