Вы находитесь на странице: 1из 11

1.

1 Purpose To enable mail communication between SAP systems and SMTP mail server, without having to use additional external components, kernel of the SAP Web Application Server should be SMTP (Simple Mail Transfer Protocol) compatible. Using this SMTP functionality, it is possible to exchange faxes and messages which are packed as e-mails. For this mail server should analyze the domain of the recipient addresses. Mail server either forwards the e-mails to an internal fax-/text message server or to an external provider To receive any fax or text message, server or provider sends e-mails to addresses that have the domain of the SAP system. 1.2 Prerequisites To enable mail communication, mail server must be SMTP-compatible. 1.3 Process Flow 1.3.1 Settings for the Profile Parameters (Transaction RZ10) If you want to use SMTP functionality, you have to adjust the profile of the SAP web application server because SAPConnect send job can only be scheduled for SMTP activated servers. Run tcode rz10 and create a profile.

Configure the following two profile parameters: A) icm/server_port_<*> = PROT=SMTP,PORT=<port> (this parameter opens a TCP/IP port for receiving mails through SMTP) here <*> stands for the sequence number (starting from zero)of frequently occurring parameters. <port> the number of the port that is to be used ( cant 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.

1.3.2. User Maintenance (Transaction SU01) Create a service user to process incoming mails Call transaction SU01 to create a user with type Service and assign the profile S_A.SCON to this user.

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.

1.3.3. Assigning the Clients (Transaction SICF) One SMTP server (SAPconnect) has already been created in transaction SICF and is delivered with every SAP system. Now Use this to create the first client and then create another SMTP server for each additional client. Run tcode SICF and enter the following details:

Press F8 . In the next screen double click on SAP connect


SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 2009 SAP AG 10 Host

data tab

Enter the sequence number of a parameter is/SMTP/virt_host_<*> from the profile. If you have only created one client and therefore have not specified this parameter type, enter 0.As shown in the figure:

Enter *:* in host configuration information. Handler list Enter CL_SMTP_EXT_SAPCONNECT at position 1.

1.3.4. SAPconnect Administration (Transaction SCOT) In this step, Define SAPconnect settings for the client that is to be used for send processes. Run tcode SCOT Under Settings Default Domain, define the domain of the SAP system client.

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.

Send Job (shift +F7) E-mails sent from an SAP application are first stored in a queue. A periodical background process, the SAPconnect send job, gets the e-mails from this queue and sends them over the Internet. To schedule this job in SAPconnect: Administration, proceed as follows: Press shift+F7 or click on the job button as shown in the figure below:

1. Choose View Jobs. 2. If no other job has been scheduled, choose Job Create. 3. Enter a job name ( for ex: MailSend)and confirm it.

4. Select the variant SAP&CONNECTALL by positioning the cursor on it.

5. Choose Schedule Job. In the next window, Choose Schedule periodically. Select the interval you require, such as 10 minutes. Choose Create. Any file that you send through broadcaster you will receive a mail in your box like the screenshot below: (either in .xml or .zip as choosen)

Вам также может понравиться