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

Former Member
0 Likes
3,854

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
Read only

Former Member
0 Likes
2,405

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
Read only

Former Member
0 Likes
2,405

Hello,

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

Thanks

Arun

Read only

Former Member
0 Likes
2,405

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

Read only

0 Likes
2,405

Hi Can you please clarify me once again.

Thanks,

Prasad

Read only

0 Likes
2,405

> l Questions: 13 (13 unresolved)

Read only

Former Member
0 Likes
2,405

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

Read only

Former Member
0 Likes
2,405

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.

Read only

Former Member
0 Likes
2,405

Hi,

We can change the code only Though ABAP Debugger..

Thanks

Kalyan

Read only

agnihotro_sinha2
Active Contributor
0 Likes
2,405

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

Read only

Former Member
0 Likes
2,406

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

Read only

Former Member
0 Likes
2,405

Hi Prasad,

I searched for function Module But i dnt find.

So i think we have to do it as Manually.

Thanks,

N.Neelima.

Read only

0 Likes
2,405

Hi Neelima,

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

Thanks,

Prasad

Read only

0 Likes
2,405

Hi Prasad,

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

Regards

Read only

Former Member
0 Likes
2,405

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.