06-24-2009 7:25 PM
Hi,
Can anyone let me know how to change the message type in the code inspector results ?
I want to change the message type from warning to error or vice-versa. I looked for the classes but could not figure out the exact class and the process to do so.
Any help is much appriciated.
Thanks,
Vinod
07-05-2011 3:41 PM
Hi Vinod,
You can change the priority of the rules:
SCI
Goto/Management of/Message Priorities
Browse the rule you want to change
Click on the icon, and select the new value.
Hope this helps.
Best regards,
Attila
06-24-2009 8:57 PM
Code Inspector Messages properties are stored in the table SLIN_DESC. There is also a type pool SLIN which contains this data. I don't know any transaction which will allow you to change the message types.
Regards,
Naimesh Patel
06-24-2009 9:19 PM
There are certain options to supress error messages. You can find more information by clicking the 'i' button type being displayed in the code inspector results page. Here are some of the options,
1. ("#EC *) exculdes error messages regarding the current ABAP command
2. ("#EC NOTEXT) indicates that a string does not have to be stored as a text element
3. ("#EC CALLED) indicates that a FORM has a PERFORM call
4. ("#EC NEEDED) - no messages are output about a field that is only read
5. ("#EC PORTABLE) turns off the ASCII/EBCDIC test
6. ("#EC NOBREAK) - no messages are sent at BREAK-POINTs
7. ("#EC TRANSLANG) specifies that the use of TOUPPER or TOLOWER is also safe in multilingual systems.
8. ("#EC SYNTCHAR) specifies that the data TOUPPER or TOLOWER is used on contains only characters from the syntactical character set.
One example given there..
DATA: I TYPE I. "#EC NEEDED
I = 4.
BREAK-POINT. "#EC NOBREAK
WRITE 'Hugo'. "#EC NOTEXT
IF 'a' < 'c'. "#EC PORTABLE
ENDIF.
FORM AB. "#EC CALLED
ENDFORM.
Hope this helps.
Regards,
Susanta
07-05-2011 3:41 PM
Hi Vinod,
You can change the priority of the rules:
SCI
Goto/Management of/Message Priorities
Browse the rule you want to change
Click on the icon, and select the new value.
Hope this helps.
Best regards,
Attila