Application Development and Automation 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: 
Read only

Double Space Required

Former Member
0 Likes
397

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

2 REPLIES 2
Read only

dani_mn
Active Contributor
0 Likes
351

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

Read only

Former Member
0 Likes
351

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