‎2006 Aug 26 10:20 AM
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.
‎2006 Aug 26 10:35 AM
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
‎2006 Aug 26 10:35 AM
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
‎2006 Aug 26 10:48 AM
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
‎2006 Aug 26 10:50 AM
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.
‎2006 Aug 26 10:51 AM
‎2006 Aug 26 11:21 AM
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
‎2006 Aug 26 11:30 AM
HI
GOOD
CONVERSION_EXIT_ALPHA_OUTPUT converts any number with zeroes right into a simple integer
Example:
input = 00000000000123
output = 123
THANKS
MRUTYUN