8

SAP FSM Integration with ECC

 2 years ago
source link: https://blogs.sap.com/2022/06/03/sap-fsm-integration-with-ecc/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
June 3, 2022 7 minute read

SAP FSM Integration with ECC

Introduction: 

In this blog post we explain step by step process to set up integration between SAP FSM & ECC. SAP  Integration provides seamless integration between SAP and non-SAP applications within the organization A2A (Application to Application) or even outside the organization B2B (Business to Business). SAP Field Service Management software is meant to help your company boost the effectiveness of service and maintenance​. Message broker (MB) should be installed on a Windows Server with .NET 4.7.2 or higher. The MB files are simply copied to a folder. 

  • System Prerequisite 
  • Architecture 
  • E4C Message Broker Installation & Configuration 
  • SAP ECC Installation & Configuration
  • EE1 Integration Setup 

System Prerequisite:  

  • Data Processor: SAP Netweaver version 7.0 SP14.
  • Message Broker: Any Windows system, with .NET Framework 4.0 (client profile) installed, 256MB RAM about system requirements, 50GB HDD about system requirements and remote access.
  • Network connectivity (ports)

Architecture: 

Data processor Architecture

Data%20Processor%20Architecture

Message Broker: 

Windows Service Architecture

Message%20Broker%20Windows%20Service%20Architecture

Message Processing pipeline Architecture

MB1.png

E4C Message Broker Installation & Configuration: 

Installation:

Message broker is zip archived file and it should be extracted to target directory on the server (i.e., C:\Program Files (x86)\proaxia).  

MB2.png

Configuration:

Message Broker is by default set-up to handle a single Cloud company. 

Web service setup:  

E4C Message Broker needs to be executed as a Windows service.  

To create a service, open command line as administrator and run a command: 

sc create E4CEVALmessageBroker DisplayName= “E4C EVAL Message Broker” binPath= “C:\Program Files (x86)\proaxia\EVAL Message Broker\ E4CwinService.exe” obj= “NT AUTHORITY\LocalService” 

The path in the above command changes depending on the directory, to which you extracted the Message Broker archive. 

Above command creates a windows service named E4CmessageBroker, with display name E4C Message Broker and registered to run in context of LocalService user. MB3.png

After having configured the Message Broker and having run the service successfully. On general tab change the startup type to automatic

MB4.png

On recovery tab set first, second and subsequent failures to “Restart the Service”, so that the work is uninterrupted. 

Capture-13.png

URL Namespace Reservation:  

E4C Message Broker runs as a web service server, which is used to send messages to FSM Cloud. 

This service must be available on a certain TCP port and is registered with a certain URL in the system. 

To register the URL, open command line as administrator and run a command: 

Netsh http add urlacl url=https://localhost:9697/proaxia.e4c.eval.msgbrkr.Outbound.WebService/SendOutboundMessageService/ user=LocalService

Capture-14.png

The service URL and user, in whose context the service is configured to run should be used to match the actual values. 

Cloud Management:  

To exchange messages between ECC and FSM Cloud, you have to register an account, create a company and generate access tokens. 

Account Registration:  

Account management is performed in FSM admin with a web browser. 

Cloud Company Registration:  

Start E4C Cloud Management.exe and login with Cloud account and password entered during account registration. On the companies tab you can add or remove companies. 

Cloud access token:  

Access token can be generated with the use of E4C Cloud Manager.exe. After logging in switch to the access token tab where we can generate or test the access token. 

Capture29.png

New token can be generated as well as an existing token can be tested here. 

Application Config File: 

Message Broker configuration file can be found in the main application directory. The file name is E4CwinService.exe.config. The file has an XML format and contains sections related to web services, some .NET environment settings, etc. For Message Broker configuration there are two important sections. Application settings are grouped under <appSettings> section and the other important section is Logging.  

Capture-16.png

SAP ECC Installation & Configuration: 

