webdynpro에서 excel export by html

2,097 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

webdynpro에서 excel export by html

  1. 1. Wendynpro 에서 excel export ( 하나 하나 찍어만들기 ) Skill cut [email_address] 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. 2. Agenda <ul><li>UI setting </li></ul><ul><li>Context setting </li></ul><ul><li>구현 code </li></ul><ul><li>결과 화면 </li></ul>Index
  3. 3. Document Control 산출물명 Phase 명 Task 명 Stage Task Module 검토일자 승인자 승인일자 검토자 <ul><li>최초작성 </li></ul>정세훈 Ver1.0 1 변경사유 작성자 작성일자 버전 순번
  4. 4. I. UI setting
  5. 5. I. UI setting Procedure 1. Download component 를 insert 한다 . 참고사항 Related Link 목적 <ul><li>UI setting </li></ul>메뉴
  6. 6. I. UI setting <ul><li>Procedure </li></ul><ul><li>Data 에 context 를 bind 한다 . </li></ul><ul><li>Filename 을 입력한다 . </li></ul><ul><li>Mimetype 에 plain/application 을 입력한다 . </li></ul><ul><li>참고사항 </li></ul><ul><li>Related Link </li></ul>목적 <ul><li>UI setting </li></ul>메뉴
  7. 7. II. Context setting
  8. 8. II. Context setting <ul><li>Procedure </li></ul><ul><li>Context node 를 만든다 . </li></ul><ul><li>Supply function 을 설정한다 . </li></ul><ul><li>참고사항 </li></ul><ul><li>Related Link </li></ul>목적 <ul><li>context setting </li></ul>메뉴
  9. 9. II. Context setting <ul><li>Procedure </li></ul><ul><li>Attibute 를 만들고 type 을 xstring 으로 설정한다 . </li></ul><ul><li>참고사항 </li></ul><ul><li>Related Link </li></ul>목적 <ul><li>context setting </li></ul>메뉴
  10. 10. II. Context setting <ul><li>Procedure </li></ul><ul><li>위에서 만든 attribute 를 download UI property 의 data 에 binding 한다 . </li></ul><ul><li>참고사항 </li></ul><ul><li>Related Link </li></ul>목적 <ul><li>context setting </li></ul>메뉴
  11. 11. III. 구현 code
  12. 12. III. 구현 code Procedure 1. Data definition 참고사항 Related Link 목적 <ul><li>구현 code </li></ul>   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. 13. III. 구현 code Procedure 1. Head label 설정 참고사항 1. Html tag 지식을 알면 도움이 된다 . Related Link 목적 <ul><li>구현 code </li></ul>   concatenate lv_html           '<tr  valign=&quot;middle&quot;>'           '<td  align=&quot;center&quot;  valign=&quot;middle&quot; >'              ' 플랜트 '              '</td>'           '<td  align=&quot;center&quot;  valign=&quot;middle&quot; >'              ' 장비번호 '              '</td>'           '<td  align=&quot;center&quot;  valign=&quot;middle&quot; >'              ' 장비내역 '              '</td>'           '<td  align=&quot;center&quot;  valign=&quot;middle&quot; >'              ' 장비구분 '              '</td>'           '<td  align=&quot;center&quot;  valign=&quot;middle&quot; >'              ' 위치 '              '</td>'           '<td  align=&quot;center&quot;  valign=&quot;middle&quot; >'              ' 장비분류 '              '</td>'           '<td  align=&quot;center&quot;  valign=&quot;middle&quot; >'              ' 수익장비구분 '              '</td>'           '<td  align=&quot;center&quot;  valign=&quot;middle&quot; >'              ' 운영부서 '              '</td>'           '<td  align=&quot;center&quot;  valign=&quot;middle&quot; >'              ' 운영책임자 '              '</td>'          '<td  align=&quot;center&quot;  valign=&quot;middle&quot; >'              ' 자산번호 '              '</td>'           '<td  align=&quot;center&quot;  valign=&quot;middle&quot; >'              ' 취득일 '              '</td>'           '<td  align=&quot;center&quot;  valign=&quot;middle&quot; >'              ' 취득금액 '              '</td>'           '<td  align=&quot;center&quot;  valign=&quot;middle&quot; >'              ' 취득구분 '              '</td>'           into lv_html.   concatenate lv_html             '</tr>'             into lv_html. 메뉴
  14. 14. III. 구현 code Procedure 1. Data export 참고사항 1. Html tag 지식을 알면 도움이 된다 . Related Link 목적 <ul><li>구현 code </li></ul>   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=&quot;center&quot;>' lv_temp '</td>'                 into lv_html.      enddo.     concatenate lv_html ' </tr>'             into lv_html.   endloop.   concatenate lv_html ' </table> </html>' into lv_html. 메뉴
  15. 15. III. 구현 code Procedure 1. Data 변환 참고사항 Related Link 목적 <ul><li>구현 code </li></ul>   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. 16. IV. 결과 화면
  17. 17. IV. 결과 화면 Procedure 1. 참고사항 Related Link 목적 <ul><li>결과 화면 </li></ul>메뉴
  18. 18. IV. 결과 화면 Procedure 1. 참고사항 Related Link 목적 <ul><li>결과 화면 </li></ul>메뉴

×