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

Code Inspector (TR_INSPECT_OBJECTS) do not work

0 Likes
774

Hi Experts,

I try to use the function (TR_INSPECT_OBJECTS) in my program, but the problem is that this function(TR_INSPECT_OBJECTS) itself seem do not work as I expected,

I input a change request (iv_trkorr = tw4k93229) which have program of code inspector errors, but the output is successful without displaying any errror message. any idea for what is the problem? Thanks

FUNCTION tr_inspect_objects.

*"----


""Lokale Schnittstelle:

*" IMPORTING

*" VALUE(IV_TRKORR) LIKE E070-TRKORR

*" VALUE(IV_DIALOG) TYPE SLIN_BOOL DEFAULT 'X'

*" EXPORTING

*" VALUE(EV_ERROR_TYPE) TYPE TRWBO_CHARFLAG

*" EXCEPTIONS

*" INVALID_REQUEST

Greeting

William

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
633

Hello William

When I execute the "Complete Check -> Objects (Syntax Check)" in SE10 or call the function module with the same (not yet released) transport request (IV_DIALOG = 'X') I get the same result, i.e. the summary popup is shown.

If I call the function module using IV_DIALOG = ' ' I just receive a value in EV_ERROR_TYPE without the popup.

Regards

Uwe

4 REPLIES 4
Read only

uwe_schieferstein
Active Contributor
0 Likes
634

Hello William

When I execute the "Complete Check -> Objects (Syntax Check)" in SE10 or call the function module with the same (not yet released) transport request (IV_DIALOG = 'X') I get the same result, i.e. the summary popup is shown.

If I call the function module using IV_DIALOG = ' ' I just receive a value in EV_ERROR_TYPE without the popup.

Regards

Uwe

Read only

Former Member
0 Likes
633

Hi william,

If your code has if your program has documentation, package or extended check it will display an error else if your code has anyother errors it wont display the error message

Regards

Divya

Read only

0 Likes
633

Hi Divya,

Thank you for help, what do mean extended check?

first, i use menu bar program>check>code inspector to check the program ,and the output show like this

**************************************************************************************************************************

error warning information

list of checks

performance checks 0 0

security checks 0 0

syntax checks/generation 2 1

*******************************************************************************************************************

here the system do three kinds of checks

second , i do the test in TR_INSPECT_OBJECTS using F8, input the change request containing the same program, and the result is no error.

I think the extended check should include syntax checks, performance checks...., is it right?

so the question is if I want the same output of first test, should I call this function module or others?

thank you in advance.

Read only

Former Member
0 Likes
633

Hi

The extended error check points out to those variable which has been declared but not used in the programming sequence, its not a syntax error actually.And you need not call the function module everytime because the whole of your program comes under one transport request rite??...

Regards

Divya