Consider the following code. It is quite piped down from the actual code but the point is clear. If you were to put this in you would see a large gap in what the write statement produces. The two variables are hard set at 15 because what can go in there will vary in size. Regardless of what goes in there when the write statement is processed, I want just 1 space between the variables and the next word in the sentence.
Here is what comes out now if you run this:
The value of First_One is: Value1 and the value of Second_One is: Value2 .
Here is what I want it to look like:
The value of First_One is: Value1 and the value of Second_One is: Value2.
I tried to SHIFT right deleting trailing however all it did was move the values and put the extra spaces to the left of the values.
How can I accomplish what I need?
REPORT Z_Generic_Stuff.
DATA: First_One(15) VALUE 'Value1' TYPE c,
Second_One(15) VALUE 'Value2' TYPE c.
CONDENSE First_One.
CONDENSE Second_One.
WRITE: /'The value of First_One is:', First_One, 'and the value of Second_One is:', Second_One, '.'..