Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

CONVERSION_EXIT_ALPHA_INPUT

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

9 REPLIES 9

Former Member
0 Kudos

Hello

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

Thanks

Amol Lohade

0 Kudos

ya i know it,

then how to solve this

0 Kudos

No need to add leading zeroes to alphanumeric values.

Regards,

Aparna Gaikwad

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi

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

Vijay

Former Member
0 Kudos

Hello

This FM deleting leading zero in input parameter.

Your parameter as 1220A have not leading zero.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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