Skip to Content

How to extend standard CDS view that expose a LCHR field

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?

lchr-error.png (192.5 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Mar 03, 2019 at 11:19 AM

    Hi Edoardo, This thread from Horst Keller may help

    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



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.