Skip to Content

Extend CDS View with an Empty RawString Field

Hello community,

I want to add an empty RAWSTRING field in a CDS view.

The datatype /gkv/cm91_bs_xlsx_datastream is RAWSTRING. But here I get an error message, that the casting of RAWSTRING is not possible. Is there any way to extend a CDS view with a field of the type RAWSTRING?

Background: This CDS view is the base of the mapping of a service implementation of a Gateway Service. It is necessary to extend the property of the entity of this Gateway Service with a datastream field to export an Excel file datastream with this service. In all other cases the base is a BOPF object and here it is so far no problem to do this steps.

Thanks for tips and hints.

Best regard
Stefan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Aug 25, 2017 at 12:57 PM

    Hello community,

    it seems that is not possible to do that, so I wrapped the CDS view in a structure and extended these structure with a rawstring field. These structure I use in my service and it works very good.

    Best regards
    Stefan

    Add comment
    10|10000 characters needed characters exceeded