Sub topic 7
Availability check and delivery scheduling
This chapter covers what happens between entering an item in a sales order and the system confirming a quantity and date to the customer. It assumes you can create a sales order, you know that items have schedule lines, and you know that stock and planned receipts are managed per plant. Pricing and credit checks are covered in neighboring chapters.
What the check does
The availability check, also called ATP (available-to-promise), answers one question for each order item: how much can be delivered on which date? The answer is stored in the schedule lines of the item. Each schedule line holds a date and a confirmed quantity. Delivery scheduling works out the earlier dates that must be met so the goods arrive on the customer's requested date.
Both run when you save or change an item. They use the plant on the item, the material's checking group, and the requested delivery date.
How the scope of the check is controlled
Two settings combine to decide what the check looks at.
- Checking group. This is set in the material master, on the MRP 3 view (field Availability check). It says whether the check is per single requirement or collective, and whether requirements are tracked.
- Checking rule. This is set per application, such as sales orders (SD) or deliveries. It lets the same material be checked differently in different documents.
Together they select which stock types and which receipts and issues count as available. Typical inputs are:
- unrestricted-use stock
- planned receipts such as purchase orders, production orders and planned orders
- reservations and other requirements that reduce availability
- optionally, safety stock, stock in transfer, and blocked or quality-inspection stock
The result of the check is stored differently depending on the schedule line category. A category such as CP (MRP-relevant) triggers the check and passes the requirement to planning. A category such as CN (no MRP) does not. The category comes from the item category and the MRP type of the material, so a service or text item normally has no check at all.
The item category and the plant must also allow the check, and the requirements class (derived from the requirements type) switches availability and requirements transfer on or off. If a quantity is never confirmed, the cause is often one of these three settings. It is rarely the stock itself.
Delivery scheduling and the dates it produces
Delivery scheduling uses durations from several places:
- Transit time and transportation lead time come from the route.
- Loading time comes from the shipping point and loading group.
- Pick/pack time comes from the shipping point.
Starting from the requested delivery date, the system works backward:
| Date | How it is derived | Field in VBEP |
|---|---|---|
| Delivery date | Requested by the customer | EDATU |
| Goods issue date | Delivery date minus transit time | WADAT |
| Loading date | Goods issue date minus loading time | LDDAT |
| Transportation planning date | Loading date minus transportation lead time | TDDAT |
| Material availability date | Loading date minus pick/pack time | MBDAT |
The check is run for the material availability date. If that date is already in the past, backward scheduling cannot meet the request. The system then switches to forward scheduling: it starts today, adds the durations, and proposes a later delivery date. This is why a customer who asks for delivery tomorrow often sees a date several days out.
Reading the result in the order
Open the item and go to the schedule lines. A fully available item shows one line. An item that is only partly available shows lines like these:
| Line | Date | Order quantity | Confirmed quantity |
|---|---|---|---|
| 1 | Requested date | 100 | 60 |
| 2 | Later date | 40 | 40 |
An item where nothing can be confirmed shows a line with confirmed quantity 0. Such a line is not deliverable and cannot be copied into a delivery until it is rescheduled.
You can read these values directly from table VBEP. The query below lists the schedule lines and scheduling dates of one order so you can compare them with the screen.
DATA(lv_vbeln) = CONV vbeln_va( '0000012345' ).
SELECT vbeln, posnr, etenr,
edatu, wmeng, bmeng,
mbdat, ldtdat, wadat
FROM vbep
WHERE vbeln = @lv_vbeln
ORDER BY posnr, etenr
INTO TABLE @DATA(lt_schedule).Note that the loading date field name above must match your system's VBEP definition. In standard VBEP it is lddat, so use lddat in place of ldtdat:
DATA(lv_vbeln) = CONV vbeln_va( '0000012345' ).
SELECT vbeln, posnr, etenr,
edatu, wmeng, bmeng,
mbdat, lddat, wadat
FROM vbep
WHERE vbeln = @lv_vbeln
ORDER BY posnr, etenr
INTO TABLE @DATA(lt_schedule).Use this second version. wmeng is the order quantity and bmeng is the confirmed quantity. Any row where bmeng is less than wmeng has an unconfirmed shortfall.
Delivery proposals and customer preferences
How the check splits a shortage depends on settings that you can often override per customer or per order.
- Complete delivery. If the customer master or the order says complete delivery is required, the system does not create partial deliveries. All items are delivered together on the latest confirmed date.
- Maximum partial deliveries. A limit on how many deliveries one item can be split into.
- Delivery group. Items placed in the same group are delivered together, so the group is confirmed on the latest date of any member.
- Delivery proposal in the check. The check can propose one delivery date for the whole quantity, or a first date for the part available and a later date for the rest.
Rescheduling and backorders
Availability is a snapshot. Stock moves, production orders slip, and a higher-priority order may need the goods. SAP handles this in two ways.
- Backorder processing. This lists orders whose confirmed quantity is short. Planners can see them and redistribute scarce stock manually or by rule. A confirmation can be removed from one order and given to another.
- Rescheduling. This reruns the check over open orders, for example after a delayed receipt. It can also move earlier confirmations when new stock arrives.
Both change schedule lines and confirmed quantities. They do not change prices or credit status, but a new date can change the pricing date if the pricing date is tied to the delivery date, so confirm that your system's pricing date rule matches your expectation.
S/4HANA specifics
S/4HANA keeps the classic check, and it adds advanced ATP (aATP) as an alternative. aATP is available in S/4HANA and adds functions such as product allocation, alternative-based confirmation and check against supply for configured scenarios. It is configured separately from the classic checking-group setup, so the two are not mixed on one item without planning. Check which one your system uses before you troubleshoot, because the settings you inspect differ.
Common errors
- Confirmed quantity is zero for a stocked material. Check the checking group, the checking rule and the requirements class. A missing "availability check" setting looks the same as no stock.
- Date is later than expected. Look at the route, the shipping point and forward scheduling before you check stock.
- Order cannot be copied to a delivery. The schedule line has zero confirmed quantity or is blocked for delivery.
- Partial confirmations appear when you wanted none. Complete delivery is not set on the customer or order.
Exercise
An order item requests 100 pieces for 10 June. The plant has 60 pieces now and a receipt of 40 pieces is planned for 12 June. Transit time is 2 days. Assuming the check uses all planned receipts, name what the schedule lines look like if complete delivery is not required, and what changes if it is required.
Show answer
Without complete delivery, the item gets two schedule lines: 60 pieces confirmed on the first date the goods can reach the customer, and 40 pieces confirmed later, after the 12 June receipt plus the scheduling durations. With complete delivery required, the system confirms all 100 pieces on the later date only, so nothing is delivered until the 40 pieces arrive.
Exercise
Which VBEP fields hold the order quantity and the confirmed quantity, and what does it mean if they differ?
Show answer
WMENG holds the order quantity and BMENG holds the confirmed quantity. If BMENG is smaller than WMENG, part of the line is not confirmed, so that part cannot be delivered until the check or a rescheduling run confirms it.