Hi Pradeep,
Updating Standard table via Mara via a custom program is a not a good way.Just create a BDC recording for MM01.
Instaed of uploading the file just loop your selection screen materials and pass it into respective fields.
Search in SCN you will get lot of examples.
Regards,
Kannan