2013 Dec 20 12:20 PM
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
2013 Dec 20 12:28 PM
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
2013 Dec 20 12:28 PM
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
2013 Dec 20 12:36 PM
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