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 Module to edit ABAP coding

Former Member
0 Kudos
1,669

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos
220

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

13 REPLIES 13

Former Member
0 Kudos
220

Hello,

I don't think that there is any function module in ABAP which full fill your requirment

Thanks

Arun

Former Member
0 Kudos
220

u can use text editor for the same and u can code inside that and can be called from program dynamically

0 Kudos
220

Hi Can you please clarify me once again.

Thanks,

Prasad

0 Kudos
220

> l Questions: 13 (13 unresolved)

Former Member
0 Kudos
220

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...

Former Member
0 Kudos
220

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.

Former Member
0 Kudos
220

Hi,

We can change the code only Though ABAP Debugger..

Thanks

Kalyan

agnihotro_sinha2
Active Contributor
0 Kudos
220

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

Former Member
0 Kudos
221

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

Former Member
0 Kudos
220

Hi Prasad,

I searched for function Module But i dnt find.

So i think we have to do it as Manually.

Thanks,

N.Neelima.

0 Kudos
220

Hi Neelima,

Thanks for your support. Anyway I will also dig a bit meanwhile.

Thanks,

Prasad

0 Kudos
220

Hi Prasad,

Doesn't RS_TOOL_ACCESS solve your issue. Do you need any additional functionality ?

Regards

Former Member
0 Kudos
220

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.