Application Development 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: 

ALV display

Former Member
0 Kudos

In my ALV report i have a field in which the values are displayed as 000000114,000000115 etc...but i need it to be displayed as 114 , 115 . i need to eliminate the leading zeroes.How do i do it...please help me out.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Vignesh,

Try the elading zeros using the FM

<b> CONVERSION_EXIT_ALPHA_OUTPUT</b> before passing it to the internal table for calling the ALV FM.

Cheers

VJ

6 REPLIES 6

Former Member
0 Kudos

Hi Vignesh,

Try the elading zeros using the FM

<b> CONVERSION_EXIT_ALPHA_OUTPUT</b> before passing it to the internal table for calling the ALV FM.

Cheers

VJ

Former Member
0 Kudos

Hi Vignesh,

Set the ‘<b>LZERO</b>’ property value to false for the particular field to which you need not required leading zero and populate the field catalog ,then pass the field catalog to the ALV display function module.

Hope this will solve your problem

Thanks & Regards,

Vimalan Ram

nishanthbhandar
Contributor
0 Kudos

The ALV reference structure will have a field for you to mention the conversion exit to be used before display.See reference structure LVC_S_FCAT field CONVEXIT which is used to build the fieldcatalog.

Former Member
0 Kudos

check LZERO in Field Catalog.

Regards

Prabhu

Former Member
0 Kudos

Hi,

In the fieldcatalog set

<b>fieldcatalog-LZERO = ' ' or fieldcatalog-NO_ZERO = 'X'.</b>

<b>LZERO</b>

Relevant only to fields of data type NUMC. In the default

setting, the ALV Grid Control displays these fields right

justified without leading zeros. If you set LZERO, leading

zeros are displayed.

<b>NO_ZERO</b> If NO_ZERO is set, no zeros are displayed for initial value

fields. The cell remains empty.

Regards,

Raghav

Former Member
0 Kudos

HI

GOOD

CONVERSION_EXIT_ALPHA_OUTPUT converts any number with zeroes right into a simple integer

Example:

input = 00000000000123

output = 123

THANKS

MRUTYUN