abapOpenChecks icon indicating copy to clipboard operation
abapOpenChecks copied to clipboard

'X' or '' that can be replaced with abap_true or abap_false

Open larshp opened this issue 10 years ago • 4 comments

larshp avatar Sep 16 '14 16:09 larshp

will work on this.

DennstedtB avatar Nov 27 '19 14:11 DennstedtB

note it can be difficult to implement, abap_true and abap_false should be used when the type is abap_bool

setting something like order_type = 'X'. I would regard as a false positive, as order_type should not contain boolean values

larshp avatar Nov 27 '19 15:11 larshp

Yep. I know that this will be difficult. But this can be done, somehow.

DennstedtB avatar Nov 28 '19 05:11 DennstedtB

yea, sure, just have to build the AST, and defer the types 😄

I gave up on doing this part in ABAP, since the compiler changes between versions, plus its difficult to do real testing, or alternatively everything must be built from scratch.

Hence the abaplint project

larshp avatar Nov 28 '19 06:11 larshp