cancel
Showing results for 
Search instead for 
Did you mean: 

Numer of rows of a SALV

Denis_Müller
Participant
0 Kudos

Hello

I use in a webdynpro-application a SALV.

I know that I can configure the number of rows in the WDDOINIT-method.

DATA:
        lr_cmp_usage     TYPE REF TO if_wd_component_usage,
        lr_if_controller TYPE REF TO iwci_salv_wd_table,
        lr_cmdl          TYPE REF TO cl_salv_wd_config_table,
        lr_col           TYPE REF TO cl_salv_wd_column.

  lr_cmp_usage = wd_this->wd_cpuse_usage_alv( ).
  IF lr_cmp_usage->has_active_component( ) IS INITIAL.
    lr_cmp_usage->create_component( ).
  ENDIF.

  lr_if_controller = wd_this->wd_cpifc_usage_alv( ).
  lr_cmdl = lr_if_controller->get_model( ).

  lr_cmdl->if_salv_wd_table_settings~set_visible_row_count( '20' ).

I had configured the number of rows(20) before a long time.

Now I had the requirement to change the number of rows to 25.

If I change the number of rows from 20 to 25 and start again my webdynpro-application i get 20 rows.

What the problem?

Why doesn't it work correct?

Accepted Solutions (0)

Answers (2)

Answers (2)

Denis_Müller
Participant
0 Kudos

i found my problem but i haven't got a solution

if the user configs the table and save a number of rows like 20 and you change the application to 10 rows the user will see 20 rows.

i tested it and it works like this.

my problem is that i don't know how to clear the personalization for this user.

if i try to change the configuration in se80 i see that there isn't a configuration.

How can i delete the personalization from this user?

Edited by: Denis Müller on Nov 19, 2008 1:20 PM

Edited by: Denis Müller on Nov 19, 2008 1:20 PM

Former Member
0 Kudos

Hallo Denis,

just a simple question: have you really activated the change?

I inserted your code in my example and the change of the "row_count" from 20 to 25 works without problem.

Regards

Johann

Denis_Müller
Participant
0 Kudos

Yes of course

When testing on the development there are only 20 rows.

After that I also transported the application from the development system to the test system. All changes are transported and my number of rows is also 20.

I also waited a few hours to ensure that it isn't a cache problem.

But there are also 20 rows

uday_gubbala2
Active Contributor
0 Kudos

Hi Denis,

I agree with Johann. It was working normally for me its why I was waiting to see if someone else would come with any analysis. Just thought to point out 1 [old thread|https://forums.sdn.sap.com/click.jspa?searchID=18590898&messageID=6115812] in which another member was facing the same problem. It doesn't actually even have any proper solution mentioned but just thought to mention it to you so that you can check if even you too get the proper output if you click on the ALV settings button as how he was saying.

Regards,

Uday