Skip to Content
0
Former Member
Oct 21, 2005 at 08:08 PM

How I can organize my output in a loop?

22 Views

If I have some writes into if statements also into the loop., like this:

loop at t_itab.

IF t_itab-monat = '09'.

WRITE : / t_itab-dmbtr.

ELSEIF t_itab-monat = '10'.

WRITE: / t_itab-dmbtr.

endif.

endloop.

How can I write the output in the same line because the month 10 is write after month 09 and the amount: 3,900 is write in the next line, not in the same;

This is an example of the form that I want the output.

(-----) is spaces because the system dont respect the spaces.

-09----


10

1,000----3,900

2,000----1,200

1,500----4,300

Thanks for your help!!