01 / Configuration
Key Customizing Tables
| Table | Purpose |
|---|---|
T161A | Allowed PO Document Types |
T160 | Default Document Types per Transaction Code |
T161W | STO Settings (Doc Type, One-Step, Underdelivery) |
ESDUS | User Personal Defaults (e.g., BSART) |
Tip: Check authorization object
M_BEST_BSA (ACTVT = 01) if a proposed BSART does not appear in the dropdown.02 / Manual purchasing
ME21N
Default Proposal Order
- Last-used BSART
T160default for ME21N (fallback ME21)- First entry in
T161
Validated by authorization M_BEST_BSA.
Overwrites
- User defaults via
ESDUS(action PurchaseOrder, setting POHeaderProposer → BSART) - BAdI
MEPOBADI_OPEN
Header Logic
MEPO_HEADER_FILL_BSART→ checksT160thenT161by BSTYP- Dropdown is built from
MEPO_TOPLINE-BSART
Debug paths:
LMEGUICJI → OPEN, LMEPOF11 → MEPO_DEFAULT_TOPLINE, LMEPOF00 → MEPO_HEADER_READ_BSART.03 / Requisition processing
ME57 (ALV)
STO PRs
PO document type from T161W.
Other PRs – T161A Matching Priority
- Exact match: PR doc type + PR item cat (and compatible PO doc type + PO item cat)
- If only one allowed combination exists → take it
- Match by PR item category
- Match by PR document type
- Default from
T160(ME21) - Any compatible BSART
Enhancement: BAdI
ME_BSART_DET (not processed for STO).04 / Requisition processing
ME57 (Non-ALV)
T160default for ME57T160default for ME21N/ME21- Fallback to PR document type
05 / Stock & requirements
MD04
STO PRs
PO document type from T161W.
Other PRs – Selection Order via T161A
- Exact match (doc type + item category)
- Item category match
- Document type match
- Default from
T160 - Any valid type
Debug:
ME_PROCESS_REQUISITIONS → LMESHOWF01 → FORM bsart_best.06 / Automatic PO creation
ME59N
Function module: MM_PROPOSE_DOC_TYPE
- Read allowed types from
T161A - Check BAdI
ME_BSART_DET - Try to match PR document type
- If PR type allowed → select it
- If PR type not allowed → use
T160default - If no default → first allowed BSART
See also: KBA
3108114 (Default doc type not used when creating PO via ME59N).07 / API processing
BAPI_PO_CREATE1
Mapping
BAPIMEPOHEADER-DOC_TYPE → MEPOHEADER-BSART via MAP2I_BAPIHEADER_TO_HEADER.
Processing
- Uses ME21N logic:
LMEPOF00 → MEPO_HEADER_FILL_BSART MEPO_HEADER_READ_BSARTreadsT161
08 / SAP Fiori
Fiori Applications
A) Process Purchase Requisitions (F1048)
- Determination in
CL_MM_PUR_PR_PROCESS_API → IF_MM_PUR_PR_FOD_PO~CREATE_PO_DRAFT - Calls
MM_PROPOSE_DOC_TYPE(first item)
B) Manage Purchase Orders (F0842A)
- Lightweight / restricted
- Shows only PO types:
- Copied from NB
- Field selection key = NBF
Need wider creation options? Use Create Purchase Order Advanced (WebGUI for ME21N).
09 / Requisition assignment
ME58
Default Proposal Sequence
T160→ ME58T160→ ME21NT160→ ME21- Fallback: PR document type
Debug:
FM06BF05_GENERIEREN_BESTELLUNG → FORM GENERIEREN_BESTELLUNGNo BAdI available. Consider ME59N with ME_BSART_DET for enhancements.