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

CONVERSION_EXIT_ALPHA_INPUT

Former Member
0 Likes
1,749

hi,

when we use function module CONVERSION_EXIT_ALPHA_INPUT?

what does this function module do?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,568

Hi

Conversion exit ALPHA, external->internal

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.

Example:

(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.

4 REPLIES 4
Read only

Former Member
0 Likes
1,569

Hi

Conversion exit ALPHA, external->internal

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.

Example:

(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.

Read only

Former Member
0 Likes
1,568

Hi,

1.Just this function module add the leading zeroes to the input value.

like:input of this function module is 45600

output is 00045600.

Regards,

If helpful reward with points(Don't forget).

Read only

Former Member
0 Likes
1,568

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.

Regards

Kiran

Read only

Former Member
0 Likes
1,568

This message was moderated.