Skip to Content

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

Problem with removing leading space

Hi All,

I need to remove leading space from variable lv_wa-kbetr = ' 123'. and to output it to a SmartForm.

So I create program lines node and maintain it with a following code:

SHIFT lv_wa-kbetr LEFT DELETING LEADING space.

but it does not remove leading space (I see it in debugger) and the result is the same:

lv_wa-kbetr = ' 123'.

any ideas?

Thanks.

Regards,

Mindaugas

Tags:
Former Member
Former Member replied

Ah, the shift command will only work on character/string fields.

Can you move it to a character field and work on that version?

Darren

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question