cancel
Showing results for 
Search instead for 
Did you mean: 

Stoping Sales Order types from specific plant

Former Member
0 Kudos

Dear Friends,

My client want to stop creation of specific sales order types from a specific plant. Means if that specific plant entered in sales order then system should not process that sales order further.

Note : Material transference must not be affected while implementing above requirement.

Kindly suggest the solution in this matter.

Thanks & Regards,

Savi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Your requirement can be fulfilled by using an enhancement.

use the USEREXIT_SAVE_DOCUMENT_PREPARE

In this provide the logic that

If

VBAK-AUART= order type

VBAP-WERKS=XXXX (Plant for which the sales doc should be blocked)

the ask give an error message

regards

Prashanth

Answers (2)

Answers (2)

Jelena
Active Contributor
0 Kudos

If this cannot be achieved as suggested above, I would go with a user exit, but the one that is triggered earlier, e.g. ..MOVE_FIELD_TO_VBAP. Checking this condition when saving the document is a bit too late IMHO. Imagine typing in all the line items, etc. just to find when clicking on Save button that you couldn't use this order type to begin with? The users would be pretty mad...

Former Member
0 Kudos

The best way would be to prevent this through your organizational design (Enterprise Structure)

You can limit which plants can be used for each combination of sales org/distribution channel & you can define which order types can be used for a given sales area.

You can use exclusion procedure and records to stop the combination of orders type and plant. This is not a use fiendly solution as the user doesn't receive a very useful error message.

You can use the user exit as mentioned before.