cancel
Showing results for 
Search instead for 
Did you mean: 

Have ALV table always start on the first row.

tim_kich
Explorer
0 Kudos

Hello,

I have an application where the user enters some data on the first view and clicks on a button. The result is an ALV table, displaying 10 rows at a time. If the user pages to the next page, then goes back to the first view, enters some different data and clicks on the button again, the ALV table is displayed, but is starting at the second grouping of records (rows 11 - 20). How can I ensure that when the ALV table is displayed, it always starts at row 1?

Thanks.

Tim

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can use the following method of class CL_SALV_WD_CONFIG_TABLEIF_SALV_WD_TABLE_SETTINGSSET_FIRST_VISIBLE_ROW

It takes Integer as input for Row Number to be displayed as first row.

get you ALV model reference and call this method.

Regards

Manas Dua

Answers (1)

Answers (1)

tim_kich
Explorer
0 Kudos

Thank you Manas. That helped.