Professional Documents
Culture Documents
Skill cut
jsh@thebne.com
Copyright 2006 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means
- electronic, mechanical, photocopying, recording, or otherwise- without the permission of BNE Solution Consulting.
This document provides an outline of a presentation and is incomplete without the accompanying oral commentary and discussion.
2
Copyright 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
Module Task
Stage Task
Phase
1 Ver1.0
Document Control
3
Copyright 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
Procedure
1. Component salv_wd_table .
Related Link
.webdynpro alv tree .
4
Copyright 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
Procedure
1. Tree view salv_wd_table .
Related Link
.webdynpro alv tree .
5
Copyright 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
Procedure
1. View attribute
Cl_salv_wd_config_table type r_table .
Related Link
.webdynpro alv tree .
6
Copyright 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
Procedure
1. ViewcontainerUI .
Related Link
.webdynpro alv tree .
7
Copyright 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
Procedure
1. Viwe container table .
Related Link
.webdynpro alv tree .
8
Copyright 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
Procedure
1. Display data interfacecotroller .
Related Link
.webdynpro alv tree .
9
Copyright 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
Procedure
1. Wddoinit code ..
Related Link
.webdynpro alv tree .
METHOD wddoinit .
*... check ALV component usage
DATA:
lr_salv_wd_table_usage TYPE REF TO if_wd_component_usage.
lr_salv_wd_table_usage = wd_this->wd_cpuse_salv_wd_table( ).
IF lr_salv_wd_table_usage->has_active_component( ) IS INITIAL.
lr_salv_wd_table_usage->create_component( ).
ENDIF.
*... get ALV component
DATA:
lr_salv_wd_table TYPE REF TO iwci_salv_wd_table.
lr_salv_wd_table = wd_this->wd_cpifc_salv_wd_table( ).
*... (1) get ConfigurationModel from ALV Component
wd_this->r_table = lr_salv_wd_table->get_model( ).
* ...(2) init ConfigurationModel
*... init TableSettings
DATA:
lr_table_settings TYPE REF TO if_salv_wd_table_settings.
10
Copyright 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
Procedure
1. Wddoinit code ..
Related Link
.webdynpro alv tree .
METHOD wddoinit .
lr_table_settings ?= wd_this->r_table .
lr_table_settings->set_display_type( if_salv_wd_c_table_settings=>display_type_hierarchy ).
*... init FunctionSettings
cl_salv_wd_model_table_util=>if_salv_wd_table_util_stdfuncs~set_all(
r_model = wd_this->r_table ).
*... init ColumnSettings
DATA:
lr_column_settings TYPE REF TO if_salv_wd_column_settings.
lr_column_settings ?= wd_this->r_table.
DATA:
lt_columns TYPE salv_wd_t_column_ref.
lt_columns = lr_column_settings->get_columns( ).
DATA:
ls_column TYPE salv_wd_s_column_ref,
my_header TYPE REF TO cl_salv_wd_column_header..
11
Copyright 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
Procedure
1. Wddoinit code ..
Related Link
.webdynpro alv tree .
METHOD wddoinit .
LOOP AT lt_columns INTO ls_column.
CASE ls_column-id.
WHEN 'COLUMN NAME' .
DATA:
lr_input_field TYPE REF TO cl_salv_wd_uie_input_field.
CREATE OBJECT lr_input_field
EXPORTING
value_fieldname = ls_column-id.
* ls_column-r_column->set_cell_editor( lr_input_field ).
CASE ls_column-id.
WHEN 'NAME'.
ls_column-r_column->if_salv_wd_column_hierarchy~set_hierarchy_column( abap_true ).
my_header = ls_column-r_column->create_header( ).
IF sy-langu EQ '3'.
my_header->set_text('').
ELSEIF sy-langu EQ 'E'.
my_header->set_text('Name').
ENDIF.
ENDCASE.
12
Copyright 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
Procedure
1. .
Related Link
.webdynpro alv tree .
13
Copyright 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
Procedure
1. Wddoinit code ..
Related Link
.webdynpro alv tree .
METHOD wddoinit .
WHEN OTHERS.
ls_column-r_column->set_visible( cl_wd_uielement=>e_visible-none ).
ENDCASE.
ENDLOOP.
*... init FieldSettings
DATA:
lr_field_settings TYPE REF TO if_salv_wd_field_settings.
lr_field_settings ?= wd_this->r_table.
DATA:
lr_field TYPE REF TO cl_salv_wd_field.
*... set reference fields
lr_field = lr_field_settings->get_field( 'CURRENT_MONTH' ).
lr_field->set_reference_field( 'CURRENCY' ).
lr_field->set_reference_field_type( if_salv_wd_c_field_settings=>reffieldtype_curr ).
*::: BECAUSE SERVICE DOES NOT WORK
lr_field = lr_field_settings->get_field( 'CURRENT_MONTH' ).
lr_field->if_salv_wd_aggr~create_aggr_rule( ).
14
Copyright 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
Procedure
1. Wddoinit code ..
Related Link
.webdynpro alv tree .
METHOD wddoinit .
"sort
lr_field = lr_field_settings->get_field( 'NAME' ).
lr_field->if_salv_wd_sort~create_sort_rule( group_aggregation = abap_true ).
lr_field = lr_field_settings->get_field( 'SETNAME_TX' ).
lr_field->if_salv_wd_sort~create_sort_rule( group_aggregation = abap_true ).
lr_field = lr_field_settings->get_field( 'SUBSETNAME_TX' ).
lr_field->if_salv_wd_sort~create_sort_rule( group_aggregation = abap_true ).
* lr_field = lr_field_settings->get_field( 'SETLEAF_TX' ).
* lr_field->if_salv_wd_sort~create_sort_rule( group_aggregation = abap_true ).