‎2007 Feb 15 3:59 AM
hi,
how to avoid leading zeroes ,if suppose i want to display only 8 as my employee number rather than 000000008 .
i dnt want to go for any FM.
points assured,
thanks
‎2007 Feb 15 4:01 AM
‎2007 Feb 15 4:01 AM
‎2007 Feb 15 4:01 AM
‎2007 Feb 15 4:02 AM
hi Ganesh,
Pass these values to a interger variable to avoid leading zeros
i.e,
data : var type i value '000000008'.
write : var.Regards,
Santosh
‎2007 Feb 15 4:03 AM
Hi Ganesh,
Use command as below
SHIFT <FLD> LEFT DELETING LEADING '0'.
Note the value ZERO should be using with quotes.
Regard,
Priyanka.
‎2007 Feb 15 4:05 AM
‎2007 Feb 15 4:08 AM
do this way
data: str type string.
str = '00000000000000654654'.
call function 'CONVERSION_EXIT_ALPHA_OUTPUT'
exporting
input = str
IMPORTING
OUTPUT = str.
write:/ str.
‎2007 Feb 15 4:09 AM
‎2007 Feb 15 4:07 AM
ganesh,
Use FM,"CONVERSION_EXIT_ALPHA_OUTPUT"
Pls. mark if useful
‎2007 Feb 15 4:08 AM
‎2007 Feb 15 4:11 AM
Dear no need FM
use following codding for that
data str type n.
str = '0000008'.
shift str LEFT DELETING LEADING '0'.
write:/ str.
Rewards if helpful.