SAP Connect is functionality within SAP which allows you to configure your SAP system to interact with other communication systems directly without the need for manual intervention. This would typically be an email server, but could also be, for instance, a fax server. Emails can be sent and received from within SAP and routed via SAP Connect to a person’s email account in another mail system. This promotes the “one application” approach which systems are striving towards.
There are many examples of using SAP Connect effectively. Typically letters could be generated by SAP Recruitment and emailed via SAP Connect to the applicant’s specified email address.
The following document gives you the high level steps for enabling SAP connect to work on version 4.7 of SAP.
The principal transaction code is SCOT which allows you to undertake most of the required steps. There are other steps required and you may be able to undertake them – depending on your security access in your SAP system.
Communication Types
You first need to specify the communication types.
Check whether the communication type SAPconnect is set for all communication methods that offer the communication systems connected using SAPconnect.
Use transaction code SCOT. Once in SAP Connect use the menu path: Settings Communication methods
Define rules for recipient number adjustment
You now need to define the rules for the recipient number adjustment.
Use the transaction code SCOT
Once in SAP Connect use the menu path: Settings Country code, Country code exceptions, or Recipient no. change (incoming)
You shouldn’t need to modify these settings as they should be adequate as delivered.
Settings for the Connection
Create RFC user using transaction code SU01.
To receive messages (including status messages), an RFC user is required. An RFC user has to be created in every client in which messages are to be received. An RFC user is also required in order to receive messages using the SMTP plug-in.
The RFC user needs to be an SAP user of the type “system”. It is therefore not possible for a person to logon with this user name in dialog.
The actual procedure is as follows:
- Start Transaction SU01
- Enter a name, MAIL_xyz.
- Click on the create icon.
- On the Logon data tab page, select the user type System.
- Enter a password.
- On the Profiles tab page, enter the authorization profile S_A.SCON. This profile minimizes the risk of misuse, even if the communication system does not store the password in encoded form.
- Click on the save icon
These settings are only required for the connection using the SMTP plug-in, and not for the connection using external communication systems.
Set the SMTP Plugin
The SMTP plug-in is part of the Internet Communication Manager (ICM) and enables Internet mails to be sent from the SAP System using SMTP.
To activate the SMTP function on SAP, you have to alter the parameters for the profile on the corresponding instance.
SAP recommend that you activate the SMTP function on all application servers. Otherwise, you can only schedule the SAPconnect send process on the servers for which the SMTP function is activated. If you did not activate the SMTP function on all application servers, you would be unable to schedule the job in SAPconnect administration (transaction SCOT) but only in the job definition (transaction SM36).
Set the following parameters for the SMTP plug-in:
rdisp/start_icman = true
exe/icman =
icm/plugin_<*> = PROT=SMTP,PLG=
icm/server_port_<*> = PROT=SMTP,PORT=
You have to replace the placeholders with the values that apply in your system landscape.
<*> Digit with which you number the parameters icm/plugin_<*> and icm/server_port_<*>, serially, starting with 0.
The parameter icm/server_port_<*> has the optional extra TIMEOUT, which you can use to set the maximum waiting time, in seconds, for the response of the mail server or mail client.
The settings on your SAP system should look similar to this:
rdisp/start_icman = true
exe/icman = d:\usr\sap\DEV\SYS\exe\run\icman.exe
icm/plugin_0 = PROT=HTTP,PLG=PROT=HTTP,PLG=D:\usr\sap\DEV\SYS\exe\run\httpplugin.dll
icm/plugin_1 = PROT=HTTPS,PLG=D:\usr\sap\DEV\SYS\exe\run\httpplugin.dll
icm/plugin_2 = PROT=SMTP,PLG=D:\usr\sap\DEV\SYS\exe\run\smtpplugin.dll
icm/server_port_0 = PROT=HTTP,PORT=8000,EXTBIND=1
icm/server_port_1 = PROT=SMTP,PORT=0
Create ICF Service
You now need to create an ICF Service. You have to create a service for every virtual host that you want to use to receive SMTP messages. In the case of SAPconnect, you have to create a service for every client in which messages are to be received using the SMTP plug-in. Services are connected to the SAP System's transport system.
If messages are to be received in more than one client, the parameter is/SMTP/virt_host_<*> has to be maintained in the profile of the Internet Communication Manager (ICM), whereby <*> stands for the number of the virtual host.
- Call transaction SICF.
- Select supplied SAPConnect
- Service data
- Anonymous logon data. The Logon data is a required field and cannot be selected. Specify the client and a MAIL_xyz.
- Service options. Do not make any entries here for SMTP.
- Security requirements. Select Standard.
- Basic authentication. Select Standard SAP User.
- Handler list. Specify the class CL_SMTP_EXT_SAPCONNECT.
- Save
Settings in SAPconnect
The SMTP Node
If you want to use the SMTP plug-in to send Internet mails, faxes, and/or SMSs externally, use the SMTP node. This node is delivered with SAPconnect and has to be adjusted to meet the requirements of your system landscape. In contrast to the other nodes, you cannot create any more SMTP nodes, nor can you delete the existing one. If you do not use the SMTP node, you cannot activate it (that is, you cannot set the Node in use indicator).
To send using the SMTP plug-in, you have to set parameters for the profile of the Internet Communication Manager (ICM).
In SAPconnect administration (transaction SCOT), double-click on the SMTP node.
Specify the following parameters with the ICM server/port combination to be used to send the messages:
Parameter | Value |
---|---|
Mail host | Mtahost.yourcompany.co.uk |
Mail port | 25 |
Also specify the following attributes:
Attribute | Description |
---|---|
Maximum waiting time for repeat send attempt procedure | Specify how long the send attempts are to be repeated for before the send process is cancelled, in the event of a communication error occurring when connecting to the mail server. |
Node in use | Select this attribute when you are using the node. |
Choose Set for the communication methods that the node can process. For each communication method, enter the formats and address areas that the node is to process.
Set Default Domain
The system will, by default, apply this to the user id to generate the sender's address, this will be the reply to address for the e-mail.
Change Confirmation Of Receipts
Turn of receipts, this seems to cause the system to hang when it is turned on.
Schedule the Process
The send process is scheduled to run every 10 minutes.
Choose View, Jobs
1. Create
2. Select SAP@CONNECTINT variant
3. Choose Schedule Job
4. Choose Schedule Periodically
5. Select minutes and select 10 minute interval.
6. Choose Create
User settings
Maintain address
SAP users can only send and receive in the communication methods for which they are assigned an address. If you have specified a default domain for sending over the Internet, a sender address is created automatically when documents are sent using the communication method Internet for users to whom no Internet address is assigned. For more information on Addresses , see the documentation BC - Business Workplace.
Transaction code: SU01 or SO12
Assign send authorisations
Users require send authorizations. The authorization object S_OC_SEND and (as values) the permitted communication methods and the maximum number of recipients to which a user may address a message are assigned to you. The authorizations required for sending are, by default, contained in the role SAP_BC_SRV_GBT_USER for the end user of the Business Workplace.
Transaction code: SU01
Assign Send Authorisations
Transaction code: SU01
Settings in the Business Workplace
Check send restrictions
In the Business Workplace shared office settings , you can activate send restrictions for sending from the Workplace interface. For example, you can allow internal sending only, or external sending only using address management.
Transaction code: SO16
You may not need to make any changes via this transaction.
Following instructions in Note 439948- Internet main is not sent (error 837).
Edit the SXNODES table via transaction SE16.
Select the entry that contains the name of your SAPConnect SMTP node in the NODE key Field (SMTP).
Press “Change(F6)”
Change the “F_ESMTP” field from “X” to “ ” (blank character) and save.
Sending to Internet email addresses
If you wish to send to an external Internet email address/account, you can do the following.
Make sure that there is a user set up for the person on the system.
You can enter the email address for the person on the user’s address tab (transaction code SU01). The communication method should be Int. email.
Go to transaction code SO12. Here you can specify a forwarding address for a specific time period. Under the tab “automatic forwarding” specify the person’s external email address.
Transaction code SO16 can be used to modify the SAP Office settings for a particular client. You would use this transaction code if you wished to filter the types of recipients available to the user in SAP Office.
No comments:
Post a Comment