cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

STRING_AGG function in SAP HANA SQL Script

Former Member
0 Likes
4,585

Hi,

We have HANA Revision 7.3.

STRING_AGG function seems to work when we just execute the query without assinging it to the value.

However as soon as we assign it to a value in a stored procedure or scripted Calcuation view, it fails.

Any ideas?

Thanks,

Hyun

 

View Entire Topic
ruediger_karl
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi,

please note that the STRING_AGG() function will not be supported earlier than SPS09. So, you found an undocumented feature. For now the feature is intended for SAP-internal usage only.

Regards, Ruediger

Former Member
0 Likes

It seems STRING_AGG appeared in the latest SAP HANA SQL Reference. Expressions - SAP HANA SQL and System Views Reference - SAP Library

lbreddemann
Active Contributor
0 Likes

Yes, as usual the documentation production is asynchronous with the actual product.

As long as product management, here represented by Ruediger doesn't release the feature officially it will stay in this half-supported state...

ruediger_karl
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi,

good news. The STRING_AGG() feature has been released earlier than expected. It is now officially supported - rev82 onwards.

Regards, Ruediger

Former Member
0 Likes

It will be a cool feature if STRING_AGG function is included in the list of

Semantic-> Columns panel -> Aggregate (list)  

Former Member
0 Likes

That would be awesome!

+1 on this idea

former_member184969
Participant
0 Likes

I Just putted it in the idea place. I think it's time to advertise 🙂

former_member184969
Participant
0 Likes

Hi

The STRING_AGG functions seems a bit limited by the fact that the <delimiter> has to be a constant. Is there any plan to make it compliant with variables or functions(like CHAR(13) ?

Thanks.

Astrid_Gambill
Contributor
0 Likes

Assuming you mean this - https://ideas.sap.com/D35515 - I just gave it a thumbs up.