2007 Jul 12 6:09 PM
hi all,
i coudnt find out the function group or function module created date from either tlibg or tlibt or tfdir tables...can any one tell me in which table the function module and function group created date will be there.
Thanks& regards,
rose
2007 Jul 12 6:39 PM
Something like this.
report zrich_0001.
data: xtrdir type trdir.
data: functiongroup type rs38l-area.
data: includename type rs38l-include.
data: mainprogram type rs38l-include.
parameters: p_func type rs38l-name default 'RPY_FUNCTIONMODULE_READ'.
call function 'FUNCTION_INCLUDE_INFO'
changing
funcname = p_func
group = functiongroup
include = includename
exceptions
function_not_exists = 1
include_not_exists = 2
group_not_exists = 3
no_selections = 4
no_function_include = 5
others = 6.
select single * from trdir into xtrdir
where name = includename.
write:/ 'Function Module:', p_func,
functiongroup, includename, xtrdir-cdat.
concatenate 'SAPL' functiongroup into mainprogram.
condense mainprogram no-gaps.
select single * from trdir into xtrdir
where name = mainprogram.
write:/ 'Function group:', mainprogram, xtrdir-cdat.
Regards,
Rich Heilman
2007 Jul 12 6:19 PM
If ur function group is <b>FVZLWF</b> then its main program will be <b>SAPLFVZLWF</b> and its Creation date can be seen in table TRDIR.
For Function Module <b>ZGP_CHANGE</b> include program in Func Group <b>FVZLWF</b> is <b>LFVZLWFU61</b> and its creation date can also be seen in table <b>TRDIR</b>.
You can also do in this way...
find out the main program for Func Group and Include Prog for Func module and get creation date for these program from <b>TRDI</b>R table
Please check
Reward if useful
Regards
Prax
Message was edited by:
Prax
2007 Jul 12 6:21 PM
2007 Jul 12 6:39 PM
Something like this.
report zrich_0001.
data: xtrdir type trdir.
data: functiongroup type rs38l-area.
data: includename type rs38l-include.
data: mainprogram type rs38l-include.
parameters: p_func type rs38l-name default 'RPY_FUNCTIONMODULE_READ'.
call function 'FUNCTION_INCLUDE_INFO'
changing
funcname = p_func
group = functiongroup
include = includename
exceptions
function_not_exists = 1
include_not_exists = 2
group_not_exists = 3
no_selections = 4
no_function_include = 5
others = 6.
select single * from trdir into xtrdir
where name = includename.
write:/ 'Function Module:', p_func,
functiongroup, includename, xtrdir-cdat.
concatenate 'SAPL' functiongroup into mainprogram.
condense mainprogram no-gaps.
select single * from trdir into xtrdir
where name = mainprogram.
write:/ 'Function group:', mainprogram, xtrdir-cdat.
Regards,
Rich Heilman