Naming Material request

I want to add material name as companycode(02) followed by last two digits(24) followed by year -5 digits(00001).eg:022400001.how?

I assume “companycode” is a custom field you added to the company doctype.
You need to create a field in Material Request to fetch that code (use field fetch from)
Then use that field in your expression/naming series