‎2007 Apr 11 5:40 AM
Hi Gurus,
What is the purpose of the CONVERSION_EXIT_ALPHA_INPUT FM. At what scenario we have to use this conversion.
Regards
Ravi
‎2007 Apr 11 5:42 AM
hi,
it will converts any number into a string fill with zeroes
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = wf_version
IMPORTING
output = wf_version.
Example:
input = 123
output = 0000000000000...000000000000123
Rgds
Anversha
‎2007 Apr 11 5:42 AM
hi,
it will converts any number into a string fill with zeroes
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = wf_version
IMPORTING
output = wf_version.
Example:
input = 123
output = 0000000000000...000000000000123
Rgds
Anversha
‎2007 Apr 11 5:43 AM
hi
<b>CONVERSION_EXIT_ALPHA_INPUT</b> - converts any number into a string fill with zeroes-right
example:
input = 123
output = 0000000000000...000000000000123
CONVERSION_EXIT_ALPHA_OUTPUT - converts any number with zeroes-right into a simple integer
example:
input = 00000000000123
output = 123
regards
ravish
<b>plz reward points if helpful</b>
‎2007 Apr 11 5:43 AM
Hi,
The FM is used for putting leading zeroes to the value passed as input.
The scenario can be..Lets say if you get a sales order number 2390 in a file..
If you use a select using this number...You may not get a record..
Instead you to convert to 0000002390 to select the record...
Thanks,
Naren
‎2007 Apr 11 5:43 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'
Regards,
Raj
‎2007 Apr 11 5:44 AM
It converts the value of a field as in data base from output format.
for example if vbeln = '11' it will change to '0000000011'.
‎2007 Apr 11 5:45 AM
Hi Ravi,
Check this info.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = wf_version
IMPORTING
output = wf_version.
Example:
input = 123
output = 0000000000000...000000000000123
Regards
‎2007 Apr 11 5:57 AM
dear ravi,
whats the difference betwwen nagraj answer and my answer.
Be a good player in SDN!
Rgds
Anver
‎2007 Apr 11 6:08 AM
Hi Anversha,
Sorry for that. Its mistaken. Some times it will happen.
Thanks
Ravi
‎2007 Apr 11 6:09 AM