webdynpro에서 excel export by html
DESCRIPTION
TRANSCRIPT
WendynproWendynpro 에서 에서 excel export excel export (( 하나 하나 찍어만들기하나 하나 찍어만들기 ))
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.
Agenda
I. UI setting
II. Context setting
III. 구현 code
IV. 결과 화면
IndexIndex
3 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
Module Task
Stage Task 명
Phase 명 산출물명
순번 버전 작성일자 작성자 변경사유 검토일자 검토자 승인일자 승인자
1 Ver1.0 정세훈 최초작성
Document ControlDocument Control
4 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
I. UI setting
5 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
I. UI setting
Procedure
1. Download component 를 insert 한다 .
참고사항
Related Link
목적 • UI setting
메뉴
6 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
I. UI setting
Procedure
1. Data 에 context 를 bind 한다 .2. Filename 을 입력한다 .3. Mimetype 에 plain/application 을 입력한다 .
참고사항
Related Link
목적 • UI setting
메뉴
7 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
II. Context setting
8 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
II. Context setting
Procedure
1. Context node 를 만든다 .2. Supply function 을 설정한다 .
참고사항
Related Link
목적 • context setting
메뉴
9 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
II. Context setting
Procedure
1. Attibute 를 만들고 type 을 xstring 으로 설정한다 .
참고사항
Related Link
목적 • context setting
메뉴
10 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
II. Context setting
Procedure
1. 위에서 만든 attribute 를 download UI property 의 data 에 binding 한다 .
참고사항
Related Link
목적 • context setting
메뉴
11 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
III. 구현 code
12 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
III. 구현 code
Procedure
1. Data definition
참고사항
Related Link
목적 • 구현 code
data : conv_out type ref to cl_abap_conv_out_ce, lv_html type string, comps type i, typ, lv_temp type string.
field-symbols: <f_wa> type any, <f_comp> type any, <f_print> type any.
unassign : <f_wa>, <f_comp>, <f_print>.
메뉴
13 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
III. 구현 code
Procedure
1. Head label 설정
참고사항1. Html tag 지식을 알면 도움이 된다 .
Related Link
목적 • 구현 code
concatenate lv_html '<tr valign="middle">' '<td align="center" valign="middle" >' ' 플랜트 ' '</td>' '<td align="center" valign="middle" >' ' 장비번호 ' '</td>' '<td align="center" valign="middle" >' ' 장비내역 ' '</td>' '<td align="center" valign="middle" >' ' 장비구분 ' '</td>' '<td align="center" valign="middle" >' ' 위치 ' '</td>' '<td align="center" valign="middle" >' ' 장비분류 ' '</td>' '<td align="center" valign="middle" >' ' 수익장비구분 ' '</td>' '<td align="center" valign="middle" >' ' 운영부서 ' '</td>' '<td align="center" valign="middle" >' ' 운영책임자 ' '</td>' '<td align="center" valign="middle" >' ' 자산번호 ' '</td>' '<td align="center" valign="middle" >' ' 취득일 ' '</td>' '<td align="center" valign="middle" >' ' 취득금액 ' '</td>' '<td align="center" valign="middle" >' ' 취득구분 ' '</td>' into lv_html.
concatenate lv_html '</tr>' into lv_html.
메뉴
14 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
III. 구현 code
Procedure
1. Data export
참고사항1. Html tag 지식을 알면 도움이 된다 .
Related Link
목적 • 구현 code
loop at lt_print assigning <f_wa>. concatenate lv_html '<tr>' into lv_html. describe field <f_wa> type typ components comps.
do. assign component sy-index of structure <f_wa> to <f_print>. if sy-subrc <> 0. exit. endif. clear lv_temp. lv_temp = <f_print>.
concatenate lv_html '<td align="center">' lv_temp '</td>' into lv_html. enddo.
concatenate lv_html ' </tr>' into lv_html. endloop.
concatenate lv_html ' </table> </html>' into lv_html.
메뉴
15 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
III. 구현 code
Procedure
1. Data 변환
참고사항
Related Link
목적 • 구현 code
conv_out = cl_abap_conv_out_ce=>create( encoding = 'UTF-8' ). conv_out->convert( exporting data = lv_html importing buffer = stru_down-file ).
node->bind_structure( exporting new_item = stru_down set_initial_elements = abap_true ).
메뉴
16 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
IV. 결과 화면
17 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
IV. 결과 화면
Procedure
1.
참고사항
Related Link
목적 • 결과 화면
메뉴
18 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.
IV. 결과 화면
Procedure
1.
참고사항
Related Link
목적 • 결과 화면
메뉴