Skip to Content
0
Former Member
Jun 08, 2011 at 03:22 PM

Integer values in table control

192 Views

Hello Experts,

I had created a column of type numc in my table control.

I had applied the logic that when user fills first row then after pressing 'ENTER' all rows of this column will fill automatically with corresponding serial numbers. This logic is working correct.

Now my problem is, I need to display integer values in 3 digits like, if user enters 1 in first row then data should appear as:

001

002

003

.

.

.

010

.

.

I had taken field in abap program as numeric type with length 3 and in Table control type NUMC length 3.

I had checked in the debug mode in abap, field contains data in 3 digits but when values are assigned to table control then zeros are automatically suppressed. What should I do to display values in table control in 3 digits.

Please help.