Beyond ABAPdesigned by@Tejoram97
Beyond ABAP / MM ABAP / Interview Questions

Interview Questions

MM ABAP · Logistics ·

Open the interactive lesson →

All MM interview questions in one place, grouped by page. Read the page when an answer needs more depth.

How to practise: cover the answer, say yours out loud in 30–60 seconds, then compare.

01 · MM Overview, Organization Structure & Master Data

Q1. What is MM and which modules does it integrate with?

Materials Management covers master data, MRP, purchasing, inventory management, valuation and invoice verification. It integrates with SD (stock, goods issue, third-party), PP (MRP, reservations, issues to production), QM (inspection lots), WM / EWM (warehouse), FI (accounting documents, payment) and CO (cost objects, standard prices).

Q2. Explain the MM organization structure.

Client → company code → plant → storage location. Each plant belongs to exactly one company code and is normally the valuation area. Purchasing organizations buy for plants (many-to-many, optionally tied to one company code); purchasing groups are buyers and are not assigned to any unit.

Q3. What types of purchasing organization exist?

Central (no company code, buys for several company codes), company-code specific (buys for the plants of one company code) and plant specific (one per plant). A reference purchasing org lets others use centrally negotiated contracts.

Q4. What is a valuation area?

The level at which stock is valued – the plant (recommended) or the company code, chosen once for the client in OX14. Valuation data (MBEW) is keyed by material and valuation area (BWKEY), plus valuation type for split valuation.

Q5. What does the material type control? Name some.

Allowed views, number range, quantity and value update, default price control and procurement type. Examples: ROH raw material, HALB semifinished, FERT finished, HAWA trading goods, NLAG non-stock, DIEN service, UNBW non-valuated, HIBE operating supplies.

Q6. Which tables hold material master data on which level?

MARA general and MAKT texts (client), MARC plant, MARD storage location, MBEW valuation area, MARM units of measure, MLAN tax per country, MVKE sales org + channel, MLGN warehouse number, MCHB batch stock, MAST link to the BOM.

Q7. What changed for the material master in S/4HANA?

It is called product in Fiori and in CDS (I_Product), the material number is 40 characters (ECC 18), and stock quantities in MARD / MCHB are derived from MATDOC instead of being updated directly.

Q8. How is the vendor master handled in S/4HANA?

As a business partner with roles FLVN00 (company code data) and FLVN01 (purchasing data), maintained in BP. CVI keeps LFA1, LFB1 and LFM1 in sync (link table CVI_VEND_LINK); XK01, MK01 and FK01 redirect to BP. ECC: the vendor is maintained directly with XK01 / MK01 / FK01 in LFA1 / LFB1 / LFM1; BP and CVI are optional.

Q9. What is a purchasing info record and where is it stored?

Supplier-material data used as default in POs: price conditions, delivery time, tolerances, supplier material number. EINA holds general data, EINE purchasing org / plant data per info category (standard, pipeline, consignment, subcontracting); the prices are condition records in A017 / A018, KONH, KONP.

Q10. How do you read the current info record price in ABAP?

Select the condition record number KNUMH from A017 (or A018 without plant) with application M, condition type PB00, supplier, material, purchasing org, plant, info category and a validity range containing today, then read KBETR, KONWA and KPEIN from KONP.

Q11. What is the difference between a source list and a quota arrangement?

A source list (ME01, table EORD) defines which sources are allowed, fixed or blocked for a material in a plant and period. A quota arrangement (MEQ1, EQUK / EQUP) distributes requirements among several allowed sources by percentage. The quota arrangement is checked first.

Q12. Where are characteristic values of a material stored?

In AUSP (object key, internal characteristic number ATINN, class type, value). Characteristics are in CABN, classes in KLAH, the object-to-class allocation in KSSK. Use BAPI_OBJCL_GETDETAIL to read them.

02 · Procure-to-Pay Process & Purchasing Documents

Q1. Explain procure-to-pay with transactions and tables.

Purchase requisition ME51N (EBAN, EBKN) → RFQ ME41 / quotation ME47 / comparison ME49 (EKKO, EKPO) → purchase order ME21N (EKKO, EKPO, EKET, EKKN) → goods receipt MIGO 101 (MATDOC, ECC MKPF / MSEG; EKBE) → invoice MIRO or park MIR7 (RBKP, RSEG) → payment F110 (BKPF / BSEG, S/4HANA ACDOCA).

