cancel
Showing results for 
Search instead for 
Did you mean: 

Increment counter function in sap build process automation

12-16-2025 4:56 PM
liskaj01 Participant
325 views 1 comments
0 Likes
SAP Managed Tags
Subscribe

Hi, can someone please explain how initialize counter and increment counter functionality works in sap bpa? I am not able to make it work (count loops for example). My use case would be to increment value by 1 everytime when automation gets through the loop and condition is met. So far I am only able to retrive indexes for loops but not only when condition is met. I believe for this case the increment counter could work. Many thanks.

@Chaitanya_Priya, @peterengel

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

Vennilla00
Explorer
0 Likes

Hello @liskaj01 ,

The initialize counter and increment counter functions aren’t suitable for your requirement.

  • Recommended approach: If you need to count loop iterations, use a forever or foreach loop—these provide an index value starting from 0, which you can use for counting.

forever.png

  • Alternatively, you can create a number variable and increment its value by 1 within the loop to achieve the same result.

using var.png