abapOpenChecks icon indicating copy to clipboard operation
abapOpenChecks copied to clipboard

spaces in connection with '

Open larshp opened this issue 6 years ago • 2 comments

foo = 'moo' && ' bar'. can be reduced to foo = 'moo' && 'bar'. due to how spaces and character fields works in ABAP

larshp avatar Dec 19 '18 13:12 larshp

@larshp your example is not valid:

foo = 'moo' && ' bar'.

will result in moo bar.

Only trailing spaces are trimmed. So these cases are all the same and will result in moobar:

foo = 'moo' && 'bar'.
foo = 'moo ' && 'bar'.
foo = 'moo ' && 'bar '.

pcf0 avatar Dec 21 '18 17:12 pcf0

oh, didnt test it 😄 I usually just dont do spaces in beginning or end of characters

thanks

larshp avatar Dec 21 '18 17:12 larshp