2014 Jan 24 10:26 PM
I have identified a number of Z custom programs that are obsolete and need to delete them.
However, I need to find out a way to detect if any code, for example SUBMITS or subroutine forms, is referenced from other programs.
Consider ABAP program ZABCDE and ZXYZcontains:
REPORT ZABCDE.
..
..
FORM Z1234.
..
..
ENDFORM
..
REPORT ZXYZ.
..
PERFORM Z1234(ZABCDE).
..
In this example if I delete ABAP program ZABCDE then execution of ZXYZ will fail since ZABCDE is no longer available.
Is there a way to check to avoid such a situation where I would not delete ZABCDE.
Thanks.
Soyab
2014 Jan 25 5:21 AM
Hello Soyab Husein.
Use the standard program RS_ABAP_SOURCE_SCAN to search any string across all ABAP programs.
Regards.
I have identified a number of Z custom programs that are obsolete and need to delete them.
However, I need to find out a way to detect if any code, for example SUBMITS or subroutine forms, is referenced from other programs.
Consider ABAP program ZABCDE and ZXYZcontains:
REPORT ZABCDE.
..
..
FORM Z1234.
..
..
ENDFORM
..
REPORT ZXYZ.
..
PERFORM Z1234(ZABCDE).
..
In this example if I delete ABAP program ZABCDE then execution of ZXYZ will fail since ZABCDE is no longer available.
Is there a way to check to avoid such a situation where I would not delete ZABCDE.
Thanks.
Soyab
2014 Jan 25 5:21 AM
Hello Soyab Husein.
Use the standard program RS_ABAP_SOURCE_SCAN to search any string across all ABAP programs.
Regards.
2014 Jan 25 7:17 AM
Hi,
In fact it is not possible and even system also can't through the message at the time of deleting the program.
Before deleting the program you have to scan the variables, includes..need to check carefully.
Better to deletion should happen based on the scan the report and delete-- manual verification is required
2014 Jan 25 8:43 AM
One is you will have to souce code scan program as mentioned in previous post and in addition to it be careful and cross check whether report or subroutines are not gwtting called dynamically via config or something else.
2014 Jan 25 4:28 PM
Use t-code 'code_scanner' by the package name for your custom programs/routines.