Hello
MD02 is a multi-level planning transaction, which means that MRP will plan this material and all the components.
A time out on MD02 usually happens when there are too many components (huge BOM) or that you have to many planning elements. It may be also a combination of both causes.
There are two alternative to avoid this dump:
1 - Plan your material using transaction MD03, which is a single level planning transaction
2 - Increate the max runtime parameter as already suggested by Jürgen.
BR
Caetano