
Plant) and clicks on “Get Details” an ALV list is displayed that contains all the materials belonging to the corresponding plant.ĭATA lo_nd_header TYPE REF TO if_wd_context_node.ĭATA ls_header TYPE wd_this->element_header. After user provides the input on the selection screen (i.e. Lt_range_table = wd_this->m_handler->create_range_table

* create a range table that consists of this new data element Wd_this->m_handler = wd_this->m_wd_select_options->init_selection_screen( ). Wd_this->m_wd_select_options = wd_this->wd_cpifc_select_option( ). IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.

L_ref_cmp_usage = wd_this->wd_cpuse_select_option ( ). L_ref_cmp_usage TYPE REF TO if_wd_component_usage. Step 1 : Create your application with select options using used component WDR_SELECT_OPTIONS.ĭATA: lr_componentcontroller TYPE REF TO ig_componentcontroller, The user then selects the records from the ALV list that contains all the materials and does ‘Save Variant’ accordingly all the selection records and parameter details are saved in a variant.Īgain the user loads the application and clicks on ‘Display Variant’ and navigates to view ‘Variant_Table’ that contains list of variants created by the user in the application _ _now the details are fetched from the variant and the plant and material details are automatically displayed from the variant. The user provides the Plant and clicks on ‘Get Details’ button to display the materials and its relevant master data based on the plant entered. The application has a Main view which contains selection parameter Plant. In the below WD example application I am creating a variant by saving the select-options data along with the records that are selected in the ALV list. Requirement: It was required to provide the basic variant functionality in WD application as it available in SAP ABAP report. Scenario: Display Material Details based on the plant provided by the user on the selection screen.
