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

Obsolete Object in program

gregorygotera
Explorer
0 Likes
3,011

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,138

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

2 REPLIES 2
Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
2,138

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

Read only

Former Member
0 Likes
2,139

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