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

Two tables in main window of smart form

I have 2 different internal tables that need to displayed in main window.

upper part of the main window should be displaying first table and lower half should disply 2nd table.

this page should be repeated depending upon number of rows.

When I include bothe tables in main window, its displaying first table first and then 2nd table.

I want both tables to be displayed simultaneously...

Can anyone help me?

Thanks & Regards,

Kalyan Venigalla.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 01, 2009 at 07:58 AM

    Hi Kalyan Mohan Venigalla,

    As per my knowledge, I guess we can't display two internal tables in Main Window.

    Regards,

    Suneel G

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 01, 2009 at 08:03 AM

    Hi Kalyan Mohan Venigalla,

    Or else we can do it like this... try this once ...

    1. We have ITAB1 of 10 records and ITAB2 10 records.

    2. In main window only 10 line items will fit.

    3. Firstly loop ITAB1 untill SY-INDEX less than 6 and them loop ITAB2 less than 6.

    4. Then delete first 5 records in both internal tables.

    Try doing like this...

    Regards,

    Suneel G

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 01, 2009 at 08:40 AM

    it's no problem to use a table-node within a table-node. or a loop-node within a table or a table in a loop but.... you can't use the obvious elements like header; footer; at new; at end and other nice tricks.

    and you have to be creative to display each part of the tables involved.

    an other solution is (with fixed rows) to create a third table with both other tables in it.

    for example. on each page 4 rows of table 1 and 8 rows of table 2 are displayed so the third tabel contains a first 4 rows of data of table 1 then 8 rows of table 2. this can be repeated. use a key (which you define yourself) for each row of the third table to make things easier.

    It becomes too complicated when the number of rows is not the same on each page. then you have to create your third table pretending that you are printing so you have to work with a line-counter and depending on the value of the line-counter make decisions of how to fill your table.

    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.