on 02-11-2022 11:41 PM
We need to provide an OData service for the long texts of a document. These texts are stored in STXH/STXL and are accessed by READ_TEXT FM and similar. We are working with S/4HANA 2020 system and ABAP RAP model (well, trying to, at least).
Using CDS views, the only option to provide these texts is to use a virtual element, as explained here and here. All is well but there is max length of 1033 characters in CDS string. We are dealing with some very long texts, unfortunately, that will exceed that.
Question: in 2022, how do we resolve this? Should we forget about CDS views and just use completely custom implementation in SEGW? Is there any other option? Splitting text into several variables or separate records would be undesirable.
Edit: this scenario does not involve SAP Fiori / UI5, so we don't care for CDS advantages in this area.
Thank you!
Some CDS limits like the above one and the total 4096 char limit is really problematic sometimes. For your scenario, I think just resolving on ABAP layer in a service would contain less moving part. I like doing everything with CDS but some limitations and workarounds to that limitations are creating technical dept. I think keeping simple with a SEGW custom implementation would be cleaner and leaner.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
9 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.