Q2. What is the difference between a purchase requisition and a purchase order?

The requisition is an internal request without supplier commitment (EBAN, no header table). The PO is the legal order to a supplier with price and delivery date (EKKO / EKPO). Requisitions are converted into POs with ME21N, ME57 / ME58 or automatically with ME59N.

Q3. Which tables does a purchase order use?

EKKO header, EKPO items, EKET schedule lines, EKKN account assignment, EKBE PO history, EKBZ delivery costs history, EKES confirmations, EKPA partners, conditions in PRCD_ELEMENTS (ECC KONV) and texts in STXH / STXL.

Q4. How do you find open purchase order quantities?

Join EKKO, EKPO and EKET and compare the scheduled quantity EKET-MENGE with the received quantity EKET-WEMNG, excluding deleted items and items with delivery completed (ELIKZ). EKBE gives the individual goods receipts and invoices.

Q5. What is the difference between document category and document type?

The category (EKKO-BSTYP) is fixed by SAP: F PO, A RFQ, K contract, L scheduling agreement (requisitions: B in EBAN – not an EKKO category). The type (BSART) is customizable inside a category, e.g. NB standard PO, UB stock transport order, FO framework order, MK / WK contracts.

Q6. Name the item categories in purchasing.

Standard (blank), limit B, consignment K, subcontracting L, third-party S, stock transfer U, service D. EKPO-PSTYP stores internal numbers (0, 1, 2, 3, 5, 7, 9), so SELECTs must use those.

Q7. What is an account assignment category?

EKPO-KNTTP says that the item is consumed by a cost object instead of going to stock: K cost center, F order, P WBS element, N network, A asset, E sales order, U unknown. The account assignment data is in EKKN (EBKN for requisitions).

Q8. How does the release strategy work, and what replaces it in S/4HANA?

Classic: characteristics on CEBAN / CEKKO in a class of type 032 determine a release strategy; the document is blocked until all release codes are set (ME29N / ME28 for POs, ME54N / ME55 for requisitions). S/4HANA offers the flexible workflow configured in Fiori with approval in My Inbox; the classic strategy still works on-premise.

Q9. What is the difference between a contract and a scheduling agreement?

A contract (MK quantity, WK value; ME31K) is called off with release orders – normal POs referring to it, recorded in EKAB. A scheduling agreement (LP / LPA; ME31L) has its own delivery schedule lines in EKET, so no separate POs are created.

Q10. How are services procured?

Classic MM-SRV: PO item category D with service lines (ESLH / ESLL), service entry sheet ML81N (ESSR) whose acceptance acts as goods receipt, then MIRO. In S/4HANA lean services use normal items with service products and the Fiori app Manage Service Entry Sheets – Lean Services.

Q11. What are S011, S012, S013 and S031?

LIS info structures: purchasing group statistics, purchasing statistics, vendor evaluation statistics and movements of current stock. They are legacy in S/4HANA, where reporting moves to CDS-based analytics.

Q12. What does MRP create and what is MRP Live?

MRP creates planned orders or purchase requisitions for uncovered requirements; the result is shown in MD04. MRP Live (MD01N) is the S/4HANA planning run executed on the HANA database, much faster than classic MD01.

03 · Inventory Management, Valuation & Invoice Verification

Q1. What is a movement type? Name the ones you know.

A 3-digit key (T156) that controls how a goods movement updates quantities, stock types and G/L accounts. 101 GR for PO, 102 reversal, 122 return to supplier, 201 GI cost center, 261 GI order, 301 plant to plant, 311 storage location to storage location, 321 quality to unrestricted, 551 scrapping, 561 initial stock, 601 GI delivery, 701 / 702 inventory differences.

Q2. Which tables store a material document in ECC and in S/4HANA?

ECC: MKPF (header) and MSEG (items) plus updates of the stock tables. S/4HANA: one table MATDOC; MKPF, MSEG, MARD, MCHB … are read through CDS compatibility views (NSDM_E_*), stock is calculated on read.

Q3. Will my old SELECT on MSEG still work in S/4HANA?

Yes – the SELECT is redirected to the compatibility view on MATDOC. For performance and new code read MATDOC directly or use released CDS views such as I_MaterialDocumentItem_2. Direct writes to the stock tables are not possible any more.

