You control how the system reacts when an allocated stock transport order (STO) is changed by making settings in Customizing under .
You use the deallocation rule to specify exactly how the system reacts when an STO is modified. You can define a deallocation rule to deallocate or remove the previously allocated quantities.
A deallocation rule contains the following fields:
Requirement Date of a Sales Order and STO: You can specify a requirement date for a sales order and STO based on the available options.
Goods Receipt Date: This date is the reference date of the future receipt that is to be considered for deallocation. You can select Schedule Line Date (EINDT) as a reference date.
Physical Stock Reference Dates: The Batch Horizon and Storage Location Horizon fields specify the number of days after which the order can be deallocated.
When you edit an existing allocated order, and if the difference between the old requirement date and the new requirement date is less than the number of days specified in the reference fields, then the deallocation does not occur. However, if this difference is more than the number of days specified in the reference fields, the system behavior is based on the values specified in the Date Reaction field check.
Future Stock Reference Dates: These dates specify the range of days for the validity of the stock type.
When you change an existing allocated order and if difference between the requirement date of a STO and the goods receipt date for a purchase order or confirmation is within the From and To field ranges, then the deallocation does not occur. If this difference does not fall within these field ranges, then the system behaves based on the values specified in the Date Reaction field check.
Field Checks: The system decides how and when the deallocation process is triggered based on the following values specified in the field check:
D Deallocation Without Warnings: Order is deallocated completely without a warning.
W Warnings Before Deallocation: A warning message is displayed and the order is deallocated completely.
E Change Not Permitted: You cannot modify an order and deallocation is not possible.
Requirement Sorting Rule
In Customizing for STO Handling, you can define a sort rule that the system uses to sort requirement elements during deallocation. You can use this sort rule to specify the order in which requirements (sales orders and stock transport orders) are deallocated.
You can do this in Customizing under
.Stock Sorting Rule
In Customizing for STO Handling, you can define a sort rule that the system uses to sort stock elements during deallocation. You can use the deallocation sort rule to specify the order in which stock types (physical stock, purchase orders, shipping notifications, and confirmations) are deallocated.
You can do this in Customizing under
.During the deallocation of STOs, you can use this rule to determine which of the following exceptions are included in the log.
All messages
Only error messages
Only warning messages
Errors and warnings
The logs are saved in a database table. You can define the log file rule in Customizing under
.You can define an immediate allocation type for an STO in Customizing under
.You can assign an immediate allocation type to an STO in Customizing under
.When you assign an immediate allocation type to an STO, the system tries to allocate a requirement immediately whenever the STO is created or modified. A requirement can only be successfully allocated if there is sufficient stock (for example, physical stock or stock against future receipts). Note that the document must contain all shipping-related data when it is saved. If it does not, the allocation is cancelled and the requirement cannot be delivered immediately.
For immediate allocation of STOs, you must activate the Automatic Delivery Creation option. If you want to create a delivery immediately after creation of the stock transport order, set the Auto Delv. option. You can do this in Customizing under
.You can assign an allocation type for a stock transport order based on the purchasing document type and the supplying (issuing) plant in Customizing under
.You can assign deallocation, requirement sorting, stock sorting, and logging rules to each plant. If the STOs are consumed as stock, use the requirement sorting rule. If the stock transport orders are considered as requirements, then use the stock sorting rule. You can assign these rules in Customizing under
.