‎2009 Sep 04 7:40 AM
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
‎2009 Sep 04 8:30 AM
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
‎2009 Sep 04 7:44 AM
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
‎2009 Sep 04 8:30 AM
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
‎2009 Sep 04 8:41 AM
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
‎2009 Sep 04 8:44 AM
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
‎2009 Sep 04 8:57 AM
‎2009 Sep 04 9:00 AM
Hi Dzed,
Thanks a ton, that solves my problem.
Regards
Manas Dua
‎2009 Sep 04 10:46 AM
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.
‎2009 Sep 04 10:49 AM
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