‎2006 Jun 21 6:36 AM
Hi all,
I have a requirement in a report, my report needs a Double Space if there r two similar entires in the report. What I mean to say is whenever there r 2 similar records, I need these two records one line after another and the other records having "double space" after these two.
Regards
Prince
‎2006 Jun 21 6:48 AM
save the previous record in a data variable and compare with present loop record.
Like.
LOOP AT itab.
IF current_record = previous_record..
skip 1.
else.
SKIP 2.
ENDIF.
previous_record = current_record.
ENDLOOP.
Regards,
Wasim Ahmed
‎2006 Jun 21 6:51 AM
If i understood correctly...
Sort the fields in which you need before looping. This will bring similar records together. So you can print similar records together.
What is that you mean by double space? Is that any field value. If so and you want to bring those records bleow the similar fields, include that field also in the sorting order. ie sort by f1 f2.
rgds,
TM