‎2008 Jul 07 3:01 AM
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
‎2008 Jul 07 4:31 AM
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
‎2008 Jul 07 4:31 AM
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
‎2008 Jul 07 4:43 AM
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
‎2008 Jul 07 6:07 AM
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.
‎2008 Jul 07 6:14 AM
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