I am trying ot create a new article (material) by using BAPI_MATERIAL_MAINTAINDATA_RT. Is that the right BAPI to do this?
The material get's created, but if I try to change it in MM42 I get the following error message:
Message no. MH084:
Assignment of article to merch. catgry missing in classification system
How can I resolve this error? The customizuing seams to be ok; create an article in MM41 works fine.
The answer is very simple. The article master data model has an internel link to the classification system. Unfortunately the classification system works with a kind of on commit logic.
Based on fact that the BAPis are not allowed to send a commit work, the caller must do this.
So after sending the BAPI_MATERIAL_MAINTAINDATA_RT and returning without an error call a BAPI_TRANSACTION_COMMIT
Then it will work fine.
If you have such articles with MH084 in your productive system, let me know. For single articles I can provide a fix report.
Generic articles should be deleted.
Better idea is opening an customer message for support.