Try to make 5 to 10 lines out of this sentence: Problem is that, the view is not getting selected automatically while executing the LSMW, means, when execution start, it goes to MM02 and then label view screen comes and there it is getting stuck.
We understood that you did a recording (worst case scenario for material master load )
What do you want to say with this statement: while executing the LSMW
when I execute LSMW, then I just get a menu with many actions, you should explain in detail if you do step 1 when this happens: the view is not getting selected automatically
or if you are already in the last step "run batch input session"
Can it eventually be that you did a default setting in your MM02 transaction, to automatically select a certain view, to hide eventually the view selection? All this is not considered in a recording and in execution of a batch input session, as this are your personal settings, and the batch input could actually be executed by anybody else who has no such settings.
But this is just an assumption. If you really want help then you should help yourself by posting much clearer statements. We do not see what you have on your screen, we can only get the information from your explanation. So you have to put some more effort into this. Try to explain colors to a blind person.