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 error-- INPUT VALUE IS LONGER THAN SCREEN FIELD

Former Member
0 Likes
3,895

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,443

Hi,

Check the below link

Hope it will be helpful to you.

Regards,

Shirisha

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

5 REPLIES 5
Read only

Former Member
0 Likes
1,444

Hi,

Check the below link

Hope it will be helpful to you.

Regards,

Shirisha

Read only

0 Likes
1,443

Hi Shirisha,

Thanks for your link given,

I have used Write To instead of Move statement,

Problem Solved.

Read only

Former Member
0 Likes
1,443

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.

Read only

Former Member
0 Likes
1,443

Hi Murali,

Check the length of the field v_kbetr1, It should be of CHAR type and length 8.

Regards

Praveen

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,443

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.