2009 Jan 08 9:34 AM
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,
2009 Jan 08 9:46 AM
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.
2009 Jan 08 11:02 AM
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
2009 Jan 08 11:09 AM
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.
2009 Jan 08 11:42 AM
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.
2009 Jan 12 5:36 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |