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: 

Skip 1 Line in ALV report.....

Former Member
0 Kudos

Hi Experts,

I have made ALV report in which user wants one blank line after each row.

How to skip one line after each row in ALV ?

Yusuf

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Yusuf,

It is really a typical requirement.

There is a solution to that.

In the internal table that you are passing to the function module, append a blank line to that itself.

Like:

LOOP AT itab INTO wa.

APPEND wa TO itab3.

CLEAR wa.

APPEND wa TO itab3.

ENDLOOP.

REFRESH itab.

itab[] = itab3[].

But remember not to do sorting after that or not to pass the sorting table parameters.

If you have an extra line at the bottom you can delete that by reading the number of lines through the describe statement and delete the last row of the table.

Try this hiope this will work.

Reward points if found useful.

Thanks & regards

Abhijit

3 REPLIES 3

Former Member
0 Kudos

Hi Yusuf,

It is really a typical requirement.

There is a solution to that.

In the internal table that you are passing to the function module, append a blank line to that itself.

Like:

LOOP AT itab INTO wa.

APPEND wa TO itab3.

CLEAR wa.

APPEND wa TO itab3.

ENDLOOP.

REFRESH itab.

itab[] = itab3[].

But remember not to do sorting after that or not to pass the sorting table parameters.

If you have an extra line at the bottom you can delete that by reading the number of lines through the describe statement and delete the last row of the table.

Try this hiope this will work.

Reward points if found useful.

Thanks & regards

Abhijit

0 Kudos

Hi Abhijit,

Thanks, Problem solved.

Rewarded.

Yusuf

former_member200338
Active Contributor
0 Kudos

Hi Yusuf,

Please confirm with the client, whether he wants a blank line after each row or after change of any field in the ALV.

if you want the second concept, you can use At New command in the loop.

Hope this will solve your issue.

Regards,

Niyaz