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: 

Purpose of this Function Module CONVERSION_EXIT_ALPHA_INPUT

Former Member
0 Kudos
1,549

Hi Friendz,

Whatis the Exact Purpose of this Function Module CONVERSION_EXIT_ALPHA_INPUT

Akshitha.

1 ACCEPTED SOLUTION

srinivas_akiri
Active Participant
0 Kudos
173

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.

9 REPLIES 9

amit_khare
Active Contributor
0 Kudos
173

Check this thread -

Regards,

Amit

Reward all helpful replies.

Former Member
0 Kudos
173

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.

srinivas_akiri
Active Participant
0 Kudos
174

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.

Former Member
0 Kudos
173

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

Former Member
0 Kudos
173

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.

Former Member
0 Kudos
173

Hi Akshitha,

Function Module <b>CONVERSION_EXIT_ALPHA_INPUT</b> is used for appending leading zeros .

Reward points if helpful.

Regards,

Hemant

Former Member
0 Kudos
173

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>

Former Member
0 Kudos
173

Can any body tell me how to convert numeric rupees in character format in

smartforms

0 Kudos
173

Hi Anuja,

Use declare a variable like character with same size of Currency Field.

Then use WRITE <var1> to <var2>.

regards

Avi