SAP for mining