abap mail sending

11
abap mail sending abap mail sending Skill cut [email protected] 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.

Upload: jungsehun

Post on 25-Jan-2015

2.045 views

Category:

Technology


9 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Abap Mail Sending

abap mail sendingabap mail sending

Skill cut

[email protected]

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.

Page 2: Abap Mail Sending

Agenda

I. 구현 code

II. Mail spool 확인하기

IndexIndex

Page 3: Abap Mail Sending

3 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.

Module Task

Stage Task 명

Phase 명 산출물명

순번 버전 작성일자 작성자 변경사유 검토일자 검토자 승인일자 승인자

1 Ver1.0 정세훈 최초작성

Document ControlDocument Control

Page 4: Abap Mail Sending

4 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.

I. 구현 code

Page 5: Abap Mail Sending

5 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.

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)

메뉴

Page 6: Abap Mail Sending

6 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.

I. 구현 code

Procedure Mail 내용을 만들고 option 을 설정한다 ..

참고사항

Related Link

목적 • mail 을 보내는 기능을 구현한다 .

* mail contets createAPPEND 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 = '[email protected] '.ls_email_send-rec_type = 'U'.ls_email_send-express = 'X'.APPEND ls_email_send TO lt_email_send.

메뉴

Page 7: Abap Mail Sending

7 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.

I. 구현 code

Procedure Mail 을 보낸다 .

참고사항* 외부 메일을 보낼때 BC 에서 설정을 해줘야 한다 .*mail spool display T-CODE : SOST*package : SCON SAPconnect - External Communication .

Related Link

목적 • mail 을 보내는 기능을 구현한다 .

*mail sendCALL 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.

메뉴

Page 8: Abap Mail Sending

8 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.

II. Mail spool 확인

Page 9: Abap Mail Sending

9 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.

II. Mail spool 확인

Procedure Data 가 들어 온걸 확인할수 있다 .

참고사항

Related Link

목적 • mail spool 확인

메뉴 • T-code : SOST

Page 10: Abap Mail Sending

10 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.

II. Mail spool 확인

Procedure Contets 도 확인가능하다 .

참고사항

Related Link

목적 • mail spool 확인

메뉴 • T-code : SOST

Page 11: Abap Mail Sending

11 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.

II. Mail spool 확인

Procedure Menu->Send_request->start send process for selection 을 선택하면 바로 메일 전송도 가능하다 .

참고사항

Related Link

목적 • mail spool 확인

메뉴 • T-code : SOST