07-20-2017 7:42 PM
Hi Experts,
is there a Pragma/Pseudo Code to suppress Select * e.g. if more fields are selected than used in the coding? I tried #EC * but that doesn't work.
Is there another Pragma/Pseudo Code to supress Errors of the Code inspector?
Thanks and regards!
07-21-2017 7:04 AM
Hi,
In case you are referring to the code inspector check "Search problematic SELECT * statements", and the error message is "Select-Statement can be transformed. &1% of fields used" then CI_ALL_FIELDS_NEEDED should work.
Sometimes the code inspector check does not inform about the pseudo comment, in this case the comment is documented in the code eg CONSTRUCTOR of class CL_CI_TEST_ANALYZE_SELECT_HANA
07-20-2017 9:13 PM
CI messages cannot be suppressed by pragmas but by pseudo comments only. As a rule, a CI message should inform you about the corresponding pseudo comment.
07-21-2017 7:04 AM
Hi,
In case you are referring to the code inspector check "Search problematic SELECT * statements", and the error message is "Select-Statement can be transformed. &1% of fields used" then CI_ALL_FIELDS_NEEDED should work.
Sometimes the code inspector check does not inform about the pseudo comment, in this case the comment is documented in the code eg CONSTRUCTOR of class CL_CI_TEST_ANALYZE_SELECT_HANA
07-25-2017 11:48 AM
Hi,
Thanks a lot for your help! I will test your input. Lars you are right, that is the check that I mean. Is there also a common pseudo comment where I can ignore all errors? I thout #CI * is this general comment. But it doesn't work.
Thanks and regards!