SAP may buy stake in Indian ECM vendor NewGen