Skip to Content


Jul 06, 2017 at 03:12 PM


avatar image

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.


Ashish T.

cds-view.jpg (24.8 kB)
error-cds.jpg (70.2 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Horst Keller
Jul 06, 2017 at 04:30 PM


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?

Show 4 Share
10 |10000 characters needed characters left characters exceeded

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.


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.


Thanks for your valuable time. :)


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