cancel
Showing results for 
Search instead for 
Did you mean: 

Prefix the number of items in Main Window..

Former Member
0 Kudos

Hi,

How do I prefix the number items to be displayed in Main wiindow ?

say for example, if I am having 110 records .. I want to display only 15 items per page..

Regards

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Thanks Guys . Solved it.

Former Member
0 Kudos

Hi,

In main window create table.

Go to 'DATA' tab of table

In 'Internal Table' option- specify table name and

In 'Row' option - specify the range of records you want to display.

Like for example if you want to display only 10 records then specify as

Row 1 TO 10

Hope it will help you!!

Former Member
0 Kudos

Hi,

Follow the steps as Avinash given if its a smartform.

If its a sript form then also u take a variable and increase the counter for every item. if Counter is GT '15' U just use the NEW-PAGE Command.

Eg:

data : lv_counter TYPE i.

LOOP AT gt_ekpo.

lv_counter = lv_counter + 1.

IF lv_counter GT 15.

call function 'CONTROL_FORM'

exporting

command = 'NEW-PAGE'.

clear : lv_counter.

endif.

endloop.

Hope it helps!!

Rgds,

Pavan

Former Member
0 Kudos

Hi,

If you are using the smartfroms than you need to take the variable for count and increment the count in the LOOP Node. Don't use the TABLE Node.

When ever count is 15 use the Command Node to trigger New Page and clear the count.

In New Page Node in condition Tab write Count EQ 15.