Thanks Shree
Your suggestions make total sense, Yes, Table 2 is an analytic view so I added an Group By and Order By.
I also see what you mean by VAR_2 so I eliminated VAR_2 through VAR_7 because they feed Var_8. This makes formulas longer but eliminate this issue as one formula variable feeds the next.
Since I am trying to do a While Do against Var_8, should I be adding a output variable against the procedure instead? I keep getting an error "SAP DBTech JBDC: [260] (at 112): invalid column name for Var_8.
The issue is I want to do a While Do against my last column (i.e. Var_8) in the table but how do I do a While Do such that this value stops when greater than zero,
.
This is why I am wondering if my procedure should specify an output instead? Or do I declare a variable equal to Var_8 I can't seem to get past an invalid column for While Do Var_8 > 0. .