Skip to Content
-1

How to add leading blank in CDS view?

Jun 27, 2017 at 09:09 AM

61

avatar image

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 ?

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

1 Answer

Horst Keller
Jun 27, 2017 at 09:46 AM
1

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

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

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

0