2010 Dec 16 12:19 PM
Hi all,
I wrote BDC for VA01. Here I need to pass condition amount to the BDC SCreen ( field name : KOMV-KBETR). When i run the BDC, it is throwing error -- ' INPUT VALUE IS LONGER THAN SCREEN FIELD '.
Then I passed the amount value manually to the BDC screen field. Still it is not working.
DATA : v_kbetr1 TYPE komv-kbetr.
MOVE itab-kbetr1 TO v_kbetr1.
PERFORM bdc_field USING 'KOMV-KBETR(08)'
v_kbetr1.
Please look into this issue.
Thanks,
Murali Krishna.T
2010 Dec 16 12:32 PM
2010 Dec 16 12:32 PM
2010 Dec 16 1:09 PM
Hi Shirisha,
Thanks for your link given,
I have used Write To instead of Move statement,
Problem Solved.
2010 Dec 16 12:39 PM
Hi,
Try this...
First Declare two variable of type CHAR with the same length of ur field which showing blank.
Now assign Values to this Variable
like w1 = wa- ,
w2 = wa- ,
and then pass theses variable in BDC Field .
like instead of passing wa-
pass w1 in bdc field
I am sure it will work.
2010 Dec 16 12:54 PM
Hi Murali,
Check the length of the field v_kbetr1, It should be of CHAR type and length 8.
Regards
Praveen
2010 Dec 16 1:03 PM
v_kbetr1 type komv-kbetr
have you seen the code automatically generated after recording in SHDB. You may notice that all the variable will be declared of character type. That is to avoid these kind of problems.
Change the declaration as character type of length 14. it should work.