hi Experts,
i have designed a script program with two pages.
In the first page -page1- i kept four windows 'Header' 'footer' 'Main'(not used in write_form function)and po (in po i write the symbols to display).
In the second page (page2) i kept same three windows as in page1 instead of po i kept rfq (having the symbols to display).
while running the script i got the last record alone in both the reports. though i have written the write_function in loop.
my coding
-
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'POMAIN'
WINDOW = 'PO'.
LOOP AT IN.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'PODETAILS'
WINDOW = 'PO'.
ENDLOOP.
CALL FUNCTION 'CONTROL_FORM'
EXPORTING
command = 'NEW-PAGE'.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'RFQ'
WINDOW = 'RFQ'.
LOOP AT RIN.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'RFQDETAILS'
WINDOW = 'RFQ'.
ENDLOOP.