‎2008 Jul 03 12:39 PM
hi,
why we use this function module in our programm
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
thanks jAYANT
‎2008 Jul 03 12:40 PM
Jayant,
CONVERSION_EXIT_ALPHA_INPUT
____________________________________________________
Short Text
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 Jul 03 12:41 PM
Hello.
That's a convertion routine to insert data, for example, in database tables.
An example.
In your program you have material like '1000000001'. With that FM, it will transform to '000000001000000001', which is the internal format of the field in table.
Regards.
‎2008 Jul 03 12:41 PM
converts any number into a string fill with zeroes, with the number at the extreme right
‎2008 Jul 03 12:41 PM
it is used to convert the external format no to internal format number.
for more details see the FM documentation.
regards,
madhu
‎2008 Jul 03 12:41 PM
this function adds leading ZEROS before a value...search in SDN with FM name...u will get sufficient info
‎2008 Jul 03 12:42 PM
hi,
'CONVERSION_EXIT_ALPHA_INPUT'
'CONVERSION_EXIT_ALPHA_OUTPUT'
these function modules are used to compress or get leading zeros.
for example: material no: 123456789.
u can get 000000000123456789.since 18 is length of matnr.
‎2008 Jul 03 12:43 PM
It adds leading zeroes for the given value
for example if u pass VBELN value 78...
it returns 0000000078.
‎2008 Jul 03 12:44 PM
The FM--> CONVERSION_EXIT_ALPHA_INPUT
It converts any number into a string fill with zeroes, with the number at the extreme right
‎2008 Jul 03 12:46 PM
Hi,
For Example :
include the necessary characters at SPRO, permitted extra characters.like '.,()-\/#&[]{}
And also I have used the conversion routine CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' for this infoobject.
EXPORTING
input = TRAN_STRUCTURE-PTXZ01
IMPORTING
OUTPUT = RESULT.
If useful reward points.
Sridhar.
‎2008 Jul 03 12:57 PM
Hi Jayanth,
Conversion routines are function modules used to convert the user input values into format in which the actual values are stored in database tables.
for example
material number.... you enter 38 in your selection screen.... but in your database table it is stored as 000000000000000038 The end user entering the value doesnt know what is the internal format.
In such a case conversion exits are used to convert the value given into internal format and also internal format back to display format
conversion_exit_alpha_input..... converts input to internal format
38 .... 000000000000000038
conversion_exit_alpha_output ... converts internal format to display format
000000000000000038 to 38
regards
padma