Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with removing leading space

former_member699400
Active Participant
0 Kudos
147

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos
113

Hi,

Is the field defined as a character field?

Darren

5 REPLIES 5

Former Member
0 Kudos
114

Hi,

Is the field defined as a character field?

Darren

0 Kudos
113

no, it is defined as kbetr

M.

0 Kudos
113

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 Kudos
113

I was using kbetr in order to have such format in output:

123.456.567,00

If I use char I have 1234567.00 as an output.

Anyway, thank you, i will try solve it with chars

Regards,

Mindaugas

0 Kudos
113

here is a solution:

&lv_wa-kbetr(CZ)&

hope it helps to somebody...