cancel
Showing results for 
Search instead for 
Did you mean: 

DUMP in UNIT_CONVERSION in CDS View

former_member212705
Active Participant
0 Kudos

Hello Experts,

I have written below code in CDS view , very basic code, present in ABAP documentation

but when i am running the code i am getting error code 2048

I checked the table T006 both units MI and KM are present( Length Units) .

I am stuck, dont know how to solve this issue. Its version 7.40.

Regards,

Ashish T.

Accepted Solutions (1)

Accepted Solutions (1)

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos

Under

https://help.sap.com/http.svc/rc/abapdocu_740_index_htm/7.40/en-US/index.htm?file=abencds_f1_convers...

you see the name of the shipped example program DEMO_CDS_UNIT_CONVERSION. Does this work?

What ABAP SP are you using? Is the Hana DB up-to-date? How did you. run the code? Is the database table filled?

former_member212705
Active Participant
0 Kudos

Hi Horst, thanks a lot for your reply. I like your blogs 🙂 🙂

When i executed DEMO_CDS_UNIT_CONVERSION same error occurred.

its ABAP 7.40 SP 0010. I ran the code from Hana studio "run as ABAP Application". i can see entries in T006. Hana DB is Release HDB 1.0 ,patch 300.

horst_keller
Product and Topic Expert
Product and Topic Expert

Since the demo program is available in your system, the AS ABAP should have a sufficient version.

Running as ABAP application from ADT is OK too. I assume, the same error occurs if you run from SE38.

The only explanation left is that your HANA DB does not support that function yet. You have to look up SAP notes or upgrade guides, which HANA version is sufficient for ABAP release 7.40.

former_member212705
Active Participant
0 Kudos

Thanks Horst i guess you are right, this will be the issue "HANA DB does not support that function yet".

former_member212705
Active Participant
0 Kudos

Thanks for your valuable time. 🙂

Answers (0)