Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

sap Abap File Save (Cl Gos Manager)


Published on

  • Be the first to comment

  • Be the first to like this

sap Abap File Save (Cl Gos Manager)

  1. 1. abap file upload 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. Document Control 산출물명 Phase 명 Task 명 Stage Task Module 검토일자 승인자 승인일자 검토자 <ul><li>최초작성 </li></ul>정세훈 Ver1.0 1 변경사유 작성자 작성일자 버전 순번
  3. 3. Procedure 1. File attach object 를 생성한다 . 참고사항 Related Link 목적 <ul><li>File upload </li></ul>메뉴 <ul><li>T-code : SWO1 </li></ul>
  4. 4. Procedure 1. Supertype 만 빼고 모두 입력한다 . 참고사항 Related Link 목적 <ul><li>File upload </li></ul>메뉴
  5. 5. Procedure 1. 키필드 를 선택하고 create 를 누른다 . 참고사항 Related Link 목적 <ul><li>File upload </li></ul>메뉴
  6. 6. Procedure 1. 키필드로 사용할 table 을 입력하면 자동으로 table 의 키가 키필드가 된다 . 참고사항 Related Link 목적 <ul><li>File upload </li></ul>메뉴
  7. 7. Procedure 1. 프로그램에서 custom container 를 그린다 . 참고사항 Related Link 목적 <ul><li>File upload </li></ul>메뉴
  8. 8. Procedure 1. 스크린 초기화 부분에 다음 code 를 넣는다 . 참고사항 Related Link 목적 <ul><li>File upload </li></ul>check tb_custom_container is initial. data: objectident type borident , lt_services type tgos_sels, ls_service type sgos_sels. objectident-objkey = notice_num. &quot; 위에서 만든 키 objectident-objtype = 'ZTEST'. &quot;<- 파일 오브젝트 condense objectident-objkey no-gaps.&quot; clear tb_custom_container. clear g_gos_manager. &quot;Create Container create object tb_custom_container exporting container_name = 'TOOLBAR_CONTAINER' &quot; exceptions cntl_error = 1 cntl_system_error = 2 create_error = 3 lifetime_error = 4 lifetime_dynpro_dynpro_link = 5 others = 9. 메뉴
  9. 9. Procedure 1. 스크린 초기화 부분에 다음 code 를 넣는다 . 참고사항 Related Link 목적 <ul><li>File upload </li></ul>if sy-subrc ne 0. message s009 with 'Create Container Error'. endif. create object g_gos_manager exporting is_object = objectident it_service_selection = lt_services io_container = tb_custom_container ip_no_commit = 'R' exceptions object_invalid = 1 callback_invalid = 2 others = 9. case sy-subrc. when 1. message s009 with 'Invalid BOR Object Identifier'. when 2. message s009 with 'Incorrect Interface Type for Callback'. when 9. message s009 with 'Create Toolbar Error'. endcase. 메뉴
  10. 10. Procedure 1. 왼쪽과 같은 버튼이 생기면서 메뉴에 첨부파일을 붙일 수 있다 . 참고사항 키를 유니크한 번호로 관리하면 자동으로 문서들이 그 번호에 따라서 정리된다 . CL_GOS_MANAGER 를 찾아보면 많은 다른 기능도 많다 . Related Link 목적 <ul><li>File upload </li></ul>메뉴