2012 Feb 08 6:38 AM
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
2012 Feb 08 6:49 AM
2012 Feb 08 6:57 AM
Hi,
Check the bellow link which help you in creating BAPI_MATERIAL_SAVEDATA.
<external link removed>
Regards,
Goutam Kolluru.
Edited by: Suhas Saha on Feb 8, 2012 12:40 PM