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

DIFFERENCE 'CONVERSION_EXIT_ALPHA_INPUT' and 'CONVERSION_EXIT_ALPHA_OUTPUT'

former_member841898
Participant
0 Likes
26,741

HI EXPERTS,

can anybody please explain to me IN DETAIL what is the actual difference between function 'CONVERSION_EXIT_ALPHA_INPUT'

and 'CONVERSION_EXIT_ALPHA_OUTPUT'

WHY WE USE THEM AND WHEN TO USE THEM?

PLEASE SEND SOME CODE RELATED TO THIS.

thanks

pankaj.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
9,264

Hi,

CONVERSION_EXIT_ALPHA_INPUT

converts any number into a string fill with zeroes, with the number at the extreme right

ALPHA conversion is used especially with account numbers. During conversion from the external to the internal format, the system checks to see if input in the INPUT field is purely numeric, that is, if this input consists only of numbers, possibly with spaces before and after them. If this is the case, then the number string is inserted right- justified in the display field OUTPUT and all spaces to the left of the value are filled with zeroes ('0'). If the input is not purely numeric, it is inserted in the display field from left to right and all extra spaces are filled with blanks.

Example:

(Input field and output field are both eight characters in length)

1. '1234 ' --> '00001234'

2. 'ABCD ' --> 'ABCD '

3. ' 1234 ' --> '00001234'

Conversion from the internal to the external format (function module CONVERSION_EXIT_ALPHA_OUTPUT) is undertaken in exactly the opposite manner.

CONVERSION_EXIT_ALPHA_OUTPUT

converts any number with zeroes right into a simple integer.

Ex:

'00001234'-->1234

regards

Sandipan

8 REPLIES 8
Read only

Former Member
0 Likes
9,265

Hi,

CONVERSION_EXIT_ALPHA_INPUT

converts any number into a string fill with zeroes, with the number at the extreme right

ALPHA conversion is used especially with account numbers. During conversion from the external to the internal format, the system checks to see if input in the INPUT field is purely numeric, that is, if this input consists only of numbers, possibly with spaces before and after them. If this is the case, then the number string is inserted right- justified in the display field OUTPUT and all spaces to the left of the value are filled with zeroes ('0'). If the input is not purely numeric, it is inserted in the display field from left to right and all extra spaces are filled with blanks.

Example:

(Input field and output field are both eight characters in length)

1. '1234 ' --> '00001234'

2. 'ABCD ' --> 'ABCD '

3. ' 1234 ' --> '00001234'

Conversion from the internal to the external format (function module CONVERSION_EXIT_ALPHA_OUTPUT) is undertaken in exactly the opposite manner.

CONVERSION_EXIT_ALPHA_OUTPUT

converts any number with zeroes right into a simple integer.

Ex:

'00001234'-->1234

regards

Sandipan

Read only

Former Member
0 Likes
9,264

CONVERSION_EXIT_ALPHA_INPUT is used to pad 0's to a

variable ..

If 1234 is the input .. and is a 10 char long variable .. the

result of this FM .. 0000001234

CONVERSION_EXIT_ALPHA_OUTPUT removes the leading

zeroes ....

Read only

0 Likes
9,264

Hi,

Conversion exit ALPHA, external->internal

ALPHA conversion is used especially with account numbers. During conversion from the external to the internal format, the system checks to see if input in the INPUT field is purely numeric, that is, if this input consists only of numbers, possibly with spaces before and after them. If this is the case, then the number string is inserted right- justified in the display field OUTPUT and all spaces to the left of the value are filled with zeroes ('0'). If the input is not purely numeric, it is inserted in the display field from left to right and all extra spaces are filled with blanks.

Example:

(Input field and output field are both eight characters in length)

1. '1234 ' --> '00001234'

2. 'ABCD ' --> 'ABCD '

3. ' 1234 ' --> '00001234'

Conversion from the internal to the external format (function module CONVERSION_EXIT_ALPHA_OUTPUT) is undertaken in exactly the opposite manner.

regards,

Sreekanth.G

Read only

Former Member
9,264

'CONVERSION_EXIT_ALPHA_INPUT' ................this conversion exit converts the data into internal foramt ....

'CONVERSION_EXIT_ALPHA_OUTPUT' ..............this conversion exit converts the data into display format...

these 2 conversion exits r used to convert small letters into capital letters in string...............

Read only

Former Member
0 Likes
9,264

hi,

'CONVERSION_EXIT_ALPHA_INPUT'

in this case suppose u have the internal defined material code '123' and u want the output of the code with lead zero

ie. if material code is of 18 digits and number is on 123

then if u use this code u will get 0000000000000123.

if the value in the database is stored like leading zeros

then if u pass with out lead zeros to ur select options it wont

pick the value, so inorder to fetch the value u have to pass

with leading zeros.

'CONVERSION_EXIT_ALPHA_OUTPUT'

in this if u pass through leading zero u will get out put with out leading zero.

Reward if helpful.

Regards.

Praveen.

Read only

Former Member
0 Likes
9,264

Hi pankaj,,

Simple just go to SE37 run the FM'S give the input and execute you ll notice easily..... there are lots of exits in SAP but it depends when we use this....

<b>reward if useful</b>

Regards,

sunil kairam.

Read only

Former Member
0 Likes
9,264

Conversion exit ALPHA, external->internal

ALPHA conversion is used especially with account numbers. During

conversion from the external to the internal format, the system checks

to see if input in the INPUT field is purely numeric, that is, if this

input consists only of numbers, possibly with spaces before and after

them. If this is the case, then the number string is inserted right-

justified in the display field OUTPUT and all spaces to the left of the

value are filled with zeroes ('0'). If the input is not purely numeric,

it is inserted in the display field from left to right and all extra

spaces are filled with blanks.

Example:

(Input field and output field are both eight characters in length)

1. '1234 ' > '00001234'

2. 'ABCD ' > 'ABCD '

3. ' 1234 ' > '00001234'

Conversion from the internal to the external format (function module

CONVERSION_EXIT_ALPHA_OUTPUT) is undertaken in exactly the opposite

manner.

Read only

Former Member
0 Likes
9,264

'CONVERSION_EXIT_ALPHA_OUTPUT is used to add leading Zeros

'CONVERSION_EXIT_ALPHA_INPUT is used to truncate leading zeros.