Please can anyone tell me why there is there not a real-deal, you-beaudy, true-dinkum boolean false (or true for that matter) in ABAP?
For years we have put up with character booleans that really are not booleans at all. If we wanted to have a boolean we compared a result to the character ‘X’. This is because the checkbox and radio button concepts from the screen definition of ABAP reports translated a completed checkbox as an ‘X’.
So we have things like:
if p_test = 'X'.
or if we get a little more sophisticated we use a constant c_x. Some of use are slightly more sophisticated still and use ABAP_TRUE from the type group ABAP.
Which is all fine and dandy but it still means that there is no real boolean in ABAP.
So you can’t say:
because true doesnt exist as a keyword in ABAP.
And you can’t even say
because abap_true is just another disguise for ‘X’.
Not that this is a really big deal but it would be nice to think that one day as the language changes that we would get a real boolean as a basic type in ABAP.