cancel
Showing results for 
Search instead for 
Did you mean: 

Event Final Release of a PR triggers PR Revision

Dario
Explorer
0 Kudos

Hello

I was searching thru the WF forum but I could not get the answer to my scenario.

Having a three level release procedure for the purchase requisitions, I can deliver the WI to the suitable approver, using a copy of the standard WS20000077 .

However, my requirement is once the third (last) approval takes place, a WI is sent to a purchasing clerk, so he/she can make some general revision of the PR and create the RFQ.

I was using the event RELEASED in BUS2105 but this is triggering three times the same WI asking for PR Revision. I should be able to detect the final release, thru the release code (the final code is always the same) or status.

I can see that there is a task TS20000162 that uses a Method INFORELEASEEFFECTED for BUS2105, but I am not sure how can I use this in my workflow.

I have tried also using a Condition in the event RELEASED when the Release Code is the Third Level, But I could not find a way of getting this value in the condition (it is always empty).

Thanks in advance.

Darío

View Entire Topic
ronen_weisz
Active Contributor
0 Kudos

Create a new attribute the release status of the purchase requisition (extend BUS2105 see Extending Object Types: Inheritance and Delegation - SAP Business Workflow (BC-BMT-WFM) - SAP Librar...) this should even be a database type attribute since there is a release status field in table EBAN, simply read the status in the attribute and set your condition by it.

Dario
Explorer
0 Kudos

Thanks Ronen, but my guess is that issue (n- level release of documents) must be a very common case so it can be considered in the standard SAP o combining some basic existing logic.

ronen_weisz
Active Contributor
0 Kudos

There are two guesses here, first one that the issue is very common, which I completely agree with. the second guess, that it's considered in the standard SAP, I would have to say is a bit less likely, since WS20000077 sends approval for every release level and the release code does not have any effect there (it doesn't even state which release code was set in TS20000162).

Even if the release code is transferred by the RELEASED event I would not recommend setting the last release code as a hard-coded parameter.   

SandySingh
Active Contributor
0 Kudos

Hello Dario,

So your requirement is to identify if the release step is the last step and if so send a workitem to an agent.

In your custom workflow, you can create a background step to evaluate if the current release step is the last step. You can query table T16FC or use FM ME_REL_INFO. Refer to exporting table " rel_final".

Create a Flag field in the WF container "NOTIFY_CLERK" .Once you identify that this is final step, you can set the flag and then use "CONDITION" step in the workflow and send the workitem for review to purchasing clerk.

Regards

Sandy