cancel
Showing results for 
Search instead for 
Did you mean: 

how to limit the data per page

Former Member
0 Kudos

hi...

i have a requirement to print only 12 data entry inside the table per page... In case i have 14 data the excess 2 data will be printed on the next page....

can somebody help me on how cab i achieve this...

thank you

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

u define a variable to count the no of line printing (lets say lv_counter), and increase the value of it for every loop pass also create a COMMAND & select the new page that u want to trigger in the loop of the table and put a condition lv_counter GT 13, and when it reaches the value above 12 clear LV_counter.

Eg:

data : lv_counter type i.

LOOP AT itab.

lv_counter = lv_counter + 1.

CREATE COMMAND (select Go to New Page (give new page name)) and give the condition lv_counter = 12 in CONDITION tab.

IF lv_counter = 12.

clear lv_counter.

endif.

endloop.

Hope it helps!!

Regds,

Pavan

Answers (5)

Answers (5)

former_member187457
Active Contributor
0 Kudos

Hi,

You can also do that by changing the -

-size of Window

-font size of the Character.

Jst try.

Thx

R

Former Member
0 Kudos

HI,

Try this logic...

Take another internal table same as that of your table data.

Now use loop node to loop the internal table

loop at itab.

counter = counter + 1.

append wa to itab2.

if counter = 12.

table node to display the data in itab2

clear counter.

refresh itab2.

endif.

endloop.

regards

padma

Former Member
0 Kudos

Hi,

Take a main window and fix its height for 12 lines only By giving its Height as 12 LN or check its height by giving values into it. Then automatically control will display the rest of lines into second page main window.

former_member156446
Active Contributor
0 Kudos

once you have decided to jump to new page... right click where you want to place the code insert a command line... in there check the checkbox to skip to page and select the next page name.

Former Member
0 Kudos

in the table body part keep a code element.

in that code keep a counter increasing.

counter = counter + 1.

now after this code part keep a command element in this command element check that counter if that > 12, give jump to next page..