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.
Showing results for 
Search instead for 
Did you mean: 

Best option to update MSTAE from material

0 Kudos

Hi experts,

Which is the best option to update MSTAE field to one specific material? I think that if it's a mass process, best option would be the first, but having only one record to modify the second would be correct.

Could you please tell me the advantatges and disadvantatges of the 2 options? 

A - Modifying the field with Bapi BAPI_MATERIAL_SAVEREPLICA

B - UPDATE mara SET mstae = <field_value> WHERE matnr = <material_code>

Lots of thanks,



Former Member
0 Kudos

Hi Javier,

You can  use  BAPI_MATERIAL_SAVEDATA - SE37 to update the field.  Usually, the database tables won't be updated if you use SE37. Therefore, in order to update the database tables, you will

have to use the BAPI function in a test sequence, and add the function  BAPI_TRANSACTION_COMMIT at the end of test sequence. Hope this information helps.