08-23-2007 6:49 AM
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
08-23-2007 7:20 AM
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
08-23-2007 7:20 AM
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
08-23-2007 7:44 AM
08-23-2007 7:34 AM
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