‎2006 Nov 20 2:28 PM
Hi all,
i want function module for which i will give in put value and data element,
that will give the value in for mat of data element.
I/p value: 989
dataelement: menge_d
O/p: 989.000 (menge_d has domain meng13). meng13 is having 13 char length and 3 decimals.
Regards,
Sai.
‎2006 Nov 20 2:34 PM
‎2006 Nov 20 2:34 PM
‎2006 Nov 20 2:37 PM
say i/p value is itab-menge...use as
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = itab-menge
IMPORTING
output = itab-menge.
‎2006 Nov 20 2:38 PM
Hi santosh,
Thank u.
CONVERSION_EXIT_ALPHA_INPUT is having only one i/p parameter and one o/p parameter. how can i give my field?
Regards
Sai
‎2006 Nov 20 2:43 PM
hi sai,
data: l_menge type menge_d,
l_data(10) type c.
l_data = 989.
call function conversion_exit_alpha_input
exporting
output = l_data
importing
input = l_menge.
the syntaxes may b wrng try this in the correct syntax and it would work u need not give the data element the destination type would be assumed .
try n get back
santhosh
‎2006 Nov 20 2:38 PM
Hi,
For ur requirement, there is no need to create any FM. As u know the data element, just declare a varaiable with that data element and assign the value, it will solve ur purpose..
data : l_qty type menge_d.
l_qty = '989'.
l_qty will have 989.000 now...
Sreedhar