Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Accessing Next Page and Previous Page Actions in Row Repeater

Hi All,

I am displaying set of Records in WD Application using Row Repeater UI Element. I am limiting the Visible Row Count to 8 , so  if the records are more than 8 it will be displayed in the Next Page.

Able to see the records from 9 in the next page by clicking Next Page Action Button in Row Repeater.

So my question is how we can trace it out the first page or Next Page, is tere any way where we can find out the page no?

Former Member

Hi VR,

I suggest you to make use of first visible row to achieve your requirement.


   DATA lo_view TYPE REF TO if_wd_view.

   DATA lo_rr TYPE REF TO cl_wd_row_repeater.

   DATA lv_first_vis_row TYPE i.

   lo_view ?= wd_this->wd_get_api( ).

   lo_rr ?= lo_view->get_element( id = 'ROW_REPEATER' ).

   lv_first_vis_row = lo_rr->get_first_visible_row).


   Here, the value lv_first_vis_row gives you the page number i.e.

     for page 1 ... lv_first_vis_row = 0

     for page 2 ... lv_first_vis_row = 8

     for page 3 .. lv_first_vis_row = 16



Hope this helps you.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question