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

inserting blank line

Former Member
0 Likes
619

hello experts,

i am developing a report. data is populated in the internal table.

Requirement: insert blank row .

e.g. in internal table has data like

test

test1

test2

hello

test3

now i want to display these records as:

test

test1

test2

test3

-


hello

'----


' is blank row.

since i am displaying records in alv so i can not use 'skip' statements.

i tried ' at end of ' statement tooo and all other possibilities.

how can i do that???? any sample code????

thanks and regards

saurabh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
574

Hi Saurabh,

APPEND INITIAL LINE TO ITAB.

Kind reagrds

Henner

<b>Award if useful.</b>

3 REPLIES 3
Read only

Former Member
0 Likes
574

Eg:1

Inserting blank line is done this way:

DATA: WA_EMPTY TYPE somestructure.

append WA_EMPTY TO itab.

Eg:2

Inside the loop, you might be doing append itab and clear itab. Now append itab with empty structure after clear itab.

You can add an empty line in the debugging mode also.

Please give me reward point If it is useful

Thanks

Murali Poli

Read only

Former Member
0 Likes
575

Hi Saurabh,

APPEND INITIAL LINE TO ITAB.

Kind reagrds

Henner

<b>Award if useful.</b>

Read only

Former Member
0 Likes
574

Hi,

To insert blank line you can use the below code :

move space to itab.
append itab.

Thanks,

Sriram Ponna.