Skip to Content
0
Former Member
Oct 19, 2004 at 11:50 AM

How to Print text in two main windows

25 Views

For printing label have created two main windows on a page. calling function write_form In ABAP Program under do loop for two times.

but program prints only one window. why is it so? how can i print text on two windows.

do 2 times.

COUNT = COUNT + 1.

loop at itab WHERE DEPTT LT 200.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'TEST'

FUNCTION = 'SET'

TYPE = 'BODY'

  • WINDOW = 'MAIN'

EXCEPTIONS

ELEMENT = 1

FUNCTION = 2

TYPE = 3

UNOPENED = 4

UNSTARTED = 5

WINDOW = 6

OTHERS = 7.

endloop.

enddo.

Please guide.