Professional Documents
Culture Documents
A Step by Step Guide On SMTP Configuration and File To Mail PDF
A Step by Step Guide On SMTP Configuration and File To Mail PDF
Applies to:
SAP NetWeaver Process Integration 7.1
For more information, visit the SOA Management homepage.
Summary
This document gives complete step-by-step procedures for implementing and testing a File-to-Mail scenario
from scratch using the Business Systems in the Integration Directory (ID). The document also provides some
basic idea and working knowledge on how to configure SMTP. Some insight on TCodes- Profile Parameters
(Transaction RZ10), User Maintenance (Transaction SU01), maintain services and assigning a client
(Transaction SICF), SAPconnect Administration (Transaction SCOT)
So, this document can be treated as a ready reference in real life situations when working with Mail scenario.
Author Bio
Sandeep Sharma is working as a SAP NetWeaver Consultant for HCL Technology Noida
INDIA. He is SAP PI 7.0 certified developer. He is having a good experience in ALE/IDOC
also.
Table of Contents
Introduction ......................................................................................................................................................... 3
Basic Concepts and Overview ............................................................................................................................ 3
Requirement Study and Scope Identification .................................................................................................. 3
Prerequisites ....................................................................................................................................................... 4
Knowledge Requirements ............................................................................................................................... 4
System Requirements ..................................................................................................................................... 4
Implementation – Build Solution ......................................................................................................................... 4
1 SMTP Configuration guide............................................................................................................................... 4
1.1 Purpose ..................................................................................................................................................... 4
1.2 Prerequisites ............................................................................................................................................. 4
1.3 Process Flow............................................................................................................................................. 4
1.3.1 Settings for the Profile Parameters (Transaction RZ10)...................................................................................... 4
1.3.2. User Maintenance (Transaction SU01) .............................................................................................................. 7
1.3.3. Assigning the Clients (Transaction SICF) .......................................................................................................... 9
1.3.4. SAPconnect Administration (Transaction SCOT) ............................................................................................. 11
2-File to Mail Scenario ...................................................................................................................................... 14
2.1 Enterprise Service Repository (Designing) ............................................................................................. 14
Design Objects:.......................................................................................................................................................... 14
2.2. Integration Directory (Configuration) ...................................................................................................... 23
Directory Objects: ...................................................................................................................................................... 23
2.3. Testing the Scenario (SXMB_IFR)......................................................................................................... 35
2.4. Testing the Scenario (SXMB_MONI) ..................................................................................................... 36
Related Content ................................................................................................................................................ 38
Disclaimer and Liability Notice .......................................................................................................................... 39
Introduction
This guide gives you a clear IDEA and complete step by step procedures to be followed while implementing
File to Mail scenario. There are many blogs and articles on SDN for XI and PI 7.0 for mail scenario. This
guide is especially for PI 7.1 users and also for those who want to learn how to configure SMTP. It becomes
very difficult for any beginner and Intermediate XI aspirants to implement such a scenario in PI 7.1 from
scratch. Hence, I have tried to come up with a complete solution and How to guide document to provide all
steps required implementing such a scenario from the very beginning. Hope this document will help all PI
professionals as a ready reference in real life situation while working with File and Mail PI scenario in cross
company environment.
Happy Learning…
Prerequisites
Knowledge Requirements
Basic knowledge of XI and how it works.
Nice to have one file to file scenario implementation experience. Please see the reference section if you want
to go through one file to file scenario example
System Requirements
Two Business Systems in SLD (System Landscape directory) are required which should be created using
Third Party Option
Access to Transactions RZ10, SU01, SICF, SCOT, SXMB_MONI, SXMB_IFR are required for PI System.
Tip: If you don’t have access right to any of this transaction, you can contact your basis /XI administrator so that he can
help you to create / configure objects for you including SLD.
1.2 Prerequisites
To enable mail communication, mail server must be SMTP-compatible.
here <*> stands for the sequence number (starting from zero)of
frequently occurring parameters.
<port> the number of the port that is to be used ( can’t yet be used by another program on this
host.)
In my case here value of * (sequence number) is 2 and PORT = 25000
B) is/SMTP/virt_host_<*> = <host>:<port>,<port>,...;
This parameter defines a virtual mail host for receiving mails.
Here <host> describes the name of the host to which the incoming mails are addressed.
<port> describes the number of the port to which the incoming mails are addressed.
Note:
1- This parameter is not required If one single client of the SAP system is receiving and processing all
incoming mails).
2-Default value for this parameter is/SMTP/virt_host_0 = *:*;
3-In case of multiple clients, a virtual host has to be created for each of these clients.
In my example I have used *:25000 here * is used because I want the mails to be sent
independently of the host being addressed and 25000 is the value of PORT.
Click on create
User addresses
Assign the valid Internet mail address to your user (which is supposed to receive e-mails) in transaction
SU01, under E-Mail on the tab page Address.
Handler list
Enter CL_SMTP_EXT_SAPCONNECT at position 1.
Each client has an SMTP node. This node is created by the SAP system and cannot be deleted. The
following steps need to be carried out to configure the node so that sending Internet mail is possible:
1. First confirm that you are in the Node view, and then double click on that node name.
2. Choose Node in use.
3. In the Mail Host and Mail Port fields, specify the mail server to which the outbound mails are to be
sent.In my case , Mail Host = smtp.rediffmailpro.com (or you can use IP address also ) and Mail
Port = 25.
4. Next to Internet, click on set button and Enter the address area of the recipient addresses that are to
be reached using this node. In general, * is used if all e-mails are to be sent using SMTP.
5. Enter the output format for SAP documents and Confirm your selection
Note: If you also want to configure the node for sending text messages (pager/SMS) or faxes, please follow the
reference link given at the end of this document.
5. Choose Schedule Job. In the next window, Choose Schedule periodically. Select the interval you
require, such as 10 minutes. Choose Create.
Design Objects:
Data Types:
Create the two Data Types, one for the source and other for the target side.
Message Types:
Create the Message Type for both the data types as shown below.
Message Interfaces:
Create the Message Interfaces for the above message types as shown below.
Message Mapping:
Create the Message Mapping between the source message type and the target message type as shown
below.
Operation Mapping:
Create the Interface Mapping between the outbound and inbound interface as shown below.
Actions:
Create two actions for source service interface and the target service interface as shown below.
Click on assign mapping and assign the mapping using drop down menu.
Save and activate all your objects. Your ESR part is completed
Directory Objects:
Create the Business Scenario and create the sender business service (MAIL_SND) and receiver business
service (MAIL_RCV).Assign sender and receiver Interface to both service. Assign these services to your
business scenario.
In the wizard, Fill the details of process integration scenario which you have created in ESR
Click on continue
Click on finish
Click on close
Now click on the arrow connecting two actions and assign the communication channels.
Click on simulation button (4th button in the above screen shot) and select Generation Simulation radio button
Fig22. Simulation
Click on start
After simulation new window will popup close that and again click on the simulation button.
Click on start. Again new window for log will popup close that.
Click on apply button .Following objects will be created.
Click on send message. Now you can check the message in SXMB_MONI.
2- Alternatively you can test the scenario by putting the file MAIL.TXT on your FTP. After some time file
will be deleted from FTP
You will receive a mail in your box like the screenshot below:
Related Content
SMTP configure
http://help.sap.com/saphelp_nw04/helpdata/en/af/73563c1e734f0fe10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/EN/e3/94007075cae04f930cc4c034e411e1/content.htm
http://help.sap.com/saphelp_nw04/Helpdata/EN/6b/4493404f673028e10000000a1550b0/content.htm