Skip to Content
0
Former Member
Feb 24, 2009 at 04:30 PM

keyword for Prefixing Materia No with zeros to get standard 18 digit format

30 Views

Hi all,

I have a requirement where I have to do prefix zeros to material number t o make it standard 18 digit format.

I am getting the value of MAT_NO from an XML file and it is 678. but I need to make it u2018000000000000000678u2019.

If my material no is u20181u2019 I need to make it u2018000000000000000001u2019

If my material no is u20184272323u2019 I need to make it u201800000000004272323u2019.

My material number is not constant and is dynamic and I need to make it to standard 18 digit format by prefixing with zeros.

Do we have a Key word in ABAP to achieve this?

Any help will be highly appreciated.

Regards,

Jessica Sam.