EasyInput HowTo Guide:
EI How To Create Material - MM01.pdf
Important: Instead of MM01 transaction recording one could use the BAPIs given for that purpose: BAPI BAPI_MATERIAL_SAVEREPLICA (and BAPI_MATERIAL_GETINTNUMBER) - see one of the examples delivered with EasyInput.