cancel
Showing results for 
Search instead for 
Did you mean: 

How to add leading zeros to a characteristic in CT04

Former Member
0 Kudos

The business is requesting that we change a class characteristic so that it adds leading zeros. Currently the characteristic is set as numeric with length of 6, no decimals. Is there any way via template or otherwise to force this characteristic to store leading zeros, as recorded against the characteristic?

Accepted Solutions (0)

Answers (1)

Answers (1)

Dsk
Active Contributor
0 Kudos

Hi David,

1. If you are mentioning about the "Characteristics"This is Standard Field name.

2. You will not be able to influence the same,

3. Also i doubt if you are talking about the Characteristic Value - Since only in the Char Value we will be able to define the length, etc.

4. In case of Charvalues if you want leading zeros then create it as character , where you can store with leading zero

Reg,

Dsk

Former Member
0 Kudos

Thanks. I am referring to the characteristic values. I realize that setting the characteristic to CHAR type is the best solution, but one cannot change the data type of an existing characteristic. I am hoping there is something I can do to allow leading zeros for the existing characteristic because this characteristics is hard-coded in several developments and I would hate to go to the work to modify those developments to point to a different characteristic.

former_member183879
Active Contributor
0 Kudos

Hi,

If your char is in NUM format, there are fields like number of characters, decimals etc. Also there are fields for Templates and Exponent display. Please explore these two fields, Using these fields, it is possible to enable leading zeros for the characteristics (Is it leading zeros or trailing zeros!)