Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9080

Re: How to do a WHILE DO loop on data from a SQL Calculation View

$
0
0

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. .


Viewing all articles
Browse latest Browse all 9080

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>