Application Development 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: 

Unable to update MARC-MMSTA using BAPI_MATERIAL_SAVEDATA

Former Member
0 Kudos
1,142

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

2 REPLIES 2

GauthamV
Active Contributor
0 Kudos
253

Are you also passing pur_status in clientdata and clientdatax tables ?

[Update plant material status using bapi BAPI_MATERIAL_SAVEDATA |;

Former Member
0 Kudos
253

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