cancel
Showing results for 
Search instead for 
Did you mean: 

PR workflow for item level release (stock and non-stock)

Former Member
0 Kudos

Hello gurus,

I am not getting the agents.!!

I am creating a workflow for pr( item level release)..and using standard wf WS00000038 for this, as the standard wf contains the simple release procedure only but i have to add some custom steps to it, so i have copied this wf as custom wf .

In this wf i have to fetch the agents based on the "stock" and "non-stock items".

so i have maintained strategies and release code like:

i have maintained two strategies W1(non-stock) and W2(stock)..and release code for W1 are P1 and P2..here P1 i have given for my first level of approval and P2 for second level of approval.

The release code for W2 are P3 and P2..first level is P3 and second is P2.

so what i have did in a workflow , started with a condition step where i have given "releasecode = p1".. if yes than than it will go for getting approval from p1 , in this activity i am using standard rule 157.

The main thing is 1). i am not getting how to fetch agents using standard rule. 2)and how and where to define next level of approval for both stock and non-stock.

means by using condition step in the starting i am dividing workflow in two parts stock and non stock but how to proceed next.

i am really confused. should i use rules or write my own methods. please if anybody has gone through the same scenario than please suggest some points. i will really appreciate the help.

Kind Regards.

Himanshu

Accepted Solutions (1)

Accepted Solutions (1)

marcos_suarezhulet
Participant
0 Kudos

Hi Himanshu,

Just to clarify: the triggering event of this WF is RELEASESTEPCREATED from BOR BUS2009, these event is created:

1) when you create a PR

2) when a release is done

So, when step 2 happens, the workflow is triggered again and you should determine again the responsible.

If you always want the approval be processed by a manager, you can use this rule but if there is another logic to implement it is possible you have to develop a custom method.

About how to fetch agents, try the rule with PFAC transaction. There you can put values and view what is the result shown by the rul.

Former Member
0 Kudos

thanks for the reply:)

could you please elaborate a little more.

and please tell me how to divide these stock and non-stock items.

as i am using condition. but its not working correctly, so could u please give some suggestion on the same.

suresh_subramanian2
Active Contributor
0 Kudos

Hello HIM Joshi !

Did your MM consultant configured the release procedures without any flaws ?

If so, the rule that should be used is AC00000148.

Also, please check whether the manual release works fine( i.e., without workflow).Thereafter check the aforementioned rule at PFAC whether it populates agent ids as configured in release procedures.

Then incorporate this rule in the task for purchase requisition release.

Regards,

S.Suresh

Former Member
0 Kudos

Hello Suresh,

Thanks for your valuable reply..

yeah its working fine manually, and in workflow i am using two standard rules 157 & 148.

i have checked for 148 in PFAC ..and its fetching the agents..but 157 is not fetching the agents.

and i have one more doubt like:

like in my workflow for stock items first p1(release code) will approve and than next level would be p2(release code).

so my question is where to add this next level approval p2 in workflow, should i add this p2 with the "positive confirmation" of p1

please help me out of this issue.

Kind Regards,

Him joshi

suresh_subramanian2
Active Contributor
0 Kudos

Hello HIM Joshi !

Include the task TS00007986 and all its branches and in a loop and loop around it for two times.When the loop goes for the first time, it should pick the first agent and during its second iteration, it should pick the second agent.

To accomplish so, In the same loop, but before the above task , include a background task which should populate the agent ids depending on stock and non-stock details and pass it to the the task TS00007986

That's all.

Regards,

S.Suresh

Former Member
0 Kudos

yeah thanks again for your reply:)

i almost near to complete this wf..only one thing i am afraid of that for release code P1 there is no particular agent..this agent could be anyone..so for this i suppose to write custom method i guess..functional consultant has given me these details from where i have to fetch agent for p1:

Transaction-KS03

Table- CSKSZ

Field Name- VERAK_USER

how to proceed on this.?? i am not getting.

Kind Regards,

Him Joshi

suresh_subramanian2
Active Contributor
0 Kudos

Hello HIM Joshi !

Better you include the rule AC00000148 in the task TS00007986 and no need to have loop.

It will automatically pick the second agent once the first agent have released the document.

In my previous post, I mentioned to include background task.Please ignore it.

Regards,

S.Suresh

Former Member
0 Kudos

Hello thanks for your all the helpful replies!

i did exactly what you have suggested.

now what is happening is my workflow is working for stock items but its not working for non stock items.

as i told you before that i am using a condition step in the starting of my workflow to divide stock and non-stock based on this condition. but i have checked in my workflow log that while i am creating pr for non-stock items the workflow is not going further of that condition step.

the thing is for non-stock item there would be an owner for each cost-center , so i guess i am not getting that cost center values in my workflow.

please help me out!!

Kind Regards,

Him Joshi

Answers (0)