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

Error from BAPI_SALESDOCUMENT_CHANGE

Former Member
0 Likes
511

hi friends,

Am using this BAPI to change the SO to include the new items.The error returned is 'sales office not assigned to sales area'.

please clarify if I had missed out any mandatory structure to be filled for the BAPI.IF given a sample filled mandatory structure required for this BAPI would be very much helpful.

Thanks in Advance.

Mahendhar

2 REPLIES 2
Read only

Former Member
0 Likes
402

Hi Mahendhar

I guess this is not a problem with your coding if you are not passing the sales office explicitly from your code. To confirm on the same, please follow the below steps.

1. Take the customer of the sales order.

2. Using the customer number, go to table(SE11): KNVV and take the sales office i.e VKBUR.

3. Next go to table: TVKBZ: give the sales area that you are passing in the sales order i.e Sales Org + Dist.Channel + Division.

4. Check if there is an entry with the same sales office.

If no, report to your functional consultant on the same.

Also, do the following:

1. Check if you can change the sales order via VA02.

2. If yes, please check if you are passing the sales are correctly.

Kind Regards

Eswar

Read only

Former Member
0 Likes
402

Used the SO number to pass into the salesorder change bapiinstead of passing the header details again.