cancel
Showing results for 
Search instead for 
Did you mean: 

sales

Former Member
0 Kudos

Hi,

we are selling product of same division from two different sales area with two different delivering plant.

1.1000/10/00 (plant 1000)

2.1000/20/00 (plant 2000).

The issue is, sale order should be placed only on sale area 2(1000/20/00/dev.plant 2000),until the plant (2000) stock is nil.

is it possible to control?

Karthick.r

Accepted Solutions (0)

Answers (3)

Answers (3)

Lakshmipathi
Active Contributor
0 Kudos

You can try with USEREXIT_SOURCE_DETERMINATION in program MV45AFZB where you can validate the plant

G. Lakshmipathi

mahendra_jani3
Contributor
0 Kudos

Hi Karthick,

Sales Area input is at Header level and Delivering Plant based on which Stock Availability check is at Item level so above requirement can not be fulfilled coz when system will do the availability check, Sales Area will not be changed.

Now, To achieve this you will have to create Customized screen for your User.

Let user punch the data, and at the time of execution, Check first Which Plant has Stock from Both Plants by BAPI_MATERIAL_AVAILABILITY and then decide which Sales Area and Plant to be used.

Then run BAPI for Sales Order Creation BAPI_SALESORDER_CREATEFROMDAT2

with respective values and create the Sales Order.

Regards,

MJ.

former_member184065
Active Contributor
0 Kudos

Dear,

In standard sap ( sd ), we dont have flexible way to restrict this but you can ask your basis guy on this.He may be do some validation on this.

Thanks,

Naren