‎2006 Oct 10 11:18 AM
HI ,
I there any function module to delete unnessary zero numbers .. example at the moment the number is '040' want to display in the alv as '40'..any example regarding this is helpfull..
Thxs,
vind.
‎2006 Oct 10 11:19 AM
‎2006 Oct 10 11:19 AM
‎2006 Oct 10 11:19 AM
‎2006 Oct 10 11:20 AM
Please use this FM
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = variable
IMPORTING
OUTPUT = variable
This should be done before passing the values to the grid.
IF you dont want to change the values in the internal table then change the fieldcat of the field to fcat-no_zero = 'X'.
Message was edited by: Dominic Pappaly
‎2006 Oct 10 11:21 AM
hi vind,
check the FM <b>CONVERSION_EXIT_ALPHA_OUTPUT</b>
call function 'CONVERSION_EXIT_ALPHA_OUTPUT'
exporting
input = itab-matnr
importing
output = itab-matnr.
endif.
hope this helps,
do reward if it helps,
priya.
Message was edited by: Priya
‎2006 Oct 10 11:23 AM
hi vind,
FM <b>'CONVERSION_EXIT_ALPHA_OUTPUT'</b> removes only the leading<b> zeros</b>.
ie. 00099 to 99.
data: number(15) value '23516000',
zer(5) value '0'.
shift number right deleting trailing zer.
write number.
Reward points if it s helpful
Regards
Alfred
‎2006 Oct 10 11:37 AM
Hi,
Before appending that number into the internal table
use PACK.
e.g. PACK(field) into field.
Hope this will help.
-Umesh