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: 2020-02-25T11:05:26+05:30

577 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements