Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Zeroes in a variable

Hi All

I have to update a field with a value of '001',i have assigned it like this.

Data: variabe(3) type c value'001'.

but when i am concatenating this field with another field these zeroe are getting deleted can any tell me how to get the leading zeros??

Thanks

Former Member
Former Member replied

if you use type n declaration then leading zeroes will be padded automatically.

Data: variabe(3) type n value'001'.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question