Hi Stebhieb Olibabu,
Declare your datatype as 'N' , it will automatically gives you the leading Zeros
Example :
Data : Value(10) type n value '123'.
write : value.
the output will come as
0000000123
Hope it solves your issue
Regards,
Vijay SR