cancel
Showing results for 
Search instead for 
Did you mean: 

On enter of ALV

Former Member
0 Kudos

Hi all,

I am having ALV table, Based on the entry of One field the Visibility of Tabs are set.

I have used ON_CELL_ACTION but the code is not working here.

The same code is working in WDDOMODIFYVIEW.

Can anybody suggest about this.?

Thanks all,

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Try to adapt this code with yours :


DATA : alv_config_table  TYPE REF TO cl_salv_wd_config_table,
             wd_table_usage TYPE REF TO if_wd_component_usage,
             lr_table_settings  TYPE REF TO if_salv_wd_table_settings,
             wd_table TYPE REF TO iwci_salv_wd_table.

  " Create an instance of ALV component created ALV is usage name
  wd_table_usage = wd_this->wd_cpuse_alv( ).
  IF wd_table_usage->has_active_component( ) IS INITIAL.
    wd_table_usage->create_component( ).
  ENDIF.

  wd_table = wd_this->wd_cpifc_alv( ).
  alv_config_table = wd_table->get_model( ).

  lr_table_settings  ?= alv_config_table.
  lr_table_settings->set_data_check( 01 ). " I think you are missing this instruction 

If this is not working with ON_CELL_ACTION event, change it with ON_DATA_CHECK

Hope this help

Best regards