on 08-29-2009 2:01 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can also do that by changing the -
-size of Window
-font size of the Character.
Jst try.
Thx
R
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.