Application Development and Automation 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: 
Read only

BAPI BAPI_SALESORDER_CHANGE ERROR

0 Likes
2,581

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,

5 REPLIES 5
Read only

geert-janklaps
SAP Mentor
SAP Mentor
2,091

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

Read only

Abinathsiva
Active Contributor
2,091

Hi pannala.satish,

Check the material extensions to respective division and channels and maintain Sales view Texts in Language EN.

Regards,

Abinath

Read only

VeselinaPeykova
Active Contributor
2,091

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).

Read only

Sandra_Rossi
Active Contributor
2,091

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
Read only

Pavan_Golesar
Active Participant
0 Likes
2,091

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