on 10-14-2009 12:28 PM
Hi All,
My req is like this. Whenever a Po is created than Po workflow should be triggered and it is 8 level approval.
But for a perticular Costcenter it should be three level.
2) For any level if the approver is on leave for 4 days than another approver should Approve. So how can we handle this.
Thanks.
Hi,
I think you can code these cases with certain parameters in an activity step which can be run in background and get the information into workflow.
Orlese create a ztable which can be configurable and goahead by reading those details in the WF background activity step.
Regards
Narin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create a method and in background activity step pass the cost center for which you need to have 4 approval level and else treat as 8 levels.
Keep the approval step in a loop and read the each agent and send the workitem to that agent.
if you determine that the agent is the last approved agent then set a flag to 'X' and in loop codition ensure that if its 'X' it terminates the loop.
Revert for any more clarifications
Regards
Narin
Hi Narin,
Thanks for your reply, Actually at cost center level configugaration will be done by Functional people , But here they dont want to
do in release procedure. So is there any other way we can handle this in WF .
You said in last reply that create a background method and pass cost center.. Can u explain in detail what need to in that method..
Thanks.
Hi Srinu,
1) My req is like this. Whenever a Po is created than Po workflow should be triggered and it is 8 level approval.
But for a perticular Costcenter it should be three level.
2) For any level if the approver is on leave for 4 days than another approver should Approve. So how can we handle this.
Please check below mentioned points:
"check the below processs at method level.
1) As you said that for a particular cost center there would be 3 level of approval.
Sol:-
A) In one method ie M1 identify all the agents and send the table of agents to WF and bind that to a background activity step.
B) In another method M2 send the agents table to a method and also the step counter to read the agents table based on the index
counter and export that particular agent to WF (bind it to a WF container element) and at agent type of WI select as
Expression and give that variable.
C) Create a method M3which takes input as cost center and step coutner exports the agent and a final flag like.
" if cost center EQ 'XYZ' or step_counter eq '8'
final_flag = 'X'.
else.
final_flag = ' '.
endif.
"In Workflow template
"first create a loop until step and in it create the below steps:
i) create a background activity step for step A.
ii) create a background activity step for step B.
iii) Create a decision step and select the agent type as Expression to send it to the agent derived in step to and
slect the container element.
iii) create a background activity step for step C.
iv) Ensure that all this will be in a LOOP STEP so that it would be iterated until the final_flag = 'X'.
Hope this would help you and solve your issue.
Revert for any clarifications.
Regards
Narin
Hi,
Yes I think you can either maintain them in Ztable if those agents are configurable like may be changed in future if not hardcode them.
I thought these 3 agents are a part of those 8. aren't they?
Sorry i forgot to give the suggestion for point 2.
2) For any level if the approver is on leave for 4 days than another approver should Approve. So how can we handle this
You can use Modelled deadline monitoring which is LATEST END and in that branch create a activity step and send the WI ID
whcih can be a background acitvity and you can forward that workitem to the other agent using
*SAP_WAPI_FORWARD_WORKITEM* which is executed in a method.
Check this link for [ LATEST END|http://wiki.sdn.sap.com/wiki/display/ABAP/Workflow+Scenario] implementation in section 3.4.2
Hope this would help you.
Regards
Narin.
Hi Srinu,
Could you please provide the soulution how u triggered the workflow based on cost center level.
i have the requirement to approve based on the cost center.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.