‎2007 Mar 16 10:48 AM
Hi all,
I have KUNNR(10 characters)....Suppose if the KUNNR is '001'. I want to display it as '001' only.
Presently ALV is deleting these zeoros...
Note: I tried lzero = 'X'. but still doesnt work..pleaese help
‎2007 Mar 16 10:51 AM
‎2007 Mar 16 10:52 AM
hi
use FM
CONVERSION_EXIT_ALPHA_INPUT
CONVERSION_EXIT_ALPHA_OUTPUT
**Please reward suitable points***
With Regards
Navin Khedikar
‎2007 Mar 16 10:53 AM
use CONVERSION_EXIT_ALPHA_INPUT and pass the KUNNR value to it
It will return with leading zeroes
loop at itab into wa_itab.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = wa_itab-kunnr
IMPORTING
output = wa_itab-kunnr.
modify itab from wa_itab.
endloop.
Message was edited by:
Chandrasekhar Jagarlamudi
‎2007 Mar 16 10:56 AM
hi
lzero works for NUMC type only.
use FM CONVERSION_EXIT_ALPHA_INPUT
regards,
madhu
‎2007 Mar 16 11:11 AM
till the alv grid display function module is encountered the KUNNR value is '001'.
After that function module is executed(i.e)report is displayed, the zeros vanish!
It doesnt make sense to use conversion exit function modules to input zeros because the kunnr values already has zeros. Just when it is displayed on alv they vanish. problem still not solved.
Note: kunnr is declared as kna1-kunnr.