SAP MM (Materials Management) is a core functional module in SAP ERP and SAP S/4HANA that manages an organization's procurement, supply chain logistics, and inventory activities. Its primary goal is to ensure materials and services are available in the right quantity, at the right time, and at the right cost without shortages or excess stock.