Skip to Content
1

Extend CDS View with an Empty RawString Field

Aug 18, 2017 at 10:21 AM

78

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Stefan Schnell
Aug 25, 2017 at 12:57 PM
0

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

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

If you don't need the annotations, that's a good idea.

1