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,397

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

Former Member
0 Likes
925

Hi,

Before passing the value to perform bdc_field, convert that value to char type

For eg.

DATA : v_val(10) TYPE c,

v_val = wa_operation-std_value_01. CONDENSE v_val.

CONCATENATE 'PLPOD-VGW01(' n_linecount1 ')' INTO v_para.

PERFORM f_bdc_field USING v_para v_val.

FORM f_bdc_field USING fnam fval.

CLEAR wa_bdctab.

wa_bdctab-fnam = fnam.

wa_bdctab-fval = fval.

APPEND wa_bdctab TO it_bdctab.

ENDFORM. " f_bdc_field

check this it would be useful.

Read only

abdul_hakim
Active Contributor
0 Likes
925

Hi,

While uploading data into a transaction using BDC you need to ensure that the data length in your file / itab is not exceeding the length of the screen field.Ensure that your data is inline with screen field length.

Regards,

Hakim

Read only

Former Member
0 Likes
925

take the character filed of length equl to output length from domain of the currency filed you are trying to upload.

move the quantity from currency to character filed and then uplaod the same.

Read only

Former Member
0 Likes
925

hi,

'CONVERSION_EXIT_ALPHA_INPUT'

use this FM to convert your value same like in data base

here input will be your flat file value then output will be DB value.

EX: your input '101010'

but DB value is '0000101010'

so in this situvations this FM will convert from '101010' to '0000101010',

Regards,

Arjun.

Read only

Former Member
0 Likes
925

Hi,

Before you upload the data through the flat file,check the data type of every field in internal table define should be in 'char' format and data length should be equal to the length of the table field data element length.

These are the main and the basic pre-requiste requirement before any uplaod of data.

Hope this might be of help.

Pooja