Skip to Content
avatar image
Former Member

Numer of rows of a SALV

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Nov 12, 2008 at 01:06 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 19, 2008 at 12:19 PM

    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

    Add comment
    10|10000 characters needed characters exceeded