Trailing spaces after data
I have a requirement in my code where I need to keep trailing spaces after the value.
Say, the value is ABC with 2 spaces before ABC and 4 spaces after ABC.
' ABC '
I want to remove the spaces before ABC but want the spaces that exist after ABC.
You can use SHIFT statement.
data: v_var type char6 value ' ABC '
SHIFT v_var LEFT DELETING LEADING space.
Output will be ABC .