Skip to Content

ABAP string data type can't be used in SAP ABAP CDS VIEW

Hi Expert,

I create a ABAP CDS view on a table including a string type field, if I try to use all string functions (such as : substring/length/left ) , I get following error message. my question is how to use this string type field in CDS view? if can't , how to convert this string type into other similar types (such as sstring/char etc)?

Many Thanks,

3.png (13.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    Oct 19, 2017 at 07:58 PM
    Add comment
    10|10000 characters needed characters exceeded

  • Oct 20, 2017 at 11:59 AM
    -1

    Hi , is this restriction for using ABAP CDS view ? we can't use string field in the source table?

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 20, 2017 at 08:44 PM

    Thanks , as my field use string type in the table, is it possible to convert this string type into char or sstring type? as this table has been used, we don't want to change its string type in table level.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 20, 2017 at 06:51 PM
    Add comment
    10|10000 characters needed characters exceeded

  • Oct 08 at 11:58 AM

    Hi Bo Zhang,

    is your issue resolved? I have the exactly the same problem here but no solution yet.

    BR,Rui

    Add comment
    10|10000 characters needed characters exceeded