09-20-2007 7:11 AM
Hi Abap Gurus,
I would like to know programatically whether an exit (CATS0008) has been implemeted/activated through CMOD and SMOD.
Warm Regards,
Avinash
points will be rewarded for helpful info.
09-20-2007 7:26 AM
Hi,
When an enhancement CATS0008 has been implemented in the system, this should be available in CMOD under certain projects starting with Z* convention.e.g. ZXYZ
The next time when you try to assign this CATS0008 enhancement to another customer project say, e.g. ZABC, the system will give you an error stating that, the enahncement has already been assigned to another customer project ZXYZ.
So, programatically you can aachive this using table : TADIR, where in the customer project ZXYZ will be TADIR-OBJ_NAME and TADIR-BJECT = 'CMOD' and TADIR-PGMID = 'R3TR'.
Hopr this helps.
Regards,
JLN
09-20-2007 7:28 AM
Pass this enhancement number (CATS0008)to MODACT and it will give u the project name ( of CMOD) if created at all.
table MODSAP contains the link between CATS0008 and its function module EXIT_SAPLCATS_007.
Now if you want to check if somebody has written something inside it - then pass this FM name (EXIT_SAPLCATS_007) to a function module <b>FUNCTION_EXISTS</b> and it will give you the Include name.You just pass this include name(LXCATU08) to TRDIR and check whether somebody has activated and written any code or not.
Hope it helps.