Dear Experts ,
I am working on scripts,what my requirement is ,first 10 records should be printed in first page remainig all should be printed in next page.I adjusted the window size to fit only 10 records ,so remainig records are printing in next page.up to now okay.but how to do programatically.i tried like this
CALL FUNCTION 'OPEN_FORM' EXPORTING FORM = 'ZST1'. loop at it_mara FROM 1 TO 10. CALL FUNCTION 'WRITE_FORM' EXPORTING ELEMENT = '100' FUNCTION = 'SET' TYPE = 'BODY' WINDOW = 'MAIN' endloop. LOOP AT IT_MARA FROM 11. CALL FUNCTION 'WRITE_FORM' EXPORTING ELEMENT = '200' FUNCTION = 'SET' TYPE = 'BODY' WINDOW = 'WIN' endloop. CALL FUNCTION 'CLOSE_FORM'.
Here i have created two pages in my form.first page contains 'MAIN' window with element '100'.
second page contains 'WIN' window with element '200'.after executing my driver program, internal table contains 300 records.but its displaying only 10 records in first page .is this right way?please help me out.