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

Replace occurs with work area

Former Member
0 Likes
813

Hi Friends,

I have one requirement to check and replace in my old program through new program... I have to Check if the OCCURS is used in the old program we have to modify in the program with corresponding Work Area but then how we are going to handle wherever you used this and corresponding calculations also. Through a automated Report Program.. Could any body help coding or idea will be appreciated...

Thank you....

..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
720

Hi Ayyapa,

First thing you do is, perform a search and replace all OCCURS 0 declarations with TYPE STANDARD TABLE OF ...

When you do this, perform a syntax check on the program.

This will automatically lead you to all the points in the program which need the "incorporation" of work area. Primarily in places where you have performed a MOVE, INSERT, APPEND, MODIFY etc.

SELECT queries doing move INTO the internal table WILL NOT be impacted by this change.

If you are looking at creating a program to perform this for you, then it would be a real challenge considering many QA aspects also invovled.

Hope this helps.

Cheers,

Aditya

4 REPLIES 4
Read only

Former Member
0 Likes
721

Hi Ayyapa,

First thing you do is, perform a search and replace all OCCURS 0 declarations with TYPE STANDARD TABLE OF ...

When you do this, perform a syntax check on the program.

This will automatically lead you to all the points in the program which need the "incorporation" of work area. Primarily in places where you have performed a MOVE, INSERT, APPEND, MODIFY etc.

SELECT queries doing move INTO the internal table WILL NOT be impacted by this change.

If you are looking at creating a program to perform this for you, then it would be a real challenge considering many QA aspects also invovled.

Hope this helps.

Cheers,

Aditya

Read only

0 Likes
720

Hi Mr. Aditya Laud ,

Thank you for your reply ... Could you advise me more idea so that i can go for a new coding... It wont affect QA we will take care of that...

I will award points ...

Thank you..

Read only

Former Member
0 Likes
720

Hi

Try this FM RS_FIND_REPLACE_GLOBAL

Regards

Shiva

Read only

Former Member
0 Likes
720

Hi,

Use the below report.

Report - RPR_ABAP_SOURCE_SCAN

This report will help to scan for a particular STRING specified in the given program(s) and displays source code lines in which the String present. We can use this not only for ABAP reports but also for Screen flows. Below is the selection screen of it.