Hi,
The solution is explained below.
First We have copied standard workflow WS 12500025 in to customized workflow.And the standard workflow is applicable only for single approval.in this workflow step Loop (Until) will check &l_counter& with &l_counter_max&,in this the initial value of the l_counter and l_counter_max is 1 and 2 respectively.due to this after first approval the Loop (Until) outcome is true and Loop (Until) will end.So we have increased initial value &l_counter_max& to 6(5 approval levels).
And in the standard workflow for Approve Budget step using standard rule to determine agents in the workflow.so we have removed standard rule and created custom rule.
Rule:
For rule determine we have created custom table with this fields(FM area(FIKRS),funds center(FICTR),WF level(counter),Agent(User ID)) and we will maintain(SM 30) this data in the table.
Rule Logic:
From workflow we are getting FMAREA,DOCUMENTYEAR,DOCUMENTNUMBER and l_counter details. Based on FMAREA,DOCUMENTYEAR,DOCUMENTNUMBER we will get the FUNDSCTR from table FMBL. After that based on FMAREA ,FUNDSCTR and L_COUNTER we will get agent from our custom table.
For rejection notification we have followed below doc.details. http://****************/Tutorials/Workflow/UD/Index.htm
Regards,
Vigneshwar.D