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 get ABAP source code for a specific version

Former Member
0 Likes
2,684

Hi all

Is there a function module that I can use to get the source code of another function module at a specific version?

For example, can I call a function module passing in "FM_NAME" and "FM_VERSION" and have it return the lines of code associated with that object?

Thanks in advance.

Stuart

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,798

Thanks guys

That's incredibly helpful! I have one more question that I just thought of last night...

Is there a way to hook into the code activation process? I want to be able to take a snapshot of the ABAP source code at each point when it is activated for use in another system, but need to be able to intercept this event and get the source code at that point in time.

Any ideas?

Thanks!

5 REPLIES 5
Read only

Former Member
1,798

Refer this program "RSVRSRS1" and i think this is the function module "SVRS_GET_REPS_FROM_OBJECT"

Edited by: Ramesh Kumar Pampapathi on Jul 12, 2010 6:34 PM

Read only

Subhankar
Active Contributor
0 Likes
1,798

Hi,

use the FM SVRS_GET_VERSION_REPS_40 for the same..

thanks

Subhankar

Read only

Former Member
0 Likes
1,799

Thanks guys

That's incredibly helpful! I have one more question that I just thought of last night...

Is there a way to hook into the code activation process? I want to be able to take a snapshot of the ABAP source code at each point when it is activated for use in another system, but need to be able to intercept this event and get the source code at that point in time.

Any ideas?

Thanks!

Read only

0 Likes
1,798

Check badi

CTS_CURRENT_PROJECT

WB_PROCESS_FCODE

These badis gets triggered when a program is activated.

Read only

0 Likes
1,798

Excellent... thank you!