MaintainX SAP ECC 6 Integration Setup and Configuration Guide
This documentation covers an older version of the MaintainX SAP ECC6 integration (Current versions no longer use Tray.io for automations). It's provided here as a reference for existing installations. It may contain errors or omissions.
This article provides detailed instructions for setting up the SAP ECC6 integration for MaintainX using Tray.io.
Testing Notes​
MaintainX tested this documentation with the following configuration:
- SAP ECC 6.0 EHP8
- GUI:
- Windows: SAP GUI for Windows 11
- macOS: SAP GUI for Java for MacOS 14 (Sonoma)
- Server: Windows Server 2019
Requirements​
- SAP ECC6 instance, version 6.0 EHP8
- Admin rights
- A webhook URL for Tray.io, provided by your MaintainX Integrations representative.
Create a New SAP User for the Integration​
-
Enter transaction code:
SU01
The User Maintenance screen opens.
-
In the User field, enter the name for the new user.
-
From the menu, select User > Create.
The Maintain Users screen opens.
-
On the Address tab enter all the required information for the new user.
Required fields are marked with an asterisk (*) on Windows and a checkbox icon on macOS.
-
On the Profiles tab, add the following Administrator profiles:
SAP_ALL
SAP_NEW
-
On the Logon Data tab, go to the Password section and enter a password in the New Password and Repeat Password fields.
This is the initial password. When you log in as the new user for the first time, you will have to reset it.
-
From the menu, select User > Save to save the new user.
-
Log out and log in again with the new user's username and password.
-
When prompted, create a new password.
Open the HTTPS port​
-
Enter transaction code:
RZ10
The Edit Profiles screen opens.
-
Do one of the following:
If this is an existing install of SAP ECC6 skip ahead to Configure the Profile.
If this is a new install of SAP ECC6, you have to import the default profiles. Go to the next section, Import Default Profiles.
Import Default Profiles​
If this is a new setup, you have to import the default profiles.
On the Edit Profiles screen:
- From the menu, select Utilities > Import profiles > Of active servers.
- Review the import message, and then, from the toolbar, select Back to return to the Edit Profiles screen.
Configure the Profile​
-
On the Edit Profiles screen enter the following values:
Field Value Profile If this is an existing install of SAP ECC6, do the following:
- Click the matchcode icon. The Hit List 3 Entries dialog opens.
- Select profile you want to use.
- Click the Copy button (checkmark) to load the profile.
If this is a new install of SAP ECC6 set this to:
DEFAULT
Version If this is an existing install of SAP ECC6, use the latest version number:
- Select the version dropdown icon in the Version field. A list of versions opens.
- Select the latest version.
- Click the Copy button (checkmark) to load the latest version.
If this is a new install of SAP ECC6 set this to
1
-
In the Edit Profile section, select Extended Maintenance and click the Change button.
The Maintain Profile screen opens. It lists the profile parameters.
Use an Existing Parameter to Open the HTTPS Port​
If this is a new install of SAP ECC6 follow the instructions in Create a New parameter to Open the HTTPS Port instead.
If this is an existing install of SAP ECC6 follow the instructions in this section.
On the Maintain Profile screen:
-
In the Parameter Name list, select the
icm/server_port
parameter.For example:
icm/server_port_0
-
From the menu, select Parameter > Change. The parameter options open.
-
From the menu, select Parameter > Display <-> Change.
-
In the Parameter val.: field, enter
PROT=HTTPS,PORT={Port Number}
For example:
PROT=HTTPS,PORT=8003,PROCTIMEOUT=15,TIMEOUT=15
-
From the menu, select Parameter > Display <-> Change again.
-
When prompted, click Yes to save your changes.
-
From the menu, select Goto > Back to return to the parameters list.
Create a New parameter to Open the HTTPS Port​
If this is an existing install of SAP ECC6 follow the instructions in Use an Existing Parameter to Open the HTTPS Port instead.
If this is a new install of SAP ECC6 follow the instructions in this section.
On the Maintain Profile screen:
-
From the menu, select Parameter > Create.
-
Configure the new parameter as follows:
For this setting Enter this Parameter name icm/server_port_{n}
Wheren
is the first available number. For example, if you already have a parameters that usesicm/server_port_0
, useicm/server_port_1
.Parameter val. PROT=HTTPS,PORT={Port Number}
For example:PROT=HTTPS,PORT=8003,PROCTIMEOUT=15,TIMEOUT=15
-
From the menu, select Parameter > Display <-> Change.
-
When prompted, click Yes to save your changes.
-
From the menu, select Goto > Back to return to the parameters list.
Save the Profile​
-
In the toolbar, click Back to return to the Edit Profiles screen.
-
In the toolbar, click Save to save your profile.
If you get an error message about the name of your database, ignore it and save the profile.
Restart the SAP Server​
You need to restart the SAP server to apply the new profile. To restart the server, you need access to the server itself or the SAP Microsoft Management Console (MMC).
From the MMC, directly on the server running SAP:
-
Right-click the server.
-
From the context menu, select Restart.
The SAP System Restart dialog opens.
-
From the Shutdown Type section, select Soft.
tipWe recommend a soft rather than a hard reboot. A soft reboot sends a signal to SAP before rebooting, which allows the system to be shut down properly, and reduces the risk of corrupting SAP.
You can also schedule soft reboots to coincide with planned downtime.
Test the HTTPS Port​
After the reboot, return to SAP and do the following:
-
Enter transaction code:
SMICM
The ICM Monitor screen opens.
-
From the application toolbar, click , or press Shift+F1.
The ICM Monitor - Service Display screen opens.
You should see your new ports in the Active Services list.
-
Enter transaction code:
SICF
The Define Services screen opens.
-
From the menu, select Program > Execute. The service configuration options appear.
-
In the Virtual Hosts table, navigate to default_host > SAP > public > ping.
-
Right click ping, and from the context menu, select Activate Service. The Activation of ICF Services dialog appears.
-
Click Yes to activate the ping service.
If you see two yes buttonsDo not click the Yes button with a tree icon.
-
Open a web browser and enter the following address in the address bar:
HTTPS://{hostname}:{port}/sap/public/ping
Where
hostname
is the IP address hostname where your SAP ECC6 instance is hosted, andport
is the port number when you set up theicm/server_port
parameter (see Configure the Profile). -
Make sure you can connect to the ping URL.
-
In the Virtual Hosts table, right click the ping service, and from the context menu, select Deactivate Service to close public ping service.
Activate the iDoc Service​
You should still have the Define Services screen open if you don't:
-
Enter transaction code:
SICF
The Define Services screen opens.
-
In the application toolbar, click Execute. The service configuration options appear.
-
In the Virtual Hosts table, navigate to default_host > sap > bc.
-
In the table of services, navigate to default_host > sap > bc > idoc_xml.
-
Right click idoc_xml, and from the context menu, select Activate Service. The Activation of ICF Services dialog appears.
-
Click Yes to activate the idoc_xml service.
If you see two yes buttonsDo not click the Yes button with a tree icon.
Create Logical Systems​
Create a New Logical System​
-
Enter transaction code:
SALE
The Display IMG screen opens.
-
On the Display IMG screen, navigate to IDoc Interface / Application Link (ALE) > Basic Settings > Logical Systems.
-
Click the clock icon next to Define Logical System.
The Change View "Logical Systems": Overview screen opens.
-
In the application toolbar, click New Entries. The New Entries: Overview of Added Entries screen opens.
-
In the Logical Systems table, add an entry for your new logical system.
tipTake note of the name of the new logical system, you'll need it later.
-
In the toolbar, click Save.
-
Do one of the following:
- If SAP prompts you to create a new Workbench Request, continue to the next section, Create a New Workbench Request.
- If not, skip to Assign the Logical System to a Client.
Create a New Workbench Request​
When you create a new logical system, SAP might prompt you to create a new Workbench Request. The Prompt for Workbench Request dialog will open.
To create a new Workbench Request:
-
In the Request field, click the matchcode icon to open a second Prompt for Workbench Request dialog with a list of current requests.
-
From the toolbar at the bottom of the dialog box, click Create Request.
The Create Request dialog opens.
-
In the Short Description field, add a short description for your request. Then, from the toolbar at the bottom of the dialog box, click Save.
-
In the list of Workbench Requests, select your new request. Then, from the toolbar at the bottom of the dialog box, click Choose (checkmark).
-
In the Prompt for Workbench Request dialog, make sure that the Request filed shows the ID for the request you created.
-
From the toolbar at the bottom of the dialog box, click Continue (checkmark).
Assign the Logical System to a Client​
-
Return to the Display IMG screen.
-
Navigate to IDoc Interface / Application Link (ALE) > Basic Settings > Logical Systems.
-
Click the clock icon next to Assign Logical System to Client.
The Change View "Clients": Overview screen opens.
Take note of the highest number in the Client column.
-
In the application toolbar, click New Entries. The New Entries: Details of Added Entries screen opens.
-
Fill in the following fields:
Field Value Client In the short field, enter the key for the entry. This should be at least one higher than the number you noted from the Client column on the previous screen.
In the long field, enter a name for the entry.City Add your city. Logical system Click the matchcode icon in this field to open a list of logical systems.
Select the system you created earlier and then click the Cont. (checkmark) button.Currency Click the matchcode icon in this field to open a list of currencies.
Select your local currency and then click the Cont. (checkmark) button.Client role Set this to Customizing. -
In the toolbar, click the checkmark button to validate the entry.
-
From the menu, select Table View > Save.
Download and Import the Tray.io Certificate​
For the SAP ECC6 MaintainX integration to work over SSL, you need to import the Tray.io certificate.
Download the Tray.io Certificate​
- Google Chrome
- Firefox
- Safari
- In a new browser tab, go to https://tray.io/.
- In the address bar, click the View site information icon to the left of the URL.
- From the popup, select Connection is secure to open the Security options.
- From the Security options, select Certificate is valid. The Certificate Viewer window opens.
- On the Details tab, click Export. The export dialog opens.
- Choose a folder to save the certificate to.
- Set Format to PKCS #7, certificate chain.
- Click Save.
- In a new browser tab, go to https://tray.io/.
- In the address bar, click the lock icon to the left of the URL.
- From the popup, select Connection secure and then select More Information. The Page Info window opens.
- On the Security tab, click View Certificate. The certificate opens in a new browser tab.
- Navigate to the Miscellaneous section and, on the Download line, click PEM (chain).
Firefox saves the certificate to your downloads folder.
- In a new browser tab, go to https://tray.io/.
- In the address bar, click the lock icon to the left of the URL.
- From the popup window, click Show Certificate.
- Click and drag the certificate icon from the popup window to a Finder window to save it to your computer.
Import the Tray.io Certificate​
-
In SAP ECC6, enter transaction code:
STRUST
The Trust Manager: Display screen opens.
-
In the application toolbar, click the Display <-> Change button to enter edit mode.
-
In the Personal Security Environment (PSE) list in the left hand pane, expand the SSL client SSL Client (Anonymo category, and double click the PSE in that category.
-
From the menu, select Certificate > Import. The Import Certificate dialog opens.
-
On the File tab, go to the File path field and click the matchcode icon.
-
Navigate to the certificate that you want to import, select it, and click Open.
-
In the Import Certificate dialog, click the Continue (checkbox) button to close the dialog box and import the certificate.
-
In the SSL client SSL Client (Anonymo options in the right hand pane, click the Add to Certificate List button.
You should now see the certificate you imported in the Certificate List section.
-
In the toolbar, click Save.
Create an HTTPs Connection to the External Server​
-
Enter transaction code:
SM59
The Configuration of RFC Connections screen opens.
-
In the RFC Connections table, select HTTP Connections to External Server.
-
From the menu, select Edit > Create. The RFC Destination screen opens.
-
In the RFC Destination field, enter a name for the connection.
-
Go to the Technical Settings tab and find the Target System Settings section.
-
You should have a webhook URL for Tray.io, provided by MaintainX. Enter the URL without the URL prefix (i.e., remove the
https://
from the beginning),in the Target Host field.noteMaintainX supplies . If you don't have your Tray.io webhook URL, contact your MaintainX Account Manager.
-
Set Service No. to 443.
-
Go to the Logon & Security tab and find the Security Options section.
-
In the Status of Secure Protocol section, make sure SSL is set to Active.
-
From the SSL Certificate dropdown, select the certificate you imported in Download and Import the Tray.io Certificate.
-
From the menu, select Utilities > Connection Test to make sure the connection works.
Create a Port for IDoc Processing​
-
Enter transaction code:
WE21
The Ports in IDoc Processing screen opens.
-
In the table, select XML HTTP.
-
In the application toolbar, click Create.
The Add XML HTTP Port screen opens.
-
Set the port fields as follows:
Field Value Port The name for the port. Description A description for the port. For example: xml http port for Tray.IO
RFC Destination Select the connection you created in Create an HTTPS Connection to the External Server. Content Type Make sure this is set to Text/XML. SOAP Protocol Make sure this checkbox is cleared. -
In the Toolbar, click Save.
Create Partner Profiles​
You need to create both an inbound and an outbound partner profile to handle information coming in from MaintainX and information going out to MaintainX respectively.
This section describes how to create a new partner profile, and how to configure it for inbound or outbound information.
Create a New Partner Profile​
-
Enter transaction code:
WE20
The Partner Profiles screen opens.
-
In the application toolbar, click Create.
-
Configure the new partner profile as follows:
Field Value Partner No. The name of the logical system you created in Create a New Logical System Partn. Type Select LS. In the Post Processing: permitted agent section:
Field Value Ty. Select the user agent type for the user associated with this partner profile.
for example, US for User.Agent Select the user you create in Create a New SAP User for the Integration Lang. Select your preferred language. -
From the toolbar, Click Save.
-
Do one of the following:
- If you're creating an inbound partner profile, follow the instructions in Set Inbound Partner Profile Parameters.
- If you're creating an outbound partner profile, follow the instructions in Set Outbound Partner Profile Parameters.
Set Inbound Partner Profile Parameters​
In the partner profile options, go to the Inbound parmtrs. table, and add the IDocs you want the MaintainX integration to interact with.
The list is different depending on the type of MaintainX entity you're setting up the integration for.
For each IDoc type, you need to create and configure a new inbound parameter.
To create a new inbound parameter:
-
Under the Inbound parmtrs. table, click the Create inbound parameter (+) button. The Partner profiles: Inbound parameters screen opens.
-
On the The Partner profile: Inbound parameters screen, enter the Message type and Process code for the IDoc type you want to configure.
The tables below list the correct values for each IDoc type:
- Parts Inventory
- Purchase Orders
Message type Process code Description MATMAS
MATM
Parts information MBGMCR
BAPI
Inventory control Message type Process code Description PORDCH
BAPI
Update a purchase order PREQCR
BAPI
Create a purchase request PORDCR
BAPI
Create a purchase order CREMAS
CRE1
Vendor information
Set Outbound Partner Profile Parameters​
In the partner profile options, go to the Outbound parmtrs. table, and add the IDocs you want the MaintainX integration to interact with.
The list is different depending on the type of MaintainX entity you're setting up the integration for.
For each IDoc type, you need to create and configure a new outbound parameter.
To create a new outbound parameter:
-
Under the Outbound parmtrs. table, click the Create outbound parameter (+) button. The Partner profiles: Outbound parameters screen opens.
-
On the The Partner profile: Outbound parameters screen, fill in the following fields:
- Message type
- On the Outbound Options tab:
- Receiver port
- Output Mode
- Basic type (in the IDoc Type section)
The tables below list the correct values for each IDoc type:
- Parts Inventory
- Purchase Orders
Message Type | Receiver port | Basic type | Output Mode | Description |
---|---|---|---|---|
MATMAS | Use the port you created in Create a Port for IDoc Processing | MATMAS05 | Pass IDoc Immediately | Parts information |
LOIMSO | Use the port you created in Create a Port for IDoc Processing | LOIMS01 | Pass IDoc Immediately | Inventory control |
Message Type | Receiver port | Basic type | Output Mode | Description |
---|---|---|---|---|
ORDERS | Use the port you created in Create a Port for IDoc Processing | ORDERS05 | Pass IDoc Immediately | Purchase order information |
CREMAS | Use the port you created in Create a Port for IDoc Processing | CREMAS06 | Pass IDoc Immediately | Vendor information |
Create a Distribution Model to Trigger an Outbound IDoc​
-
Enter transaction code:
BD64
The Display Distribution Model screen opens.
-
From the menu, select Distribution Model > Switch Processing Mode to switch to editing mode.
The title bar should now read Change Distribution Model.
-
From the menu, select Edit > Model View > Create. The Create Model View dialog opens.
-
Configure the model view as follows:
Field Value Short text Enter a description for the model view. Technical name Enter a name of the model view. MainT System Set this to the inbound logical system you created in Create a New Logical System. -
Click Continue (checkmark). You should see the new distribution model in the table.
-
Select the new distribution model, and, from the menu, select Edit > Add Message Type. The Add Message Type dialog opens.
-
Configure the message type as follows:
Field Value Model view This should be set to the name of the distribution model you just created. Sender Set this to the inbound logical system you created in Create a New Logical System. Receiver Set this to the outbound logical system you created in Create a New Logical System. Message Type Set this to MATMAS.