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


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.

Updated on: 25-Feb-2020

292 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements