Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

SQLScript and CE Functions

$
0
0

Hello,

 

I am new to the world of HANA, and I am writing a stored procedure which will be used in my calculation view.

 

The table data I will be working with is as below.

 

MARC-WERKS (Site)MARC-MATNR (Article)MARA-MATKL (Category)CUSTOM Field
00011CAT1A
00012CAT1A
00013CAT1B
00014CAT2B
00015CAT2A
00016CAT1B

 

And my requirement is to get the number of times of the custom field data's recurrence aggregated by site and category, Example output shown below.

MARC-WERKS (Site)MARA-MATLK (Category)Number of A'sNumber of B's
0001CAT122
0001CAT211

 

I have an understanding of how the calculation engine functions work, though it is structuring the SQLScript to calculate the number of times A and B recur per site/category which I am struggling to work out.

 

Hopefully I am on the right track with this!

 

Many thanks!


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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