cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Material Group has not been defined error when using BAPI_SALESORDER_CHANGE

bigflatfoot
Participant
0 Likes
209

Hi all,

I was trying to update the contents of my Sales Order using 2 different methods:
1. SE37 using BAPI_SALESORDER_CHANGE

2. VA42(When the contract is updated, a custom code is calling BAPI_SALESORDER_CHANGE in the background to update all the related sales orders)

But ended up with the same results:

bigflatfoot_0-1782990558529.png

My team and I were not experiencing this error before. Is it possible that the material used in the Sales Order has been changed specifically in configuration side? Because this happens with new and old/existing sales orders.

 

View Entire Topic
Lakshmipathi
Active Contributor

The “Error in ITEM_IN_040000” is just pointing to the item line in your BAPI input. The real cause is material master data/config changes.  Either the material group was deleted or the material is not extended to the sales org/distribution channel. Fixing the material master should resolve the error.