‎2020 May 15 5:48 PM
Hi,
my inserting new materials for the existing sales order, through BAPI_SALESORDER_CHANGE, for some materials
bapi is working fine, but for some materials it is giving error as
material is not defined for sales org. distr.chan. language EN, how can correct this error.
Thank you,
‎2020 May 15 5:57 PM
Hi,
Please make sure the sales views are maintained in the material master data (MM02) for the sales organization you're trying to create a sales order for using the BAPI.
Also double check the additional data of the material and make sure that the descriptions are maintained properly.
Best regards,
Geert-Jan Klaps
‎2020 May 15 6:19 PM
Hi pannala.satish,
Check the material extensions to respective division and channels and maintain Sales view Texts in Language EN.
Regards,
Abinath
‎2020 May 15 7:06 PM
The first thing that I do in such cases is to try entering exactly the same data in VA02. If you get an error there, it is probably not going to work when you use a BAPI, right?
If the materials are correctly maintained and if you are 100% sure that you are passing correctly the parameters: if you get an error only when you process the document vi a BAPI, but not via VA02 - look for custom code that is executed only when you use specific transactions.
I assume that you are a developer and not a functional consultant, so I would recommend that you ask the SD colleague to help you by providing test data (verified by them).
‎2020 May 15 8:05 PM
If you have the error:
material is not defined for sales org. distr.chan.
I think that you should:
define the material for sales org. distr.chan.or:
correct the sales org. distr.chan. that you pass to the BAPI to one for which
the material is defined
‎2020 May 17 9:32 AM
Hi Satish,
You could extend the material to the new sales org and dist. channel or create the material for the Sales org. & distribution channel that you are trying to create via bapi BAPI_SALESORDER_CHANGE.
MM03: Materil is maintained at a specific Plant/Sales org/Distribution channel.

Hope this clears the doubt.
Cheer! 🙂
Br,
Pavan Golesar