Skip to Content
0
Former Member
Jan 06, 2012 at 06:48 AM

Problem in Printing Labels in Smartform

108 Views

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.