Skip to Content
avatar image
Former Member

CONVERSION_EXIT_ALPHA_INPUT

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

7 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 04, 2008 at 09: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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 04, 2008 at 08:59 AM

    Hello

    1220A is alphanumeric data.... Function module 'CONVERSION_EXIT_ALPHA_INPUT' pads zeros only to Numeric Values...

    Thanks

    Amol Lohade

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 04, 2008 at 09:04 AM

    Hi

    It will give the same result even after passing to Function Module

    Vijay

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 04, 2008 at 09:04 AM

    Hello

    This FM deleting leading zero in input parameter.

    Your parameter as 1220A have not leading zero.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 04, 2008 at 09: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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 04, 2008 at 09: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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 04, 2008 at 09: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

    Add comment
    10|10000 characters needed characters exceeded