Abap Mail Sending


Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Abap Mail Sending

  1. 1. abap mail sending 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>구현 code </li></ul><ul><li>Mail spool 확인하기 </li></ul>Index
  3. 3. Document Control 산출물명 Phase 명 Task 명 Stage Task Module 검토일자 승인자 승인일자 검토자 <ul><li>최초작성 </li></ul>정세훈 Ver1.0 1 변경사유 작성자 작성일자 버전 순번
  4. 4. I. 구현 code
  5. 5. I. 구현 code Procedure Data 를 선언한다 . 참고사항 Related Link 목적 <ul><li>mail 을 보내는 기능을 구현한다 . </li></ul>TYPES: BEGIN OF contents, text(255) TYPE c, END OF contents. DATA : email_data TYPE sodocchgi1, ls_mail TYPE contents, lt_mail TYPE TABLE OF contents, lt_email_send TYPE TABLE OF somlreci1, ls_email_send TYPE somlreci1. “ mail form * 1. Material : (MARA- MATNR) , (MAKT-MAKTX) * 2. Plant : (MARC- WERKS) * 3. Material Type : ( MARA- MTART) * 4. Material Group : (MARA-MATKL) * 5. Valuation Class : (MBEW-BKLAS) * 6. Created On : (MARA-ERSDA) * 7. Created By : (MARA-ERNAM) 메뉴
  6. 6. I. 구현 code Procedure Mail 내용을 만들고 option 을 설정한다 .. 참고사항 Related Link 목적 <ul><li>mail 을 보내는 기능을 구현한다 . </li></ul>* mail contets create APPEND ls_mail TO lt_mail *option setting email_data-obj_name = 'Material creation info'. email_data-obj_descr = '[SAP] Material (MARA- MATNR) has been created.'. &quot; title *EMAIL_DATA-OBJ_LANGU = 'E'. email_data-sensitivty = 'P'. email_data-obj_prio = '1'. email_data-no_change = 'X'. email_data-priority = '1'. *receipt 설정 . ls_email_send-receiver = 'spgns@nate.com '. ls_email_send-rec_type = 'U'. ls_email_send-express = 'X'. APPEND ls_email_send TO lt_email_send. 메뉴
  7. 7. I. 구현 code Procedure Mail 을 보낸다 . 참고사항 * 외부 메일을 보낼때 BC 에서 설정을 해줘야 한다 . *mail spool display T-CODE : SOST *package : SCON SAPconnect - External Communication . Related Link 목적 <ul><li>mail 을 보내는 기능을 구현한다 . </li></ul>*mail send CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1' EXPORTING document_data = email_data document_type = 'RAW' put_in_outbox = 'X' commit_work = 'X' TABLES object_content = lt_mail receivers = lt_email_send. 메뉴
  8. 8. II. Mail spool 확인
  9. 9. II. Mail spool 확인 Procedure Data 가 들어 온걸 확인할수 있다 . 참고사항 Related Link 목적 <ul><li>mail spool 확인 </li></ul>메뉴 <ul><li>T-code : SOST </li></ul>
  10. 10. II. Mail spool 확인 Procedure Contets 도 확인가능하다 . 참고사항 Related Link 목적 <ul><li>mail spool 확인 </li></ul>메뉴 <ul><li>T-code : SOST </li></ul>
  11. 11. II. Mail spool 확인 Procedure Menu->Send_request->start send process for selection 을 선택하면 바로 메일 전송도 가능하다 . 참고사항 Related Link 목적 <ul><li>mail spool 확인 </li></ul>메뉴 <ul><li>T-code : SOST </li></ul>