‎2013 Jul 04 11:22 AM
Hi Experts,
For TCODE MM01, program name in TSTC is given as SAPMMG01 where as if you goto MM01->System->Status->Program it is giving as SAPLMGMM.
I need some table or FM using which I get status program name linked to transaction. i.e SAPLMGMM for transaction MM01.
Please help.
Regards,
Mani
‎2013 Jul 04 1:14 PM
Hi,
please try function module RPY_TRANSACTION_READ.
Pass your transaction to parameter TRANSACTION and you will get the program name in field PGMNA of table TCODES.
Read with table TCODES with index 1.
Regards,
Klaus
‎2013 Jul 05 4:29 AM
Hi Klaus,
Using FM "RPY_TRANSACTION_READ", I am getting program name as SAPMMG01. I want program name which appears in the status of transaction.
Regards,
Mani
‎2013 Jul 08 5:52 AM
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
‎2013 Jul 04 2:15 PM
Mani.
The value that you are getting is correct.
SAPLMGMM is not a program name, it is a Function Group name.
If you check tcode SE93, the name of the program is SAPMMG01.
Those 2 things are very different.
Regards
Miguel
‎2013 Jul 05 4:30 AM
Hi Miguel,
Yes, In SE93 associated program is SAPMMG01 but I need module program name SAPLMGMM which appears in status of transaction.
Please help.
Regards,
Mani
‎2013 Jul 05 9:58 AM
I need some table or FM using which I get status program name linked to transaction. i.e SAPLMGMM for transaction MM01.IMO you'll get this data at runtime & not statically!
Did you get ever look into the coding behind the module pool program SAPMMG01? If yes, did you do an F1 on SUPPRESS DIALOG? If yes (again), you should have your answer anyway
BR,
Suhas
PS - If you let us know the business requirement you want to achieve, may be we can offer some suitable workaround
‎2013 Jul 05 3:02 PM
Not much chance. In your example the transaction call the program associated to it in SE93, but this one immediately executes a FM MATERIAL_MAINTAIN_DIALOGUE of group MGMM (PBO: suppress dialog so trigger PAI, PAI then call the FM). AFAIK There is no table linking those two reports. Each time a CALL FUNCTION/METHOD is executed, the link is broken with transaction ?
Regards,
Raymond