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

Function Group Name from FM name programatically ?

Former Member
0 Likes
2,196

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,483

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.

9 REPLIES 9
Read only

Former Member
0 Likes
1,484

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.

Read only

0 Likes
1,483

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

Read only

0 Likes
1,483

Hi

Use the TLIBG for the fucntion groups here we can pass the AREA and UNAME to the RFC authorization

Thanks & Regards,

Chandralekha.

Read only

0 Likes
1,483

check ENLFDIR table.

or view V_FDIR

Read only

0 Likes
1,483

Get the Function group name from PNAME field .. starting

from 4th character .. (remove SAPL )

PNAME+4

Read only

0 Likes
1,483

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

Read only

former_member188829
Active Contributor
0 Likes
1,483

Hi,

Check The Table WRFT1

Read only

Former Member
0 Likes
1,483

U have a table ENLFDIR in which FM and FG are stored.

Regards,

Shailaja

Read only

Former Member
0 Likes
1,483

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.