Your SlideShare is downloading. ×

Abap Mail Sending

2,135

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
2,135
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
137
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 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. Agenda
    • 구현 code
    • Mail spool 확인하기
    Index
  • 3. Document Control 산출물명 Phase 명 Task 명 Stage Task Module 검토일자 승인자 승인일자 검토자
    • 최초작성
    정세훈 Ver1.0 1 변경사유 작성자 작성일자 버전 순번
  • 4. I. 구현 code
  • 5. I. 구현 code Procedure Data 를 선언한다 . 참고사항 Related Link 목적
    • mail 을 보내는 기능을 구현한다 .
    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. I. 구현 code Procedure Mail 내용을 만들고 option 을 설정한다 .. 참고사항 Related Link 목적
    • mail 을 보내는 기능을 구현한다 .
    * 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.'. " 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. I. 구현 code Procedure Mail 을 보낸다 . 참고사항 * 외부 메일을 보낼때 BC 에서 설정을 해줘야 한다 . *mail spool display T-CODE : SOST *package : SCON SAPconnect - External Communication . Related Link 목적
    • mail 을 보내는 기능을 구현한다 .
    *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. II. Mail spool 확인
  • 9. II. Mail spool 확인 Procedure Data 가 들어 온걸 확인할수 있다 . 참고사항 Related Link 목적
    • mail spool 확인
    메뉴
    • T-code : SOST
  • 10. II. Mail spool 확인 Procedure Contets 도 확인가능하다 . 참고사항 Related Link 목적
    • mail spool 확인
    메뉴
    • T-code : SOST
  • 11. II. Mail spool 확인 Procedure Menu->Send_request->start send process for selection 을 선택하면 바로 메일 전송도 가능하다 . 참고사항 Related Link 목적
    • mail spool 확인
    메뉴
    • T-code : SOST

×