09-04-2008 9:56 AM
CONVERSION_EXIT_ALPHA_INPUT function module is not
working for this input... 1220A
how to make it work for my coding....
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = wresult-doknr
IMPORTING
output = wresult-doknr
.
SELECT single * FROM draw
WHERE dokar EQ wresult-dokar
and doknr EQ wresult-doknr
and dokvr EQ wresult-dokvr.
IF sy-subrc EQ 0.
write: / 'Success'.
endif.
endloop.
09-04-2008 10:00 AM
FM 'CONVERSION_EXIT_ALPHA_INPUT' will not add leading zeroes to '1220A' as it is an alphanumeric value. It adds leading zeroes to only numeric values.
Regards,
Aparna Gaikwad
09-04-2008 9:59 AM
Hello
1220A is alphanumeric data.... Function module 'CONVERSION_EXIT_ALPHA_INPUT' pads zeros only to Numeric Values...
Thanks
Amol Lohade
09-04-2008 10:00 AM
09-04-2008 10:02 AM
No need to add leading zeroes to alphanumeric values.
Regards,
Aparna Gaikwad
09-04-2008 10:00 AM
FM 'CONVERSION_EXIT_ALPHA_INPUT' will not add leading zeroes to '1220A' as it is an alphanumeric value. It adds leading zeroes to only numeric values.
Regards,
Aparna Gaikwad
09-04-2008 10:04 AM
Hi
It will give the same result even after passing to Function Module
Vijay
09-04-2008 10:04 AM
Hello
This FM deleting leading zero in input parameter.
Your parameter as 1220A have not leading zero.
09-04-2008 10:08 AM
hii
this FM is used for deleting leading zeros.
so if your value is like 0001224 then it will convert it as 1224.
if its 1224A then it will not do anything and will give you same output.
regards
twinkal
09-04-2008 10:09 AM
Hi,
The FM CONVERSION_EXIT_ALPHA_INPUT does not pad the zeros for alpha numberic values. it pads the zeros for numeric values. And the also in table DRAW you can find the leading zeros for only numeric values not for alpha numerics.
Regards,
Raju.
09-04-2008 10:15 AM
Hi,
If u want to append leading zeroes, then try below..
data : str type i,
data : doknr(25) type c.
str = strlen( wresult-doknr ).
doknr = wresult-doknr.
str = 25 - str.
do str times.
concatenate '0' doknr into doknr.
enddo.
SELECT single * FROM draw
WHERE dokar EQ wresult-dokar
and doknr EQ doknr
and dokvr EQ wresult-dokvr.
Regards,
Meet