‎2008 Aug 01 1:04 PM
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.
‎2008 Aug 01 1:14 PM
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
‎2008 Aug 01 1:24 PM
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.
‎2008 Aug 01 1:30 PM
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
‎2008 Aug 08 12:06 PM
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.
‎2008 Aug 01 1:19 PM
‎2008 Aug 08 12:06 PM