![sap web dynpro component usage sap web dynpro component usage](https://www.kodyaz.com/images/sap-abap/sap-web-dynpro-alv-component-usages.png)
L_table2->if_salv_wd_table_settings~set_read_only( abap_false ). L_table2 = l_salv_wd_table2->get_model( ). L_salv_wd_table2 = wd_this->wd_cpifc_2nd_alv( ).ĭATA l_table2 TYPE REF TO cl_salv_wd_config_table. IF l_ref_cmp_usage2->has_active_component( ) IS INITIAL.ĭATA l_salv_wd_table2 TYPE REF TO iwci_salv_wd_table. L_ref_cmp_usage2 = wd_this->wd_cpuse_2nd_alv( ). L_table->if_salv_wd_table_settings~set_data_check( if_salv_wd_c_table_settings=>data_check_on_cell_event ).ĭATA: l_ref_cmp_usage2 TYPE REF TO if_wd_component_usage. L_table->if_salv_wd_std_functions~set_edit_insert_row_allowed( ). L_table->if_salv_wd_table_settings~set_read_only( abap_false ). L_salv_wd_table = wd_this->wd_cpifc_alv( ).ĭATA l_table TYPE REF TO cl_salv_wd_config_table. IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.ĭATA l_salv_wd_table TYPE REF TO iwci_salv_wd_table. L_ref_cmp_usage = wd_this->wd_cpuse_alv( ). Node_sbook = wd_context->get_child_node( name = wd_this->wdctx_sbook ).ĭATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage. Node_sflight = wd_context->get_child_node( name = wd_this->wdctx_sflight ). Node_sbook TYPE REF TO if_wd_context_node. Node_sflight TYPE REF TO if_wd_context_node, SELECT * FROM sflight INTO TABLE isflight. Pretty Cool!ĭATA isflight TYPE STANDARD TABLE OF sflight.ĭATA isbook TYPE STANDARD TABLE OF sbook. To access the second usage named 2ND_ALV, we use the method that was generated for this name - WD_CPUSE_2ND_ALV. In the earlier example we accessed the component usage named ALV via the method WD_CPUSE_ALV. The component controller class is generated, so it has methods to reflect the names of each component usage.
![sap web dynpro component usage sap web dynpro component usage](https://s3-eu-west-1.amazonaws.com/cover2.galileo-press.de/print/9781493216888_800_b.png)
#Sap web dynpro component usage how to#
The same person who had asked me how to hook an event handler into the standard ALV APPEND/INSERT buttons came back a day later and had a good follow up question. Author: Thomas Jung Submitted: ApDescription