Q4. What is the difference between quality inspection, blocked and GR blocked stock?

Quality inspection and blocked stock are valuated stock types (MARD-INSME, SPEME) that cannot be consumed until released (321, 343). GR blocked stock (103) is not valuated – the goods are received but not yet accepted; 105 releases them into valuated stock.

Q5. Which tables hold reservations and physical inventory documents?

Reservations: RKPF (header), RESB (items). Physical inventory: IKPF (header), ISEG (items). Differences are posted with MI07 using movement types 701 / 702.

Q6. Standard price or moving average price – what is the difference?

S keeps the price fixed and posts differences to PRD; V recalculates the price with every receipt so the stock is valued at actual purchase prices. Purchased materials usually use V, own products S. Both are in MBEW (VPRSV, STPRS, VERPR).

Q7. How does the system find the G/L account for a goods receipt?

Movement type → value string → transaction keys (BSX, WRX, PRD) → OBYC rules (T030) by chart of accounts, valuation grouping code, account modifier and valuation class from MBEW-BKLAS → G/L account.

Q8. What is posted at goods receipt and at invoice receipt?

GR: debit stock (BSX), credit GR/IR clearing (WRX), price differences to PRD for S-materials. Invoice: debit GR/IR, credit supplier; invoice differences go to stock (V with stock) or PRD.

Q9. Difference between MIRO and MIR7?

MIRO posts the invoice (FI document created, supplier open item). MIR7 parks it: the invoice is saved without an FI document and can be completed, checked and posted later.

Q10. Why is an invoice blocked for payment and how is it released?

A price, quantity or date variance exceeds the tolerance keys (OMR6: PP, DQ, ST …), so MIRO sets payment block R. MRBR releases it manually or automatically when the reason is gone (e.g. the GR arrives).

Q11. What is the GR/IR account and what does MR11 do?

A clearing account between goods receipt (credit) and invoice (debit). MR11 clears balances that will not be settled by further GRs or invoices, posting the difference to an expense / income account.

Q12. Where are accounting documents in S/4HANA and how do you find the FI document of an invoice?

In the Universal Journal ACDOCA (BKPF still holds the header; FAGLFLEXA is ECC only). The FI document has BKPF-AWTYP = 'RMRP' and AWKEY = invoice number + fiscal year.

04 · MM for ABAP Developers – Exits, BAdIs, BAPIs & S/4HANA

Q1. Which BAdI do you use to validate a purchase order?

ME_PROCESS_PO_CUST: PROCESS_HEADER / PROCESS_ITEM for field checks and defaults, CHECK for checks over the whole document (CH_FAILED stops the save), POST to write own tables. Messages via the MM_MESSAGES_MAC macros and IM_ITEM->INVALIDATE( ).

Q2. How do you add a custom field to the purchase order?

Append it to CI_EKKODB / CI_EKPODB, add a screen with customer exit MM06E005 or BAdI ME_GUI_PO_CUST, check it in ME_PROCESS_PO_CUST, and for BAPIs extend BAPI_TE_MEPOITEM(X) for EXTENSIONIN. In S/4HANA use the Custom Fields app.

Q3. Which enhancements exist for MIGO?

MB_MIGO_BADI (own tab, line changes, checks, POST_DOCUMENT), MB_CHECK_LINE_BADI (line checks), MB_DOCUMENT_BADI (before / in the update of the material document), exits MBCF0002 (item text) and MB_CF001.

Q4. What is GM_CODE in BAPI_GOODSMVT_CREATE?

The transaction the posting is based on: 01 GR for PO, 02 GR for production order, 03 goods issue, 04 transfer posting, 05 other receipts, 06 reversal, 07 subcontracting adjustment. Together with movement type and MVT_IND it decides which fields are required.

Q5. Why does your second BAPI_GOODSMVT_CREATE call in a loop fail?

The BAPI must be called once per LUW: call BAPI_TRANSACTION_COMMIT (WAIT = 'X') or ROLLBACK after each document before the next call.

Q6. How do you create a purchase order from a program?

BAPI_PO_CREATE1 with POHEADER / POITEM / POSCHEDULE and their X structures, check RETURN for E / A, then BAPI_TRANSACTION_COMMIT with WAIT. The BAdI ME_PROCESS_PO_CUST runs as in ME21N.

