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

ALV Leading ZERO issue

Former Member
0 Likes
5,650

There is leading zeros in internal table passing to FM 'REUSE_ALV_GRID_DISPLAY'

but i am not able to see the leading zero in alv report display. how fix this.

There is leading zeros in internal table passing to FM 'REUSE_ALV_GRID_DISPLAY'

but i am not able to see the leading zero in alv report display. how fix this.

5 REPLIES 5
Read only

naveen_inuganti2
Active Contributor
2,152

Hi...,

Pass the same field into fieldcat table with LZERO field as X.

because By default, NUMC fields are output in the ALV right-justified without leading zeros.

Thanks,

Naveen.I

Read only

0 Likes
2,152

Thanks Naveen

Read only

2,152

What You're all saying is wrong.

Supposed that You have field of type that requires conversion routine (e.g. MATNR)

you need to set NO_CONVEXT = X in the field catalog so that the conversion routine for OUTPUT is not called.

Read only

Former Member
0 Likes
2,152

Hi,

U can use the field lzero = 'X' [ leading zero] of the fieldcatalog available in RESUE_ALV_GRID_DISPLAY FM.

Thanks

Sudharshan

Read only

Former Member
0 Likes
2,152

hi

check out

have u added no_zero(1) type c, in fieldcatalog.

if yes than remove it.

else

pass the value by function module 'CONVERSION_EXIT_ALPHA_INPUT' .

hope this will help u.