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

Scripts Data from 2 different itabs onto 2 MAIN windows

Hi Experts,

How to print data from two different internal tables onto 2 MAIN WiNDOW Instances?

Thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 30, 2007 at 03:07 PM

    hi,

    create 2 elements for two different internal tables and pass these two elements two different windows like this......

    in print program you call write_form FM and pass elements and window names as per your requirement..

    call function 'write_form'
                      exporting
                                        element = '  ' "here pass first element
                                        window = ' '   "here pass window name
    
    
    call function 'write_form'
                      exporting
                                        element = '  ' "here pass second element
                                        window = ' '   "here pass window name

    regards,

    Ashok Reddy

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi

      Loop at ITAB1.

      perform WRITE_FORM using 'WINDOW1' 'ELEMENT1'.

      endloop.

      Loop at ITAB2.

      perform WRITE_FORM using 'WINDOW2' 'ELEMENT2'.

      endloop.

      FORM Write_form using p_window p_element

      call function 'write_form'

      exporting

      element = p_window

      window = p_element

      ...............................

      ........................................

      ENDFORM.

      Reward points for useful Answers

      Regards

      Anji

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.