Creating Modeling Area
Use
Procedure
Table-Type Layout at the Beginning of the ALV Display
The following example shows how you insert a design object with a table-type layout at the beginning of the ALV display:
-
Map the content node TOP_OF_LIST to the Component Controller context and then the context of the view where you display the ALV.
-
Insert the following coding into the method WDDOMODIFYVIEW of this view:
*Example for TOP_OF_LIST DATA: lr_node type REF TO if_wd_context_node, lr_grid type REF TO cl_salv_form_layout_grid, lr_text type REF TO cl_salv_form_text, lr_label type REF TO cl_salv_form_label. CREATE OBJECT lr_grid. lr_text = lr_grid->create_text( text = '1.2 TEXT' row = 1 column = 2 ). lr_label = lr_grid->create_label(text = '1.1 LABEL' row = 1 column = 1 r_label_for = lr_text ). lr_text = lr_grid->create_text( text = '2.2 TEXT' row = 2 column = 2 ). lr_label = lr_grid->create_label( text = '2.1 LABEL' row = 2 column = 1 r_label_for = lr_text ). lr_node = wd_context->get_child_node( name = 'TOP_OF_LIST' ). CALL METHOD lr_node->set_attribute EXPORTING value = lr_grid name = 'CONTENT'.
Then save and activate is displayed to you in the ALV display of the following header: