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

how to insert blank rows

Former Member
0 Likes
1,254

hello experts,

I am developing ALV report.

requirement : need to blank rows in the output.data populated in the internal table.

sr no | field

1 | TEST

2 | TEST

3 | TEST

4 | ERROR

5 | ERROR

now i want to add blank rows lets say 3 rows after TEST ..... how can i do it since my output is in ALV..

any suggestion ???? any sample code???

thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
782

hi

append blank lines to the itab using APPEND INITIAL LINE command and display the itab in alv

if helpful, reward

Sathish R

4 REPLIES 4
Read only

Former Member
0 Likes
782

HI,

skip 3

or if you work with an internal table for the alv you need to insert 3 extra datasets with nothing to write inside the internal table.

Regards

Nicole

Message was edited by:

Nicole Lorenz

Read only

Former Member
0 Likes
782

Hello,

If u r using ITAB then insert one blank record into the position where u want blank.

Read only

Former Member
0 Likes
783

hi

append blank lines to the itab using APPEND INITIAL LINE command and display the itab in alv

if helpful, reward

Sathish R

Read only

Former Member
0 Likes
782

Hi,

If you want to insert BLANK rows at line#4, 5 and 6 of your internal table, you can use the following code to achecive it.

INSERT initial line INTO TABLE INT_TABLE INDEX 4.

INSERT initial line INTO TABLE INT_TABLE INDEX 5.

INSERT initial line INTO TABLE INT_TABLE INDEX 6.

Above statement will insert three blank lines in the internal table.

Hope this helps....

Regards,

Dilli