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

BDC quantity error

Former Member
0 Likes
930

I have done a recording for IP42 transaction.

IN the program When I pass value to the field SFAKT it gives a message that the input field is greated than the screen field.

the field is SFAKT from the table MPLA.

I have tried to change the input field to

DATA : V_SFAKT(3) TYPE C.

but in the debug mode i see wrong values is passed.

Any suggestions.

Thanks,

Raju.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
849

Hello,

Do like this.



DATA : V_SFAKT(3) TYPE C.
write mpla-sfakt to v_sfakt.
" Pass this v_sfakt to the screen field.

Hope this will solve ur issue.

Cheers,

Vasanth

8 REPLIES 8
Read only

Former Member
0 Likes
849

ANy Suggestions..

Raju

Read only

Former Member
0 Likes
849

I guess problem with type conflict. Before passing the value to the field use the convesrion routine. FM 'CONVERSION_EXIT_ALPHA_input. and then assign to the field.

Thanks

Chandra

Read only

0 Likes
849

Thanks chandra for the suggestion.

However the FM that you specified can only be used for type C. else it might dump.

Thanks,

Raju.

Read only

Former Member
0 Likes
849

Hello Raju,

I guess this kind of error occurs when the value you are entering into the screen is greater than what it is actually restricted to by the screen field.

The length of the field SFAKT as in MPLA is 3 with 2 decimal places. The total output length with the decimal point would be 4.

Example: 1.00

The maximum value which can be stored here would be 9.99. Please check the way the input value is being passed. Only appropriate values should be passed.

Please verify the same.

Regards,

Pavan

Read only

Former Member
0 Likes
850

Hello,

Do like this.



DATA : V_SFAKT(3) TYPE C.
write mpla-sfakt to v_sfakt.
" Pass this v_sfakt to the screen field.

Hope this will solve ur issue.

Cheers,

Vasanth

Read only

0 Likes
849

Thanks Vasant for the suggestions.

But dosent work.

Eg - if the value is 1.00 it passes *00.

Raju.

Read only

0 Likes
849

Hello,

Make it LV_SFAKT(5).

Cheers,

Vasanth

Read only

0 Likes
849

Thanks Vasant it wirks.

Raju.