Skip to Content
0
Former Member
Feb 08, 2012 at 06:38 AM

Unable to update MARC-MMSTA using BAPI_MATERIAL_SAVEDATA

564 Views

Hi All,

I am trying to update MARC-MMSTA as below and I am not getting error from the BAPI but still I am not able to update the field.

Please let me know the issue

ws_headata-material = ws_records-matnr. "ws_update_price-matnr.

ws_headata-purchase_view = 'X'.

ws_plantdata-plant = ws_records-reswk. "ws_update_price-reswk.

ws_plantdata-pur_status = space.

ws_plantdatax-plant = ws_records-reswk. "ws_update_price-reswk.

ws_plantdatax-pur_status = 'X'.

  • ws_plantdatax-pvalidfrom = 'X'.

  • Modify Plant-Specific Material Status

CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'

EXPORTING

headdata = ws_headata

plantdata = ws_plantdata

plantdatax = ws_plantdatax

IMPORTING

return = ws_msg.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'.

Thanks

Bala Duvvuri