# How to use constant in ABAP program which has trailing space?

SAPABAP

This is because you are declaring constant as type c. The type c variable always trims the trailing space. I would suggest you define it as string as follows

CONSTANTS: co_abc type string value ' b '.

This will keep the trailing spaces.

Published on 08-Feb-2018 14:56:34