Skip to Content
0

update condition for me12

Jan 24, 2017 at 12:36 PM

118

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

ashok gondi Jan 30, 2017 at 06:30 AM
0

Got the answer. There is data type difference.

Share
10 |10000 characters needed characters left characters exceeded