Skip to Content
avatar image
-1
Former Member

How to add leading blank in CDS view?

As of now, if use string function in CDS view, the leading blank will be removed automatically, so I have requirement that add leading blank in some CDS view field. but how to archive this ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jun 27, 2017 at 09:46 AM

    SAP's documentation does not say that leading blanks are generally removed in string functions. Why do you think so?

    https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abensql_functions_string.htm

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      I use substring and lpad and replace string function in my CDS view ,after that the leading blank is disappeared, so I don't know which string function can I use to add leading blank