cancel
Showing results for 
Search instead for 
Did you mean: 

20 Rows in ALV Table till 500 Rows on Action of a Button

Former Member
0 Kudos

Hi Friends,

My requirement : I have to display 20 rows in a ALV Table(fixed), clicking on button Next it has to display next 20 rows and max it has to display till 500 rows.

I am able to fix 20 rows but how to display next 20 rows on action of a button (NEXT) and i should allow to display only 500 rows.

can some one tell me how to solve the requirement.

Regards

Anand

Accepted Solutions (0)

Answers (3)

Answers (3)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I don't understand why you are going through all this trouble to build your own button to add more rows to the ALV table. Just fill the table with your maximum number of rows. The scrollbar on the table will perform a server round trip and only display the number of visible rows in the table. There is no real performance advantage to what you are proposing.

Former Member
0 Kudos

You can use paginator simply by calling this method SET_FOOTER_VISIBLE.

However, please note that, as of NetWeaver 7.0 Enhancement Package 1 (7.01) and with the advent of LightSpeed, the paginator option no longer exists.

Refer to Thomas Jung's comment here.

There's an OSS note to apply if you really want to use it, but it doesn't seem worthwhile.

Good luck,

Anirut W.

Madhu2004
Active Contributor
0 Kudos

Hi ,

This can be achieved in 2 ways:

1) Standard paginator allows you with this functionality to traverse from one page to other of 20 records

2) Create 2 nodes with same attributes. Dunp all the records in Node1. Append only first 20 records in Node2.Bind Node2 to ALV.

Create a button(Next).

Create a global attribute to maintain which set of 20 secords are being shown.

In the action handler method of next button write the below code:

Get records from node 1

lo_node->get_static_attributes_table
exporting
from = 21"if the second set of 20 records
to = 40
importing
 table = lt_data

bind the records to node2 using BIND_TABLE method

Regards,

madhu

Former Member
0 Kudos

HI Madhu,

i tried a lot making use of Paginator, but dont know how to use and where to use. kindly can you let me know. how to do

Regards

Anand

Madhu2004
Active Contributor
0 Kudos

HI,

If you set the visible row count as 20, then you will get the paginator.

Paginator is of 2 type:

1) scroll bar to navigate thru columns and

2) you will have 3 buttons:,first to movr recored by record, second one by the visble number of rows and last one to move to begin of the list or end of list.

If you want to get a paginator do the folowing change:

Double click on the web dynpro application name and switch to change mode

Go to PARAMETERS tab

Click F4 and select WDTABLENAVIGATION parameter and give the value as PAGINATOR. and save

Execute the application and you will see the paginator.

Regards,

Madhu

Former Member
0 Kudos

hi webdynpro32 ,

The below link might can help you.

[;

Regards,

Monishankar C