Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3363

#6 How To... Implement End-to-End Push Notifications with HCPms and SAP Gateway

$
0
0

#6.pngThis is a part of the implementation details of How To... Implement End-to-End Push Notifications with HCPms and SAP Gateway.


 

Implementation Plan

11.png

Working with SAP Gateway Hub. Major to-do thing here is to configure the bgRFC (Background RFC) to create a queue for push messages. If you don't need ERP backend access, you can implement OData services in the Hub system. The OData service must be implemented as "subscribable".


Steps to Implement


1. Import Root CA Certificate from HCPms to SAP Gateway system

2. Configure HTTP Destination to HCPms

3. Configure bgRFC

 

 

1. Import Root CA Certificate from HCPms to SAP Gateway system


As HCPms requires SSL, we need to import the Root Certificate into SAP Gateway Hub system. Open your HCPms URL in the browser (Firefox is recommended to export the Root Certificate).

6.12.png

Click on the lock icon left side of the URL. Click on More Information.

 

In the popup, select Security tab and click View Certificate.

6.14.png

Select Details and choose your root certificate. Press "Export" and save the cert file on the disk (the format doesn't really matter - choose the default PEM format).

6.15.png

In the Gateway Hub box, run the transaction code STRUST. Select "SSL client SSL Client (Anonymo" as shown.

6.16.png

Find and click the small icon for Import certificate. Select the Root Certificate file just downloaded.

6.17.png

Click on "Add to Certificate List". (If you see the button is not activated, make sure your screen is in edit mode).

6.18.png

Be sure to save the imported Root Certificate file by pressing the Save icon.

6.19.png


2. Configure HTTP Destination to HCPms


Now we're going to configure the HTTP connection between SAP Gateway Hub and HCPms. Run the transaction code SM59. Create a new entry with the Connection Type = G (HTTP connection). Type the Target Host for your HCPms instance server name with the port# 443. Enter the Path Prefix /Notification/ .


In addition to it, supply the http proxy server information so that SAP Gateway Hub can go through the proxy to the HCPms server.

6.1.png

 

Switch to the tab Logon & Security. Enter your HCPms account credential.

6.2.png

Scroll down - and select SSL = Active, SSL Certificate = ANONYM SSL CLIENT (Anonymous). This ensures the connection will use the Root Certificate you had imported.

6.3.png

After saving the configuration, press the connection test button. It should return "405 Method Not Allowed". This is the expected result.

6.4.png


3. Configure bgRFC


Let's create a bgRFC configuration. We need to do this step to create a push message queue for HCPms.

bgRFC1.png


Run the transaction code SBGRFCCONF. First thing is -


a. Define Supervisor Destination


(Note - formal help document: Configure the bgRFC Supervisor Destination - SAP NetWeaver Gateway - SAP Library)


Click on the Define Supervisor Destination tab. Here you need to define Supervisor Destination, a kind of the system user setting. Click on the Create icon and name your Supervisor Destination = BGRFC_SUPERVISOR.

6.5.png

Enter the Destination Name and select Create User with the User Name = BGRFCSUPER (actually, the name can be anything). As the formal help document states, this user needs a SAP Role "SAP_BC_BGRFC_SUPERVISOR" assigned. No password needs to be set.


Note - the User generation in this window might not work well, depends on the password policy of your system. If you find it doesn't work, create the user BGRFCSUPER via the transaction code SU01. (as a system user of type B)

6.20.png

In the transaction code SM59, now you have a RFC Destination "BGRFC_SUPERVISOR" in Connection Type 3. And the system user for bgRFC is assigned in the Logon & Security tab.

6.6.png


b. Define Inbound Destination


(Note - formal help document:Maintaining Inbound bgRFC Queue on the Hub System - SAP NetWeaver Gateway - SAP Library)


Run the transaction code SM59. Create a new RFC Destination "IWFND_ODATA_PUSH" in Connection Type 3. Supply Target Host = <the local SAP Gateway Hub server name> and its System Number.

6.7.png

Click on the Special Options tab, and scroll down to select Transfer Protocol = Classic with bgRFC. Save the config.

6.8.png

Run the transaction code SBGRFCCONF. Select the Define Inbound Dest. tab. Click on the create icon.

6.9.png

Here you enter the IWFND_ODATA_PUSH value you had created. This is going to be the name of the queue. Make sure to choose Logon/server group value too.

6.10.png

Now you had configured the bgRFC setting to create a push queue.

bgRFC1.png

What's next? Let's try the push test.

 


#7 How To... Implement End-to-End Push Notifications with HCPms and SAP Gateway


Viewing all articles
Browse latest Browse all 3363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>