webdynpro Alv Tree
-
Upload
guest38b420 -
Category
Technology
-
view
5.312 -
download
4
description
Transcript of webdynpro Alv Tree
webdynpro alv treewebdynpro alv tree
Skill cut
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 ControlDocument 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 ).
메뉴