SAP MM (Materials Management) is a core functional module in SAP ERP and SAP S/4HANA that manages an organization's procurement, inventory, and supply chain processes. It ensures materials are always available in the right quantity and at the right price, optimizing the entire procure-to-pay lifecycle