cancel
Showing results for 
Search instead for 
Did you mean: 

First line display in an ALV table

Former Member
0 Kudos

Hello,

We created an ALV table, if the table has more than 30 lines it shows every 30 lines in a new page. My problem is that when I have more than 30 lines in the table the last 30 lines appear in the initial screen. I need the first 30 lines to appear, how can I do this?

please advise,

best regards,

Efrat

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello!

Try using method <b>set_visible_row_count</b> of interface <b>if_salv_wd_table_settings</b> (implemented by cl_salv_wd_config_table so you will need instance of the same)

Hope this helps.

Regards,

Neha

Former Member
0 Kudos

Hi Neha,

thank you for your help

In order to show 30 lines in each page I use <b>set_visible_row_count (30),</b>

My problem is that when I have more 30 lines in my table, when the table appear on the screen at the first time, It shows the <b>last</b> 30 lines and not the <b>first</b> 30 line.

I need to know how to show the last 30 lines

Regards,

Efrat

Former Member
0 Kudos

Hello!

Have you by any chance called the method set_first_visible_row of if_salv_wd_table_settings? If you set the first row in this method, you will see that row as the first row. If you are using this method, you should set the first visible row to 1.

Regards,

Neha

Former Member
0 Kudos

Hi Neha,

We found the problem,

it shows the last lines becaose we use the total option, when weremove the total and used set_first_visible_row it works.

thank you,

Efrat