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

Object Directory Entry

HKany
Participant
0 Likes
1,049

Hi folks,

I need to distinguish a function group and a function. My problem is that both have the same object directory entry.

I must know if there is another attribute to distinguish them. If yes where to find?

Thanks in advance.

6 REPLIES 6
Read only

ThomasZloch
Active Contributor
0 Likes
753

You can't distinguish in TADIR, only R3TR FUGR in there. In TFDIR you have a list of all functions, the group can be derived from column PNAME (minus the 'SAPL').

What are you actually trying to accomplish?

Thomas

Read only

0 Likes
753

I have an ALV Grid with columns like in the object directory entry. When the user clicks on a line the system has to branch to the relevant editor. It works with just every object. But a function should branch to SE37 and a function group to SE80 and so I need to find out how to distinguish them.

Read only

0 Likes
753

Well, apart from reinventing the wheel (isn't SE80/SE90 providing that kind of functionality?), you will need to resolve the R3TR FUGR entries into their LIMU FUNC subobjects before displaying the ALV list.

Same applies to classes and methods by the way, did you not run into the same problem there?

Thomas

Read only

0 Likes
753

Solved.

IF wa-object = 'FUGR'.

SELECT *

FROM enlfdir

INTO CORRESPONDING FIELDS OF TABLE t_enlfdir

WHERE area = wa-obj_name

AND generated <> 'X'.

IF sy-subrc EQ 0.

LOOP AT t_enlfdir INTO wa_enlfdir.

wa-obj_name = wa_enlfdir-funcname.

APPEND wa TO h_itab.

help_counter = help_counter + 1.

ENDLOOP.

ENDIF.

ENDIF.

CLEAR wa.

counter = counter + 1.

ENDLOOP.

Read only

Former Member
0 Likes
753

hi,

Function modules are stored under function group .

Read only

HKany
Participant
0 Likes
753

solved the question on my own.