Q7. Which IDocs are used in MM?

ORDERS (PO out, ORDERS05), ORDCHG (PO change), ORDRSP (order confirmation in → EKES), DESADV (shipping notification in → inbound delivery), INVOIC (supplier invoice in via IDOC_INPUT_INVOIC_MRM), MBGMCR for goods movements.

Q8. How is the purchase order printed?

ECC: NACE application EF, output type NEU, program SAPFM06P with SAPscript MEDRUCK (or a custom Smart Form / Adobe form), condition records MN04, output record in NAST. S/4HANA: output management with BRF+ and Adobe form templates; NAST-based output is still supported for POs on-premise.

Q9. Which BAdI changes the invoice in MIRO?

INVOICE_UPDATE (CHANGE_AT_SAVE for checks, CHANGE_BEFORE_UPDATE, CHANGE_IN_UPDATE); MRM_HEADER_CHECK for header checks; MRM_PAYMENT_TERMS for payment terms and blocks; exits LMR1M001 and MRMH0002 (EDI).

Q10. Your old report reads MKPF, MSEG and KONV and uses 18-character material numbers. What changes in S/4HANA?

MKPF / MSEG are served from MATDOC through compatibility views (works, but read MATDOC or I_MaterialDocumentItem_2 for new code); KONV is replaced by PRCD_ELEMENTS; MATNR has 40 characters, so remove fixed lengths and offsets and use the …_LONG BAPI fields.

Q11. How do you write an open purchase order report?

Join EKKO, EKPO and EKET: purchase orders (BSTYP F), items not deleted and not delivery-completed, schedule lines with WEMNG < MENGE. In S/4HANA or ABAP Cloud use I_PurchaseOrderAPI01 / I_PurchaseOrderItemAPI01.

Q12. How would you extend the purchase order in a clean-core way?

Custom Fields for new fields, Custom Logic or ADT implementations of released BAdIs (MM_PUR_S4_PO_…) for logic, released CDS views and APIs (API_PURCHASEORDER_PROCESS_SRV – OData V2, deprecated in Public Edition since 2308 – or its OData V4 successor API_PURCHASEORDER_2) for reading and integration – ME_PROCESS_PO_CUST and CMOD exits only on-premise when no released option exists.

05 · MM T-Codes & Tables Reference

Q1. Which tables hold a purchase order and its history?

EKKO header, EKPO items, EKET schedule lines, EKKN account assignment. EKBE is the PO history (goods receipts and invoices per item), EKBZ the delivery costs history.

Q2. Where are material documents in S/4HANA?

In MATDOC – header and items in one table. MKPF and MSEG still answer a SELECT through compatibility views. Postings go through MIGO; MB1A, MB1B, MB1C, MB01, MB31 and MBRL are obsolete.

Q3. Which t-codes and tables show stock?

MMBE stock overview, MB52 stock per storage location, MB5B stock on a posting date. Tables MARD (storage location) and MCHB (batch); in S/4HANA their stock is calculated from MATDOC.

Q4. Where are the price and conditions of an info record?

EINA (general) and EINE (purchasing organization / plant) hold the info record; its conditions are found through condition table A017 (or A018) and stored in KONH / KONP. Maintain with ME11 / ME12.

Q5. Which t-codes and tables are used in invoice verification?

MIRO post, MIR7 park, MIR4 call MIRO / change status, MRBR release blocked, MR8M cancel, MR11 GR/IR clearing. Tables RBKP / RSEG; the FI document is BKPF / BSEG, in S/4HANA also ACDOCA.

Q6. How do you release purchase requisitions and purchase orders?

Requisitions: ME54N single, ME55 collective. Purchase orders: ME29N single, ME28 collective. The release status is in EBAN-FRGZU and EKKO-FRGZU. In S/4HANA flexible workflow can replace the release strategy.

Q7. How do you read the header text of a purchase order?

Call READ_TEXT with TDOBJECT EKKO, TDNAME = PO number, the text ID and the language. STXH holds the header, STXL the compressed lines, so do not SELECT STXL directly.

Q8. Which tables hold material master data per organizational level?

MARA client level, MARC plant, MARD storage location, MBEW valuation area, MVKE sales org and channel, MLGN warehouse number; MAKT descriptions and MARM units of measure.