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

update condition for me12

Former Member
0 Likes
1,061

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.

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.

1 REPLY 1
Read only

Former Member
0 Likes
651

Got the answer. There is data type difference.