SAP Script info req to print new line iten on new page
i had an req to print the list of MATNR & KUNNR on script,but the req is like this,at NEW MATNR,the script shd start with new page,say,if there are 5 MATNR,2 are same & 3 are same with diff KUNNR.
On first page:2 MATNR shd be printed
On Second Page:3 MATNR shd be printed & so on each time on new page...
Please tell me how to do it,in window MAIN,how shd i wirte code for this?