Application Development 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: 

function group or function module created date

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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

0 Kudos

And if you can find the includes for each funciton module, you can use the include program name and check the creation date within table TRDIR.

REgards,

Rich Heilman

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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