cancel
Showing results for 
Search instead for 
Did you mean: 

Help in setting counter variables in workflow

Former Member
0 Kudos

hi experts,

How to set flags,or variables in a workflow.

Example i have 2 levels of approvals.1)Manager 2)HR

Now if the first one is approved,i am planning to set a counter variable(i=1) in the agent picking logic and in the workflow,so that based on the variable agent is picked up.

Is this an ideal approch.

I have conditions like cost center,alternate cost center in both cases i have different levels of apprvals.

So can i set two flags for each case.

Is that approch correct?

i am new to workflow,pleas e help

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Abap,

Yes you can use this.

But based on variable u need to select second approver means you have to create Ztable, so that you can pick second agent(If you have more than 10 options to selevct second approver).

If below 5 option for second approver, just create one method in your BO.Under this based on the counter varaible you can set AGENT2,then pass this variable to workflow then use inside the user decision.

Warm Regards,

Ragav

anjan_paul
Active Contributor
0 Kudos

Hi,

"How to set flags,or variables in a workflow"

  - Using Container  operation

"Example i have 2 levels of approvals.1)Manager 2)HR

Now if the first one is approved,i am planning to set a counter variable(i=1) in the agent picking logic and in the workflow,so that based on the variable agent is picked up.

Is this an ideal approch."

   - Yes, you can use this logic

"

I have conditions like cost center,alternate cost center in both cases i have different levels of apprvals.

So can i set two flags for each case."

  - Take a flag Total_No_of___approval. Take loop Until upto Total_no_of_approval. Increment Approval level in each loop using another variable.