Skip to Content

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

adding zeros to a string

Hi all,As you know mara-matnr field's lenght is 18 char, however in some cases the users do not fill all the length, for example they make it 15 char.

Here I need to add zeros at the beginning of the matnr, as it requires.

For instance, if the user has entered the matnr as 13 char: 1234567891234

then I need to make it as 000001234567891234..

How can I do it?

Thanks.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question