Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP ON HANA : How to Convert LRAW to Character or string in CDS/AMDP

mnrao
Advisor
Advisor
0 Kudos

Hello,

i am fetching field CLUSTD from table STXL and its datatype is LRAW. My requirement is to convert LRAW datatype to character or String. Please help me to get any CDS Function or any other approach.

5 REPLIES 5

horst_keller
Product and Topic Expert
Product and Topic Expert

CLUSTD is a field of an Export-/Import-table. It contains an SAP internal data format for data clusters that you cannot be used in programs and that cannot be accessed by ABAP CDS. Only the statement IMPORT FROM DATABASE makes sense. Converting hexadecimals to characters is trivial, but makes no sense for these data.

https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-US/abenexport_data_cluster_indx.htm?file=abe...

0 Kudos

Thanks Horst Keller for your explanation.I'm developing a report in HANA modeling.Our requirement is to display long text value(STXL-CLUSTD) in report output which we are achieving by using READ_TEXT function module in ABAP. Please help me to read long text values in HANA modeling.

There are some people who has the same problem.

Someone has solve the problem with oData service, which might help you.

https://stackoverflow.com/questions/45670353/read-text-similar-function-in-cds-view

horst_keller
Product and Topic Expert
Product and Topic Expert

Hmm, seems that you mix up cluster tables in table clusters with export/import tables.

Sandra_Rossi
Active Contributor
0 Kudos

Yes, thanks 🙂