Appending Zeros at the start

Consider this scenario . MATNR holds 18 character .
Ex: 000000000000001368

Suppose you are passing 1368 for MATNR, there is a chance that it will not point to 000000000000001368.

In order to avoid this or to take precautions it is always better to append zeros to the left.

This can be done in many ways . The most easiest way is to use FM 'CONVERSION_EXIT_ALPHA_INPUT'

Ex:

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING  
     INPUT  = WA_MATNR
IMPORTING
   OUTPUT = WA_MATNR.

If WA_MATNR holds 1368 before using this FM , after this WA_MATNR will have 000000000000001368