‎2008 Jul 25 10:28 AM
Hello All,
I want to know the Function Group Name for a specified Function Module Name Programatically.
I need this, to check the RFC Authorization for the User to ececute the FM.
I want to check the authorization using the FM AUTHORITY_CHECK_RFC by passing the username and the function group of the FM.
So, can u guys tell me hw to find out the Fnction group of the FM ?
Regards,
Deepu.K
‎2008 Jul 25 10:34 AM
Hi,
Please use the Table to find the FM name -
TFDIR
Write a select Query on these tables and use the RFC method for the Authorization
we can pass the FUNCNAME MAND of the table and pass the same to the RFC method
Thanks & Regards,
Chandralekha.
‎2008 Jul 25 10:34 AM
Hi,
Please use the Table to find the FM name -
TFDIR
Write a select Query on these tables and use the RFC method for the Authorization
we can pass the FUNCNAME MAND of the table and pass the same to the RFC method
Thanks & Regards,
Chandralekha.
‎2008 Jul 25 10:40 AM
Hello Chandralekha,
The DBT TFDIR Returns the ABAP Program Name of the specified FM .
But, I need the Function Group not the Program !
BTW which RFC Method r u talking about ?
Regards,
Deepu.K
‎2008 Jul 25 10:41 AM
Hi
Use the TLIBG for the fucntion groups here we can pass the AREA and UNAME to the RFC authorization
Thanks & Regards,
Chandralekha.
‎2008 Jul 25 10:42 AM
‎2008 Jul 25 10:43 AM
Get the Function group name from PNAME field .. starting
from 4th character .. (remove SAPL )
PNAME+4
‎2008 Jul 25 10:48 AM
Hello Shiba,
That was the one I'm looking for . Many thanks !
@Vishnu : I too initially checked the DBT WRFT1 .
But I could not find any entries for my FM name in that DBT.
@Chandralekha : The DBT TLIBG is to find the Person responsible for function class whereas my reqt. was to find the Function Group name from the FM .
Regards,
Deepu.K
‎2008 Jul 25 10:41 AM
‎2008 Jul 25 10:42 AM
U have a table ENLFDIR in which FM and FG are stored.
Regards,
Shailaja
‎2008 Jul 25 10:46 AM
Use the table TFDIR to get the program name(PNAME) by passing the fuction module name. Now get the Function group name i.e., PNAME+4(40) the first four letters will be always SAPL and the remaining letters will specify the Function group name.
Regards,
Kiran Bobbala.