cancel
Showing results for 
Search instead for 
Did you mean: 

How to extend standard CDS view that expose a LCHR field

edoardo_rota
Explorer

Hi everybody,

I am currently trying to extend a standard CDS view (for reference purpose, it's 'C_BusinessPartnerAddress') to expose new fields.

When activating I am receiving an error related to the field WebsiteUrl (data type LCHR), exposed by the view I am extending.


The issue here seems to be that since the field hasn't a fixed length it has to be in the final position of the table, but the extension view appends the new fields at the bottom of the original one.

Is it possible to extend a standard CDS view that exposes a field with LCHR/LRAW data type without modifying standard code?

Accepted Solutions (1)

Accepted Solutions (1)

Jocelyn_Dart
Product and Topic Expert
Product and Topic Expert

Hi Edoardo, This thread from horst.keller may help

https://answers.sap.com/questions/463260/abap-on-hana-how-to-convert-lraw-to-character-or-s.html

It's a good idea to include your S/4HANA version...

There's a new feature in ABAP CDS in S/4HANA 1809 called Virtual Elements that might provide an easier approach

https://help.sap.com/viewer/cc0c305d2fab47bd808adcad3ca7ee9d/201809.001/en-US/a7fc007921d44263b09ccc...

Rgds

Jocelyn

Answers (1)

Answers (1)

former_member635136
Discoverer
0 Kudos

Hello Edoardo

I've the same issue how did you resolve it please.

Regards

Nadim