a quick look into help.sap.com or into my blog LSMW Material master by BAPI method - Part 1
would immediately answer your question
a quick look into help.sap.com or into my blog LSMW Material master by BAPI method - Part 1
would immediately answer your question