2009 Feb 05 9:52 AM
Hi Gurus,
Can anyone tell me if there is any standard function module to go into the code and change some code dynamically in abap Editor.
There is some text needs to be changed in source code, which occurs huge number of times.
Manually to do it is difficult. This activity needs to be done in many programs.
Hope I am clear.
Thanks,
Prasad
Edited by: Julius Bussche on Feb 5, 2009 10:58 AM
Use meaningfull subject titles
2009 Feb 05 10:10 AM
Hi Prasad,
Use function module
RS_TOOL_ACCESS
Parameters to use
OPERATION EDIT
OBJECT_NAME ZRR_TEST_02
OBJECT_TYPE PROG
As Julius pointed out close your threads which are resolved
Regards
2009 Feb 05 9:56 AM
Hello,
I don't think that there is any function module in ABAP which full fill your requirment
Thanks
Arun
2009 Feb 05 9:58 AM
u can use text editor for the same and u can code inside that and can be called from program dynamically
2009 Feb 05 10:00 AM
2009 Feb 05 10:00 AM
2009 Feb 05 9:59 AM
hello friend ,
If it is text we can use ctrl+f command with keyboard there we have an option like Replace with check box .....
u can try with this ....
Thank You,
Jay...
2009 Feb 05 10:00 AM
Hi Prasad,
If you are not need to remove any code in the program and needs to add code to get some functionality of the program you are working, You can try with enhancement framework.Create enhancement spot and apply the code whatever you want add.
Regards,
Venkat.
2009 Feb 05 10:01 AM
Hi,
We can change the code only Though ABAP Debugger..
Thanks
Kalyan
2009 Feb 05 10:02 AM
hi,
I think this can be done using SCII... Give a shot....
goto SCII tcode
under temp def goto Search Functs.
Goto Find Unwanted Language Elements
click on the Green arrow beside it and options open up...
by default it is call transaction... add more options like whatever keywords you want 2 search there
regards,
ags
2009 Feb 05 10:10 AM
Hi Prasad,
Use function module
RS_TOOL_ACCESS
Parameters to use
OPERATION EDIT
OBJECT_NAME ZRR_TEST_02
OBJECT_TYPE PROG
As Julius pointed out close your threads which are resolved
Regards
2009 Feb 05 10:26 AM
Hi Prasad,
I searched for function Module But i dnt find.
So i think we have to do it as Manually.
Thanks,
N.Neelima.
2009 Feb 06 7:48 AM
Hi Neelima,
Thanks for your support. Anyway I will also dig a bit meanwhile.
Thanks,
Prasad
2009 Feb 06 7:52 AM
Hi Prasad,
Doesn't RS_TOOL_ACCESS solve your issue. Do you need any additional functionality ?
Regards
2009 Feb 06 10:17 AM
Hello Prasad CD,
Your question really made us wear thinking cap.
Here are some Function Modules, which shall definitely help you solve your problem:
SCWB_GET_ABAP_CODE_OF_OBJECT,
RS_DETERMINE_OBJECT_SOURCE.
Also, check out this program in SE38: RPR_ABAP_SOURCE_SCAN.
Hope this benefits you.
Courtesy : Zahackson.