on 03-19-2019 9:32 AM
Hello Experts,
I am trying to read a RAW field from a table in the CDS view and trying to read the offset based on the SUBSTRING function.
How ever i need to do a CAST operation in order to do substring operation.
I get an error message saying that CAST operation is not supported for the RAW data type.Can you please suggest how to achieve in SAP HANA ?
Thanks,
Vijay.
Its not possible alternatively used an AMDP class to do the conversion in ABAP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use the function Bintohex to cast from Raw to Char:
https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-us/abencds_f1_sql_functions_byte.htm
After that you can use the substring function.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And with NW 7.4?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.