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 issue : input value is longer than input field

Former Member
0 Likes
3,354

Dear Friends

i am getting error "input value is longer than input field" while doing bdc for the field   Percentage Rate ( technical name is PKOND )

I entered 8.5000000 in pkond , please check the screen shots

the data type of pkond is TBPKONTZ (  DEC 10, 7 )

please let me know what is the issue ?

Thanks

Vijaya

screen shot 1 - inputs

screen shot 2

1 ACCEPTED SOLUTION
Read only

venkateswaran_k
Active Contributor
0 Likes
1,945

Hi Vijayalaxmi,

When you pass the value to the field in BDC, convert it into char field and then pass it.

Example:

DATA c_pkond type c length 15.

c_pkond = 8.5000000.

In bdc assignment, you use c_pkond.

This will work

Regards,

Venkat

2 REPLIES 2
Read only

venkateswaran_k
Active Contributor
0 Likes
1,946

Hi Vijayalaxmi,

When you pass the value to the field in BDC, convert it into char field and then pass it.

Example:

DATA c_pkond type c length 15.

c_pkond = 8.5000000.

In bdc assignment, you use c_pkond.

This will work

Regards,

Venkat

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,945

Remember that BDC (contrary to BAPI) use external format of data, so for numeric values, quantities, amount, use a WRITE statement to a character field of correct length.(output length of domain to be precise) also use any required currency code or unit of measure in the WRITE TO statement.

A default move statement to bdcdata-fval may result in a right adjusted value like 0000000000000000000008.5000000 (Check actual value generated in your program using debug in form bdc_field.

Regards,

Raymond