‎2008 Feb 12 6:12 AM
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....
..
‎2008 Feb 12 6:18 AM
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
‎2008 Feb 12 6:18 AM
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
‎2008 Feb 12 10:07 AM
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..
‎2008 Feb 12 6:40 AM
‎2008 Feb 12 2:06 PM
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.