‎2008 Jan 23 4:06 AM
Hi,
I have a problem regarding page breaking.
In my main window, I have a table with data internal table LOOP at i_tab INTO wa_tab.
I need to page break and display to a new page (same page form) when i_tab gets to its 20th row.
So its like 1st page will show 20 rows of i_tab, 2nd page shows 21st-40th row of i_tab and so on.
Help pls. Thanks.
‎2008 Jan 23 4:25 AM
Hi,
Follow these steps,
1. Insert the program line within the table / loop where you looped the internal table.
use some global variable. GW_PAGE_BREAK = sy-tabix mod 20.
2. Insert the command node. Check the GO to page in attributes tab and Select the same page.
Then go to conditions tab and give the condition as GW_PAGE_BREAK = 0.
Regards
Vadi
‎2008 Jan 23 4:50 AM
Hi Boosted, try this.
The page to which you want to branch must exist. You can branch to a new page only as long as you are still displaying the contents of a main window.
Choose Create -> Command in the context menu to create a command node in the main window of the page.
On the General Attributes tab strips Tick Go to new page. Determine the new page using the list box next to the checkbox (it can be the same page if you want).
The output of the main window will continues on the new page.
kindly reward if found helpful.
cheers,
Hema.