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

Re: Loop a result set and do some calcuation to get stock data

$
0
0

Hi,

 

Giving an example:

 

I have a database table

 

Table1 with fields Plant, Material, Movement Types, Quantity.

Table2 with fields Plant, Material, Starting Quanity

 

Now I want to create a calculation view:

Logic : Table2.Starting Stock +- Table1.Movements (This can be Plus or Minus based on Movement types) for each material and Plant combination.

 

Here I need loop and temporary tables. How can we achieve such iterative solutions in HANA SQL script?..Is there an option to update data in internal tables / table types

 

Thank you

Happy Tony


Viewing all articles
Browse latest Browse all 10482

Trending Articles



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