E4C transport: The 1st step is import of E4C Transport. Ask your SAP administrator to copy the transport files into SAP transport directories. In transaction STMS in your development system add the transport to your transport queue. After adding transport to the transport queue, E4C transport should be imported. 

ALE & IDOC: 

Logical systems: 

For each FSM company a logical system has to be created. SALE transaction code is used to maintain Logical systems. 

Capture-17.png

Port Definition:  

For each FSM company a port has to be defined. Transaction WE21 is used to define the port.  

Capture-18.png

Partner profile: 

For maintenance of partners please use transaction WE20. E4C uses Partner type LS. For each FSM company there should be a partner. 

Capture-19.png

ALE Distribution Model: 

SALE transaction code is used to maintain ALE distribution Model. After starting the SALE transaction move to change mode. Define one distribution model for one FSM company. 

Capture-20.png

Web Service Configuration: 

Incoming service (FSM-ECC): 

Run transaction code SOAMANAGER, then click on web service configuration.

Capture-21.png

Select /PACG/ECM_WS service definition.

Capture1-3.png

Then create a service named PACG_ECM_WS. 

Capture2-1.png

Select the following values on provider security tab 

Capture3-2.png
Capture4-1.png

Select the following values on the transport settings tab 

Capture5.png

Select the following values on Message Attachments tab 

Capture6-1.png

Select the following values on IBC tab 

Capture7-2.png

Select the following values on Operation Settings tab 

Capture8.png

Then save it. 

Outgoing service (ECC-FSM)

Run transaction code SOAMANAGER, then click on web service configuration. 

Capture-22.png

Select /PACG/CO_ECMISEND_OUTBOUND_MES Consumer Proxy. 

Capture9.png

Then create a Logical port named PACG_ECM_WS. 

Capture10.png

Select the following values on the consumer security tab and enter your username and password.

Capture11.png

Select the following values on Messaging tab 

Capture12.png

Select the following values on Transport Settings tab and Enter the reserved URL. 

Capture13.png

Select the following values on the Message attachment tab 

Capture14.png

Select the following values on Operation Settings tab 

Capture15.png

EE1 Integration Set up: 

E4C Program Set up: 

Run /n/PACG/ECM_SETUP transaction code for E4C set up.  

Set EDI Model view, Partner No, Receiver port to /PACG/ECM1 

Update the tick boxes according to the screenshot and click on execute. Set up program should be started for each FSM company. 

Capture16.png

Unmark “Test Mode” to perform an actual configuration. Once you execute the program the protocol will be presented 

Capture17.png

Once you execute the program the protocol will be presented. Review the protocol, check if there are no errors or warnings. 

Capture18.png

Cockpit configuration: 

Run /n/PACG/ECM_COCKPITCON transaction code. Configure the fields as shown in the screenshot below. 

Capture19.png

Company Account Assignation: 

Run /n/PACG/ECM_CACC transaction and navigate to company account assignation and select the following values 

Capture20.png

Server certificate: 

Open MMC 

Capture21.png

Open file menu and select “Add/Remove Snap-in” 

Capture22.png

Select certificates and click on “Add” then click on “OK”.

Capture23.png

Select My user account and click on finish. 

Capture24.png

Now, you can see the certificates on the console.

Capture25.png

Right click on the console and select export list and save the certificate to target directory. 

Capture26.png

Now, you can see the certificate in the target directory. 

Capture27.png

Certificate import: 

 Run STURST transaction code then import the certificate.

Capture28.png

Reference: 

CX Works | Understanding the Message Broker in FSM to ECC Integration – (Part 1/2) Overview (sap.com)

About FSM Cloud Connector – FSM Cloud Connector – Confluence (atlassian.net)

Conclusion: 

In this blog post, we showed step by step how to set up integration between SAP FSM and ECC.   

We hope you enjoyed reading the blog post and that it helped to clarify how to set up Integration between SAP FSM and ECC.  

Feel free to share your comments and give feedback about the blog post. 

Regards, 

Gnana Siri 


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK