2007 May 17 12:26 PM
Hi Friendz,
Whatis the Exact Purpose of this Function Module CONVERSION_EXIT_ALPHA_INPUT
Akshitha.
2007 May 17 12:30 PM
Hi,
This conversion routine is used to add the leading zeros in input value.
for example if you send material value as 12346723
This will return 0000012346723 since matnr has 18 chars length.
2007 May 17 12:29 PM
2007 May 17 12:29 PM
Hai,
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.
Regards,
Padmam.
2007 May 17 12:30 PM
Hi,
This conversion routine is used to add the leading zeros in input value.
for example if you send material value as 12346723
This will return 0000012346723 since matnr has 18 chars length.
2007 May 17 12:32 PM
Hi
Certain fields values in certain Tables were maintained in such a way that when you see the data in table format it appears with one value and when display that record it shows another value:
for example PARVW (partner function) field in KNVP or VBPA table has 2 values
'SP' outsideand in the table it is displayed as 'WE'.
similalry the field ATINN in the table AUSP.
when you store the value of KUNNR in table it is stored as 0000012435.
but when we use we enter just 12435.
so to convert these fields from one value to other (which are acceptable)
we use this CONVERSION_EXIT_ALPHA_INPUT/OUTPUT.
when we want 18 char material value for a value of 8 char we use this.
Reward points if useful
Regards
Anji
2007 May 17 12:32 PM
hi,
CONVERSION_EXIT_ALPHA_INPUT is a function module which takes input from user and converts into sap table field type.
for ex: matnr data length used by sap is 18.
when we use select-options and at select query in where condition we ll give as matnr in p_matnr
and input we ll give as 1 or 2 or 100 like this........
when system compares both no record is given as for matnr extra field values are padded with zeros so where condition fails.
for such cases when we use CONVERSION_EXIT_ALPHA_INPUT function module it takes input from user and converts value accordingly to the given database table field.
helpful reward some points.
with regards,
suresh babu aluri.
2007 May 17 12:33 PM
Hi Akshitha,
Function Module <b>CONVERSION_EXIT_ALPHA_INPUT</b> is used for appending leading zeros .
Reward points if helpful.
Regards,
Hemant
2007 May 17 1:21 PM
Hi Akshitha,
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.
<b>Example:</b>
(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.
Regds,
Younus
<b>Reward Helpful Answers:-)</b>
2007 Oct 16 5:07 AM
Can any body tell me how to convert numeric rupees in character format in
smartforms
2007 Oct 16 5:24 AM
Hi Anuja,
Use declare a variable like character with same size of Currency Field.
Then use WRITE <var1> to <var2>.
regards
Avi