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

problem with quantity field in BDC

Former Member
0 Likes
1,754

hi experts,

i am trying to upload data from internal table to SAP using BDC, but while uploading quantity fields it is giving error as "Input fields is longer than screen field", Is there any method to upload quantity fields to SAP.

thanks in adancae,

hi experts,

i am trying to upload data from internal table to SAP using BDC, but while uploading quantity fields it is giving error as "Input fields is longer than screen field", Is there any method to upload quantity fields to SAP.

thanks in adancae,

5 REPLIES 5
Read only

GauthamV
Active Contributor
0 Likes
1,169

just declare all your fields as type c with length specified..

ex:

data : quan(10) type c.

Read only

Former Member
0 Likes
1,169

Move the value of the quantity field into a char string and then pass it to the BDC.

regards,

Jinson

Read only

Former Member
0 Likes
1,169

hi,

Check the quantity field length and declare the Char field with same length and use the write statement to move the qunatity value to char.

Write l_quantity to l_char.

condense l_char.

now move the l_char to BDC.

Read only

Former Member
0 Likes
1,169

you can decide the length of character filed by taking the output length of the domain assocaited with that quantity field.

Read only

Former Member
0 Likes
1,169

Hi,

one way of solving your problem is,

1. Go to the transaction required
2. Find the qunatity field on screen then press F1 on the particular field
3. In technical information you can see the field name, double click on it.
4. Find the length of the field then declare your field in program of the same length
    or declare it 'like <tablename-fieldname>' obtained from transaction

Regards,

Manoj Kumar P