Application Development and Automation 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: 
Read only

CONVERSION_EXIT_ALPHA_INPUT

Former Member
0 Likes
1,855

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
Read only

Former Member
0 Likes
1,502

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
Read only

Former Member
0 Likes
1,502

Hello

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

Thanks

Amol Lohade

Read only

0 Likes
1,502

ya i know it,

then how to solve this

Read only

0 Likes
1,502

No need to add leading zeroes to alphanumeric values.

Regards,

Aparna Gaikwad

Read only

Former Member
0 Likes
1,503

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

Read only

Former Member
0 Likes
1,502

Hi

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

Vijay

Read only

Former Member
0 Likes
1,502

Hello

This FM deleting leading zero in input parameter.

Your parameter as 1220A have not leading zero.

Read only

Former Member
0 Likes
1,502

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

Read only

Former Member
0 Likes
1,502

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.

Read only

Former Member
0 Likes
1,502

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