Skip to Content

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

Retain Row Position On Binding

Hi Experts,

I have a table where the visible row count is 5, and say when i make changes to the row in 25 th position and bind the table with updated values on action save the new values are binded but the now the table is taken back to its first five rows as display, i would like to be able to see the 25th row even after binding the new updated table, i.e would want to retain table position.

Many Thanks In Advance,

Chaitanya.

Former Member
Former Member replied

Hi Chaintanya,

I agree that the layout would not look pleasent using this approach.

I would like to add here, that if its an ALV table we can set the row to be visible after binding using "SET_FIRST_VISIBLE_ROW" method of the interface "IF_SALV_WD_TABLE_SETTINGS"

DATA: l_table_settings TYPE REF TO if_salv_wd_table_settings .
  l_table_settings ?= lo_value.
  l_table_settings->l_table->SET_FIRST_VISIBLE_ROW( '20' ).

Here i have hardcoded the value '20' , but you can pass the row number that you are editing.

Incase of a standard table, i am not sure how to achieve this.

Regards,

Radhika.

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