‎2008 Mar 24 10:46 AM
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.
‎2008 Mar 24 10:48 AM
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
‎2008 Mar 24 10:48 AM
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
‎2008 Mar 24 10:50 AM
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 ....
‎2008 Mar 24 10:50 AM
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
‎2008 Mar 24 10:51 AM
'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...............
‎2008 Mar 24 10:55 AM
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.
‎2008 Mar 24 10:58 AM
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.
‎2008 Mar 24 11:02 AM
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.
‎2008 Mar 24 11:04 AM
'CONVERSION_EXIT_ALPHA_OUTPUT is used to add leading Zeros
'CONVERSION_EXIT_ALPHA_INPUT is used to truncate leading zeros.