on 08-23-2010 2:17 PM
Hi,
I have embedded tables in main window and secondary window, which are supposed to print the same data.
The table in the main window is printing correctly even if the data over flows, but there is a problem with the secondary window in printing the table.
when the data over flows , it starts printing the same from the first line and so the data in both the windows do not match, so kindly help me fix this issue.
Hi,
I think you can achieve this using main window itself.
You will have to create 2 tables, using loop on the same internal table.
If you declare secondary window, it will have fixed size and so, data will not flow. You will be able to see the data which can be incorporated in that partcular window size only.
Moreover, if data goes to second page, the page will be wasted as you have already reserved some place for secondary window and that space will not be used for any other window.
Thanks,
Archana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you need to print 2 table have same data to compare.
Create a table node without assign internal table to it. Create a table line with 2 columns, then create line in table item. On each column, use loop node to process data.
i still wonder why do you need to print 2 table with same data??
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI friend,
I had the same requirement as like yours, but before giving a solution I want to know one thing. Are you splitting the window vertically or horizontally into two halves.
If it is horizontally, then just keep the same header in both first and second halves, loop through the same table and print the required data. Because only the data in main window can grow, so we can achieve through this way.
If it is vertically also you cal follow same idea, but you have to give minimum height in this case for the line type in table.
Try this and if you face any problems in this, kindly reply me.
Cheers...
HI ,
I am splitting the page horizontally into two halves . The main window is in the first half which contains a table.
The second half contains a secondary window with a table looped on the same content as in main window table. There are two loops in the table, each header line contains some line items. the header line is printed first under which the line items are printed.
now the main window is printing data properly, but there is a problem in the secondary window, and the problem is
Assume it has printed one header line and started printing the line items and the data overflows to the next page, it starts printing the same header line from first. any solutions please let me know. Thanks for the concern expressed.
Hi,
I have a possible approach. Just try and update accordingly.
While the data in main window prints, append a temporary table of same type inside the Main area. Now let the secondary window be of exact size as that of main window and copy-paste the same table node inside this window, but changing the table name (Loop at ITAB into WA) to the new table name, appended in main area, leaving everything else unchanged.
Now inside the temporary table loop in secondary window, create program lines and just refresh that table when number of entries in table equals sy-tabix or just set a flag for same and refresh table in footer.
Thus if main window prints 10 entries, then these will be appended in another table. The same 10 entries will be printed again in secondary window and while at last entry, table will be refreshed, thus ready for appending new entries from next page's main window.
Hope this helps.
Karthik
Hi,
it's only main window that work for page change.
Why not use main window for both printouts?
Kind regards
Åsa Thenstedt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The problem here is I need to have both the windows in the same page and I believe we cannot have two main windows in the same page and both the windows need to print the same data (second table should be replica of the first table in the same page).
If the first table prints say 5 records in the main window then the second table in the secondary window should also print the same number of records not less and not more.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.