Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

problem with sap-script

hi,

could you look at the coding above? i am doing a 'write form', one

time with window 'MAIN' (for the first page) and the other time with window 'MAINX' (for all other pages).

BUT: only the first page is printed out in the spoolfile.(MAIN), not the following

pages.

any ideas ?

LOOP AT gt_tab_3.

IF gt_tab_3-zeile(1) = '1'.

CALL FUNCTION 'CONTROL_FORM' " start on new page

EXPORTING

command = 'NEW-PAGE'.

ENDIF.

IF gt_tab_3-flag = 'J'.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

element = 'TABELLE'

window = 'MAIN'.

ELSE.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

element = 'TABELLE'

window = 'MAINX'.

ENDIF.

ENDLOOP.

Former Member
Not what you were looking for? View more on this topic or Ask a question