Application Development 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: 

conversion_exit_alpha_input

Former Member
0 Kudos

what is the purpose of function module 'coversion_exit_alpha_input'?

4 REPLIES 4

Former Member
0 Kudos

CONVERSION_EXIT_ALPHA_INPUT - converts any number into a string fill with zeroes-right

example:

input = 123

output = 0000000000000...000000000000123.

For EG:

ur updating the table through BDC,LSMW,etc.

in ur flat file one of the field value is 123, but the table is accepting only with 000000123 , in this scenario we have to use this function module.

Former Member
0 Kudos

Append 0's at the left in a variable.

example..

if u have a

DAta: var(8) value '3'.

after the function you obtain

var = '00000003'

Former Member
0 Kudos

hi,

It formats the field according SAP Internal.

For Ex :

you are giving the Porchase order number as : 1234.

But actually the value which get stored in Data base is : 0000001234.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

input = v_kunnr

IMPORTING

output = v_kunnr.

if you use the value withoud aading leading zeros, then your query does not work as it has leading zeros in database.

So, you need to pass the value to this function module......so you will get out put with leading zeros.

Regards

Sandeep REddy

Former Member
0 Kudos

Hi,

The use of "CONVERSION_EXIT_ALHA_INPUT" is to add leading zeros.

For example consider that in your internal MATNR values are there and its length of only 5(EG: 45231), but if u compare this value to the database table and even if the value in database table it will not match because in database it is stored as 18-digit as (000000000000045231) leading zeros added to the value.

So before compare the MATNR value in your internal table, you need to use "CONVERSION_EXIT_ALHA_INPUT" for the particular field, so that you can get the correct output.

Regards,

Raghu