Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Function Module - doubt

Former Member
0 Likes
716

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
689

use fm conversion_exit_alpha_input

it should work

santhosh

5 REPLIES 5
Read only

Former Member
0 Likes
690

use fm conversion_exit_alpha_input

it should work

santhosh

Read only

Former Member
0 Likes
689

say i/p value is itab-menge...use as

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

input = itab-menge

IMPORTING

output = itab-menge.

Read only

Former Member
0 Likes
689

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

Read only

0 Likes
689

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

Read only

Former Member
0 Likes
689

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