Skip to Content
author's profile photo Former Member
Former Member

print program

in my layout i have two windows..

one is address window and another one is main window.

how to print the herder window information ..

i mean how to write the code in print program..

my print program as follows..

TABLES ZEMP.

DATA ITAB LIKE ZEMP OCCURS 2 WITH HEADER LINE.

SELECT * FROM ZEMP INTO TABLE ITAB .

CALL FUNCTION 'OPEN_FORM'

EXPORTING

APPLICATION = 'TX'

DEVICE = 'PRINTER'

DIALOG = 'X'

FORM = 'ZTAB'

LANGUAGE = SY-LANGU.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'HEADER_DATA'

FUNCTION = 'SET'

TYPE = 'TOP'

WINDOW = 'MAIN'.

LOOP AT ITAB.

MOVE ITAB TO ZEMP.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'ITEMS_DATA'

FUNCTION = 'SET'

TYPE = 'BODY'

WINDOW = 'MAIN'.

ENDLOOP.

CALL FUNCTION 'CLOSE_FORM'.

it is not printing the adderss window data..

help me pls..

Regards,

pandu.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 21, 2007 at 05:59 AM

    where u write address window.

    it print only main window.

    may be.

    CALL FUNCTION 'WRITE_FORM'

    EXPORTING

    ELEMENT = 'HEADER_DATA'

    FUNCTION = 'SET'

    TYPE = 'TOP'

    <b>WINDOW = 'MAIN'.</b>--->??????addresswindow

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.