Sap Script.
I have records in the following format.
70 data data data
70 data data data
70 data data data
71 data data data
71 data data data
71 data data data
71 data data data
72 data data data
72 data data data
72 data data data
72 data data data
72 data data data
.
While printing this data in script i need to print 71 in one page 72 in the
next and so on.
I am doing it this way..
loop at it.
on change of it-firstfield.
CALL FUNCTION 'CONTROL_FORM'
EXPORTING
COMMAND = 'NEW-PAGE'
EXCEPTIONS
UNOPENED = 1
UNSTARTED = 2
OTHERS = 3
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endon..
Then the write form..
The problem at the first page itself the new-page is triggered so no values gets
printed in the first page..The remaining is working right.
Please help...