Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Integer values in table control

Former Member
0 Likes
926

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.

1 ACCEPTED SOLUTION
Read only

Kiran_Valluru
Active Contributor
0 Likes
734

Hi.,

In your Module Pool Go to Element List Tab In that Go to Display Attributes Tab., Now For that Column which you want to display 001 002 like that Select Leading Zeros Check Box ( 5th column ) .

Then it will come like what you want..

hope this helps u.,

Thanks & Regards,

Kiran

3 REPLIES 3
Read only

Kiran_Valluru
Active Contributor
0 Likes
735

Hi.,

In your Module Pool Go to Element List Tab In that Go to Display Attributes Tab., Now For that Column which you want to display 001 002 like that Select Leading Zeros Check Box ( 5th column ) .

Then it will come like what you want..

hope this helps u.,

Thanks & Regards,

Kiran

Read only

Former Member
0 Likes
734

Hi,

Double click on your Input Screen in the table contro then go to the Attributes and

Under the DICT Tab you find Format. Here enter NUMC as the field type

For more info go to VA01 Tcode and take F1 help on POSNR field(Sales ITem) and check it

Cheerz

Ramchander Rao.K

Read only

Former Member
0 Likes
734

Thank you.

Solved