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
2,444

Hi Experts,

I am getting a dump "Runtime error: CONV_EXIT_FIELD_TOO_SHORT"

Output field too short for converted value.

in the function module CONVERSION_EXIT_ALPHA_INPUT.

This function module is used in the program like as follows:

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

INPUT = <fs>

IMPORTING

OUTPUT = lv_partner

and lv_partner is declared like this:

data: lv_partner type bu_partner.

bu_partner is of character 10.

Please guide.

7 REPLIES 7
Read only

Former Member
0 Likes
1,472

Hi Sowmiya,

Its due to the insufficient length of output field.So increase the length of output field..

Read only

varma_narayana
Active Contributor
0 Likes
1,472

Hi..

Declare both the Input and Output Actual parameters with the Same type and Length ... So it will not generate any Exception.

Try this way:

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

INPUT = <fs>

IMPORTING

OUTPUT = <fs> .

write <fs> to lv_partner.

Reward if Helpful

Read only

varma_narayana
Active Contributor
0 Likes
1,472

Hi.. Correct my code GIVEN in BOLD

Use MOVE instead of WRITE

Declare both the Input and Output Actual parameters with the Same type and Length ... So it will not generate any Exception.

Try this way:

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

INPUT = <fs>

IMPORTING

OUTPUT = <fs> .

<b>MOVE <fs> to lv_partner.</b>

Read only

Former Member
0 Likes
1,472

hi,

use this declaration

data: lv_partner(12). ie. char length 12.

regrds

Debjani

Reward points for helpful answer

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
1,472

Hi

Declare your outpur fields on which u r using "CONVERSION_EXIT_ALPHA_INPUT" to the data type of the fields used in that FM : CONVERSION_EXIT_ALPHA_INPUT.

Regards,

Sree

Read only

0 Likes
1,472

Hi,

Thank you for your answer.

The problem is that the fields in the FM CONVERSION_EXIT_ALPHA_INPUT doesnot have data type.

Regards,

Soumya.

Read only

0 Likes
1,472

hi,

tell me against which field you are going to execute the FM

CONVERSION_EXIT_ALPHA_INPUT.

regards

Debjani