2012 May 28 1:02 PM
Hi,
may i know how to do the zero padding to a field
example: one field contains the value 4445 , for this value i want to add zero's before 4445 value.
for fixed length we have to add zero's (how many digits need that much zero's we will add)
thank you
Moderator message - basic question locked.
Message was edited by: Rob Burbank
2012 May 28 1:06 PM
Hi,
Use the conversion exit
'CONVERSION_EXIT_ALPHA_INPUT'. Make sure that your variable is of suitable length, upto which you want to add zeros. It will add leading zeros to the given value.
Hope it helps. Thank you.
Regards,
kartik
2012 May 28 1:27 PM
2012 May 28 1:09 PM
Hi,
Usually SAP has those handled internally using Conversion exits.
For many fields u would find conversion exits( like for sales order VBELN), SAP adds additional zero's as and when required.
U can use FM CONVERSION_EXIT_ALPHA_INPUT for achieving the same.
2012 May 28 1:28 PM
2012 May 28 1:12 PM