cancel
Showing results for 
Search instead for 
Did you mean: 

Possibility to set my first alv row to fixed properties

Former Member
0 Kudos

Dear all,

I created a dynamic ALV on a WDAbap application:

I would like to set my first ALV row fixed when the user scroll vertically.

Could you help me to do this ?

David

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Lekha, hello all,

Thanks for your reply.

I used the method SET_FIRST_VISIBLE_ROW on the WDDOMODIFYVIEW method from my view and now, when I scroll down my first row is always visible but I'm not able to see the next records.

I explain my need:

On my dynamic ALV I have one first row which display checkbox columns in order to select a column.

After this, I have others rows which display employees data.

Example (Here CB represent a checkbox cell):

Header -> PERNR DAY1 DAY2 DAY3 DAY4 DAY5 DAY6 DAY7 DAY8

1st row -> empty CB CB CB CB CB CB CB CB

2nd row -> 1391 data data data data data data data data

................

10th row -> 1671 data data data data data data data data

...............

Last row -> 7387 data data data data data data data data

My table contains 11 visibles rows (set_visible_row_count( 11 )).

I would like to be able to see my "last row" AND always my "first row" (checkbox) even if there are more of 10 rows.

Thanks for your help.

David

Former Member
0 Kudos

Hi,

In the ALV-> you have the reference to this class right CL_SALV_WD_CONFIG_TABLE

Use the method to set teh 1st row as aslways the visible one..so that when you scroll down it is always in visible area-

in this interface->IF_SALV_WD_TABLE_SETTINGS~SET_FIRST_VISIBLE_ROW