Hi,
in case of MM01 you can't get the program name with a function module.
MM01 starts with screen 1000 of program SAPMMG01.
But this screen has a PBO module with SUPPRESS DIALOG and a PAI module which calls function module MATERIAL_MAINTAIN_DIALOGUE.
Screen 0060 of function group MGMM isn't the start screen of transaction MM01, but the 1st screen shown.
I think you can't find a function module which will give you the information you need.
But why do you really need this information? I can't imagine a request needing this information.
Maybe your question is the wrong starting point for solving your issue.
For this we need some background information, why you believe to need this information.
Regards,
Klaus