Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Smartforms: page break using table-row

Former Member
0 Likes
2,213

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.

2 REPLIES 2
Read only

i048168
Product and Topic Expert
Product and Topic Expert
0 Likes
702

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

Read only

Former Member
0 Likes
702

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.