Skip to Content

update condition for me12

Hi Experts,

I'm new to ABAP. I have a requirement to update the scale quantity and amount for me12 for existing BDC program. So I written the following code in my program. But it's not updating the values. when i'm excuting the program I'm getting the following warning message.

"Please check units of measure and conversion factor"

code:

PERFORM bdc_dynpro USING 'SAPMV13A' '0303'.
PERFORM bdc_field USING 'BDC_CURSOR'
'KONM-KBETR(02)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'RV13A-DATAB'
'12/28/2016'.
PERFORM bdc_field USING 'RV13A-DATBI'
'12/31/9999'.
DATA: lv_tmp TYPE string.

lv_tmp = lwa_ir-kstbm.
CONDENSE lv_tmp NO-GAPS.

PERFORM bdc_field USING 'KONM-KSTBM(02)'
lv_tmp .

lv_tmp = lwa_ir-s_kbetr.
CONDENSE lv_tmp NO-GAPS.

PERFORM bdc_field USING 'KONM-KBETR(02)'
lv_tmp.


PERFORM bdc_field USING 'BDC_CURSOR'
'KONM-KSTBM(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=SICH'.
PERFORM bdc_field USING 'RV13A-DATAB'
'12/28/2016'.
PERFORM bdc_field USING 'RV13A-DATBI'

'12/31/9999'.

Thanks,

kumar.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 30, 2017 at 06:30 AM

    Got the answer. There is data type difference.

    Add comment
    10|10000 characters needed characters exceeded