Using this function module, you can determine the receipt quantitystill available for a particular material in a certain plant according to ATP logic (MRPII).
The availability check is carried out on transferring the materialnumber, the plant and the input table (WMDVSX). The scope of the check,
that is, which stocks, receipts and issues are to be included in thecheck is defined by the combination of checking group (material master)and cheking rule. In the function module, the system uses the checkingrule defined in Sales & Distribution (A). You can overrule this
checking rule by using an interface or a user-exit (exit_saplw61v_001).A similar procedure is also valid for the plant parameters. Thecustomer number in the user-exit means that the plant selection can becontrolled via the customer. If no plant parameters are given via the
interface, the system uses the parameter 'WRK' saved in the user's fixed values.
The results of the availability check are recorded in the output table(WMDVEX). This table contains dates and available receipt quantities(ATP quantities). The results of the check depends on the following entries:
If no date and no quantity is transferred, the system displays the ATPsituation from today's date into the future as the result.If only a date and no quantity is transferred, the system displays the ATP situation from the corresponding date as the result.
If both a date and a quantity are transferred, the system calculates the availability situation for the quantity specified.
In the last two cases, the parameter 'DIALOGFLAG' is supplied. This can result in the following:' ' (blank) <=> quantity completely available
'X' <=> only partial quantity available or not available at
all'N' <=> Material not included in the availability check
(Material not relevant to the availability check)
The system also displays the end of the replenishment lead time (ENDLEADTME).