on 01-30-2017 6:05 AM
I have a requirement to convert ABAP code in SAP HANA Calculation Graphical View, where I am looping an internal table and calculating value of a field in each iteration of loop. In Graphical Calculation View I am not sure how to put this requirement, any help is really appreciated.
Another requirement is to put Order by on 2 columns in same Calculation Graphical View, where Rank node allows Order by on only one column.
Regarding your first requirement for a loop I think depending on your calculation it might be easily solved a a calculated column. The expression of the calculated column is applied by default to each data record of the data source of a node. One comment regarding the "ABAP code conversion": Please do not try to convert your ABAP code 1:1 into HANA native objects. This will lead in most cases to performance and other issues. Try to use the new options and patterns of HANA.
Regarding the requirement to use two columns for ordering in a rank node it has to be said that in the graphical tools only one order column is supported at the moment. An option to use two order by columns would be, to use a table function as data source, in which you implement the "rank node" functionality by yourself using Window Functions.
Regards,
Florian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In my answer the official documentation for Window Functions is linked. There you can find all information about it and examples. You can also check the videos of the SAP HANA Academy regarding Window Functions (e.g. SQL Window function: Rank).
Regards,
Florian
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.