Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Extend CDS View with an Empty RawString Field

Stefan-Schnell
Active Contributor
3,402

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

1 ACCEPTED SOLUTION
Read only

Stefan-Schnell
Active Contributor
0 Likes
2,181

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

2 REPLIES 2
Read only

Stefan-Schnell
Active Contributor
0 Likes
2,182

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

Read only

2,181

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