Skip to Content
0
Former Member
Nov 11, 2009 at 08:17 AM

how to give ouput parameter for this function CONVERSION_EXIT_ALPHA_INPUT

423 Views

Hi Experts,

Good day to all. .

I am using the function module CONVERSION_EXIT_ALPHA_INPUT predefined function module if i am giving the parmeter as database filed type integer means its giving the correct out put as shown in sample program.

if i am giving the parmeter as database filed type as char its not giving the output correctly and getting the output as what i am giving as input.

sample prog:

data: input type Mseg-mblnr value '23', OUT(18) type C.

(or)

data: input OUT type Mseg-MAT_KDPOS value '23', OUT type Mseg-MAT_KDPOS.( for this o/p 000023)

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

INPUT = input

IMPORTING

OUTPUT = OUT.

write:/ out.

now its giving the output correctly

o/p: 000000000000000023 ( length is 18 so its adding 16 0's and actual value 23)

data: output type mara-matnr value '23', OUT type mara-matnr.

it giving the output as 23 but i need the output as previous

could any one please give the solution for this