SD · Intermediate · Configuration
How to configure automatic batch determination in SAP SD: FEFO versus FIFO
Use a delivery batch search strategy to select eligible stock and propose batches with earliest expiration first, separating shelf-life eligibility from sort order.
- APPLICABILITY
- SAP ECC and S/4HANA on-premise or Cloud Private Edition, classic SD outbound delivery batch determination. Not an EWM picking-strategy or Public Edition configuration recipe. Check batch level, delivered customizing and release before changing settings.
- TOOLS / TRANSACTIONS
- SPRO · CL02 · CU70 · VCH1 · MSC2N · VL02N
Your project assignment
A hypothetical pharmaceutical distribution project must deliver 100 units. Eligible batch A has 40 units expiring first, B has 60 units expiring second and C has 80 units expiring later. The FEFO strategy should propose A plus B, provided availability, minimum remaining shelf life and batch split settings permit the allocation.
Where to start: URLs and transactions
- IMG
- Logistics - General → Batch Management → Batch Determination and Batch Check
- Master data
- CL02, MSC2N, CU70, VCH1
- Delivery test
- VL02N (approved QA delivery)
Prerequisites
- An approved batch-managed material with valid classification and a test delivery item category.
- Three synthetic batches with unrestricted available quantities and maintained expiration dates.
- An approved customizing request and isolated sales-area/material strategy key.
Configuration workflow
FEFO: eligibility first, then earliest expiry
All steps visible. Play or advance one stage at a time.
Hands-on implementation — step by step
Follow the screen navigation, replace example values with approved project values, and mark each step after checking its result. The screens below are original teaching aids, not live SAP screenshots. Progress is local to this visit.
- 1
CL02 → batch classification
Review the material's assigned batch class and the standard expiration date characteristic; use the class type appropriate to the configured batch level.
CL02 → batch classificationERPClimb · illustrative screen - Class
Z_FEFO (hypothetical)- Characteristic
LOBM_VFDAT- Batch class type
Verify 023 or applicable batch level
Expected result: Expiration date is available to the search and sort design.
Why this matters: Sorting cannot repair missing or incorrect characteristic data.
- 2
MSC2N → verify sample batches
Check batch status, expiration date and classification for each test batch. Independently confirm available stock in the intended plant and storage location.
MSC2N → verify sample batchesERPClimb · illustrative screen - A / B / C stock
40 / 60 / 80 units- Expiry order
A earliest, then B, then C
Expected result: Three eligible test batches are ready for a controlled allocation.
Why this matters: Physical stock alone does not guarantee availability or eligibility.
- 3
CU70 → define sort rule
Create a dedicated sort sequence with ascending expiration date; add a deterministic secondary characteristic if the project requires a tie breaker.
CU70 → define sort ruleERPClimb · illustrative screen - Sort rule
ZFEFO (hypothetical)- LOBM_VFDAT
Ascending
Expected result: The earliest eligible expiration sorts first.
Why this matters: FEFO uses expiry date, whereas FIFO generally uses an agreed receipt or creation-date criterion.
- 4
SPRO → SD batch search customizing
Review the condition table, access sequence, strategy type and search procedure. Assign the approved procedure to the applicable SD scope and enable automatic determination for the intended delivery item category.
SPRO → SD batch search customizingERPClimb · illustrative screen - Strategy type
Dedicated QA strategy- Delivery item category
Approved test category- Assignment
Applicable sales area and document scope
Expected result: The delivery can find the intended search procedure.
Why this matters: Do not enable overlapping sales-order and delivery determination without deciding which stage owns selection.
- 5
VCH1 → create strategy record
Create a search strategy record for the actual configured key combination. Maintain the selection class, approved shelf-life criteria, sort rule and permitted split count where supported.
VCH1 → create strategy recordERPClimb · illustrative screen - Sort rule
ZFEFO- Selection
Approved minimum remaining shelf life- Splits
At least 2 for this fixture
Expected result: The strategy record resolves for the test delivery key.
Why this matters: Selection excludes unsuitable batches before the sequence ranks the remaining stock.
- 6
VL02N → determine and inspect batches
Run delivery batch determination or inspect its automatic result. Open strategy and selection information, compare the split proposal and repeat with an ineligible earlier-expiring batch.
VL02N → determine and inspect batchesERPClimb · illustrative screen - Requirement
100 units- Expected split
A 40 + B 60, if all eligible- Negative test
Exclude an insufficient-shelf-life batch
Expected result: The proposal respects eligibility and expiry ordering.
Why this matters: A negative test demonstrates that expiry ranking does not override customer shelf-life requirements.
Project acceptance checklist
Use this checklist to prepare evidence for your project lead.
0 of 4 checks marked. This does not certify the SAP configuration.
Validate your configuration
- Strategy information shows the intended record, class and sort sequence.
- Eligible A and B cover 100 units; an ineligible early batch is excluded in the negative test.
Common errors and what to check
no batches found.
Check: Check material batch flag, class, selection values, available quantity and strategy access.
latest expiry picked first.
Check: Check sort direction and maintained characteristic values.
only one batch proposed.
Check: Review allowed batch splits and delivery item behavior.
different warehouse allocation.
Check: Distinguish ERP delivery determination from EWM stock removal.
More in the SAP Library
Need help with a configuration error? Open ERPClimb Copilot.
Technical references & further reading
Official documentation for technical verification, release compatibility and further study.