12.order (MTO) / Purchase-To-Order (PTO)
12.order (MTO) / Purchase-To-Order (PTO)
MTO / PTO are special orders where either the Manufacturer makes the materials in house or procure it
from the vendor. These orders are treated differently when it comes to creation of deliveries in AFS.
As allocation is mandatory in AFS, during creation of the delivery we allocate the stock to the sales
order. There is an option of.
Process Flow
Database tables:
Logic:
During delivery creation, we create allocation in the background. The special stocks are stored in the
database table MSKA. For each entry of MSKA table, we create allocation (An entry in J_3ABDBS). The
MSKA table is also updated with the remaining requirement information.
Include : MJ3AVFDL_ALLOCATION_CREATE
FORM : MTO_PTO_ALLOCATION_CREATE
For each entry in MSKA,
Only in the case of MTO, over delivery is allowed in AFS. This is to facilitate the customers to deliver the
excess goods which were manufactured. For activating the over delivery functionality, the flag
/AFS/MTOPTO_TOL in the AFS Registry need to be set.
Depending on the flag, the quantity of the delivery is adjusted in the following code