Application Development 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: 

How to add leading blank in CDS view?

kalfen_xu2
Employee
Employee
0 Kudos

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 ?

2 REPLIES 2

horst_keller
Product and Topic Expert
Product and Topic Expert

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_...

0 Kudos

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