‎2014 May 20 8:27 PM
Hi
With a ERP upgrade many standard objects( function module, data element, etc) can be obsolete but these object can be using inside a lot of Z program.
Now we are using Code inspector ( transaction SCI) for check of code quality but I don't found how determine use of obsolete object.
Is posible when I compile any Z object , notify if I am using any obsolete object? ¿Exist tools for this?
Best Regards
Gregory Gotera
‎2014 May 21 6:26 AM
Hi Gregory,
the check for obsolete function modules ist part of the function module checks in the extended program checks.
To get there, edit a Z program in SE38 and call the Code Inspector.
Then press button Code Inspector.
If you are the responsible user, then you can change the check variants, otherwise you should be able to show the check variants.
After label Name there is a button to switch from local to global check variants. Switch to global variants. Select the check variant you want to show.
Check variant DEFAULT is used by SE38/SE80 calling the Code Inspector, check variant TRANSPORT is called releasing transports (if you also check there).
If Syntax Check/Generation is marked and Extended Program Check is marked, click the arrow to see the settings. Here option Specific Tests is selected without option CALL FUNCTION Interfaces.
Here is the docu (called via F1 from CALL FUNCTION Interfaces option), and I marked the obolete check 9 with a red arrow.
You can see above, that this check is not active in our system. You can talk to the responsible person in your company, if this setting can be changed. Through release upgrade you got some new SAP Default settings, which may not fit for your company or devleopment guidelines.
Regards,
Klaus
‎2014 May 20 9:49 PM
Hi
Goto your program and perform the Extended Program check for your program by checking the Obsolute Statements(OO context) .
Hope it will helps.
Thanks,
Sreeram
‎2014 May 21 6:26 AM
Hi Gregory,
the check for obsolete function modules ist part of the function module checks in the extended program checks.
To get there, edit a Z program in SE38 and call the Code Inspector.
Then press button Code Inspector.
If you are the responsible user, then you can change the check variants, otherwise you should be able to show the check variants.
After label Name there is a button to switch from local to global check variants. Switch to global variants. Select the check variant you want to show.
Check variant DEFAULT is used by SE38/SE80 calling the Code Inspector, check variant TRANSPORT is called releasing transports (if you also check there).
If Syntax Check/Generation is marked and Extended Program Check is marked, click the arrow to see the settings. Here option Specific Tests is selected without option CALL FUNCTION Interfaces.
Here is the docu (called via F1 from CALL FUNCTION Interfaces option), and I marked the obolete check 9 with a red arrow.
You can see above, that this check is not active in our system. You can talk to the responsible person in your company, if this setting can be changed. Through release upgrade you got some new SAP Default settings, which may not fit for your company or devleopment guidelines.
Regards,
Klaus