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

HANA calculation view, temporal tables and processing data by rows

$
0
0

Hi,

I have a question about using HANA sql script in calculation view for BW.

I'm trying to move the logic from application server to HANA DB. And I'm trying to find some objects to process data row-by-row like LOOP in internal tables in ABAP.

The task is to realize some complex logic - to read data from 3 DSO, to calculate some fields, check some conditions and delete some strings in the result and so on.

 

I've read most of the topics founded by search on "temporal tables in calculation view", "loop in calculation view" and so on. And i've made several experiments.

From them i understood that:

1. I can't use temporal tables in calculation view because calculation view is always read-only.

2. I can't make another procedure, use temporal tables and call it from my calculation vew because read-write procedure can not be called from read-only procedure. So I can't use  temporal tables at all.

3. I can use cursors but it is impossible to insert or delete some data in cursor.

4. I've found a blog Using SQLSCRIPT ARRAY as "Internal Table" to deal with complex logic about using separate array for every field of "internal table" which i need. But as for me, this variant is too difficult in debugging, understanding, supporting and so on.

 

I understand that using joins and unions is preferable variant, but I think that my task really could not be solved by joins and unions.

Before HANA on classic BW I used a "virtual cube" technology for such tasks. I can return to processing data in ABAP in virtual cube for current task.

But before doing this, I'd like to ask: have I understood correctly that the variant with arrays from that blog is the only one possible variant of realizing "internal tables" in calculation views? If there are other variants, I'd be very glad to get some links to read, keywords, ideas and so on.

 

Sorry for doubleposting, I firstly posted this question in "BW on HANA" section, but I suppose that here i have more chance to get the answer. Thanks.


Viewing all articles
Browse latest Browse all 2823

Trending Articles



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