cancel
Showing results for 
Search instead for 
Did you mean: 

problem in printing data in main and secondary windows.

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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,

Former Member
0 Kudos

Hi Thein,

The requirement is to split the main page into two halves top half and bottom half. top and bottom halves contain tables which are supposed to display the same data. There is an issue only if the data overflows to the next page.

Edited by: ramanuja.nanduri on Aug 25, 2010 3:44 PM

Former Member
0 Kudos

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...

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

it's only main window that work for page change.

Why not use main window for both printouts?

Kind regards

Åsa Thenstedt

Former Member
0 Kudos

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.

Former Member
0 Kudos

Can't you print both tables after each other in the main window? (one main window)

Former Member
0 Kudos

Nope, it doesn't suite my requirement. The problem in embedding both the tables in the main window is, it will print one table after the other.

Edited by: ramanuja.nanduri on Aug 25, 2010 10:59 AM

Edited by: ramanuja.nanduri on Aug 25, 2010 3:01 PM