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 Module to Check for a Function Group in package

Former Member
0 Likes
2,164

Hi,

Is there any fucntion module with help of which we can check that whether a mentioned Function Group exists inside a mentioned Pakcage.

Regards

Manas Dua

1 ACCEPTED SOLUTION
Read only

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

Hello,

You donot need a Func. Module for this.

You can check this from the table TADIR using a simple SELECT stmt:

SELETE COUNT(*) FROM TADIR
WHERE 
PGMID = 'R3TR' AND
OBJECT = 'FUGR' AND
OBJ_NAME = <your Func. Gr. Name> AND
DEVCLASS = <your package name>

Hope i am clear.

BR,

Suhas

8 REPLIES 8
Read only

Former Member
0 Likes
1,594

Hi,

If you want to check the package of a function group just go to se37 on the initial screen put the function module name go to > FUnction groups> Display group There you would hvae the info thaht you require.

Also you can go to se80 and navigate to the package to find if the group exits there.

Regards,

Himanshu

Read only

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

Hello,

You donot need a Func. Module for this.

You can check this from the table TADIR using a simple SELECT stmt:

SELETE COUNT(*) FROM TADIR
WHERE 
PGMID = 'R3TR' AND
OBJECT = 'FUGR' AND
OBJ_NAME = <your Func. Gr. Name> AND
DEVCLASS = <your package name>

Hope i am clear.

BR,

Suhas

Read only

Former Member
0 Likes
1,594

HI Suhas,

The query will do the needful but is there any function module for the same.

As a programming guideline we shouldn't make use of direct queries...

Regards

Manas Dua

Read only

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

Hello Manas,

As a programming guideline we shouldn't make use of direct queries...

May i ask, from which source did you get this guideline?

Suhas

Read only

Former Member
0 Likes
1,594

Hello

Try FM TR_READ_TADIRS

Read only

Former Member
0 Likes
1,594

Hi Dzed,

Thanks a ton, that solves my problem.

Regards

Manas Dua

Read only

Former Member
0 Likes
1,594

The code inside the FM-TR_READ_TADIRS is as below .. how can you this FM now? it has a direct query!!



  DESCRIBE TABLE LT_TADIR_TMP LINES LV_LINES.
  IF LV_LINES > 0.
    SELECT * FROM TADIR INTO TABLE ET_TADIR
                        FOR ALL ENTRIES IN LT_TADIR_TMP
                        WHERE PGMID    = LT_TADIR_TMP-PGMID
                          AND OBJECT   = LT_TADIR_TMP-OBJECT
                          AND OBJ_NAME = LT_TADIR_TMP-OBJ_NAME.
  ENDIF.

Read only

Former Member
0 Likes
1,594

Hi,

The function module in ques is a SAP delivered standard function module which can be reused. That's all I wanted.

I've marked my question as answered.

Regards

Manas Dua