Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Fill variable with blank spaces

Hi,

Im trying to fill a variable type c with blank spaces before the content, but it just wont work.

For example:

var(10) type c.

concatenate ' ' '12345' into var.

And when i run the program in debug mode, after the concatenate it still shows the value '12345' and the blank spaces are gone.

Could anybody tell me how to make this work, please?

Regards,

Roberto.

Tags:
Former Member
replied

Try with this:

REPORT ZTEST_NP.

data: var(10) type c.

var = '12345'.

shift var right deleting trailing space.

write: var.

Regards,

Naimesh Patel

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question