Skip to Content
0
Aug 28, 2018 at 10:22 AM

Mass Change in Alternate UOM

231 Views Last edit Aug 28, 2018 at 10:24 AM 2 rev

Hello folks,

I am creating a BDC for changing alternate UOM conversion values. My problem is that my program is not changing required values in UOM tab in mm02.


perform bdc_dynpro using 'SAPLMGMM' '0060'.
perform bdc_field using 'BDC_CURSOR'
'RMMG1-MATNR'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_field using 'RMMG1-MATNR' WA_IT_MATNR-MATNR.
* 'ABC'.
perform bdc_dynpro using 'SAPLMGMM' '0070'.
perform bdc_field using 'BDC_CURSOR'
'MSICHTAUSW-DYTXT(01)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_field using 'MSICHTAUSW-KZSEL(01)'
'X'.
perform bdc_dynpro using 'SAPLMGMM' '4004'.
perform bdc_field using 'BDC_OKCODE'
'=ZU01'.
perform bdc_field using 'BDC_CURSOR'
'MAKT-MAKTX'.
*perform bdc_field using 'MAKT-MAKTX' WA_IT_MATNR-MAKTX.
** 'ABC'.
perform bdc_field using 'MARA-MEINS' "WA_IT_MATNR-MEINS.
'KG'.
perform bdc_field using 'MARA-MATKL' "WA_IT_MATNR-MATKL.
'SS05'.
perform bdc_dynpro using 'SAPLMGMM' '4300'.
perform bdc_field using 'BDC_OKCODE'
'=ZU02'.
perform bdc_field using 'BDC_CURSOR'
'SKTEXT-SPRAS(01)'.
perform bdc_dynpro using 'SAPLMGMM' '4300'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
perform bdc_field using 'MAKT-MAKTX' WA_IT_MATNR-MAKTX.

perform bdc_field using 'BDC_CURSOR'
'SMEINH-UMREZ(02)'.
perform bdc_field using 'SMEINH-UMREN(02)'
WA_IT_MATNR-UMREN.
* '111'.
perform bdc_field using 'SMEINH-UMREZ(02)'
WA_IT_MATNR-UMREZ.
* '999'.
perform bdc_dynpro using 'SAPLMGMM' '4300'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.

Not able to figure out what is wrong