Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Status Program name for transaction code

Former Member
0 Likes
1,639

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

7 REPLIES 7
Read only

Former Member
0 Likes
1,350

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

Read only

0 Likes
1,350

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

Read only

0 Likes
1,350

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

Read only

Former Member
0 Likes
1,350

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

Read only

0 Likes
1,350

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

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,350

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

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,350

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