Hi Friends,
I am printing customer address as lables in smartform.. per page 8.
all the lables are printing except main window(last label in the page),
but this 8 the lable is printing in the next page.
I have written the below code in main window(table)
Here it_final is final itab a& data coming to this from driver program
*Push every 8th row if it_final in it_main
I = 8.
if sy-tabix = 8.
do.
read table it_final into wa_final index 1.
if sy-subrc = 0.
append wa_final to it_main.
i = i + 8.
else.
exit.
endif.
enddo.
endif.
*Delete the rows from it_main which are present in it_final
loop at it_main into wa_final.
delete table it_final from wa_final.
endloop.
Can anyone please help me.