sapfscmintegrationfacades Extension

The sapfscmintegrationfacades extension enables the integration with SAP Claims Management in SAP S/4HANA (FS-CM).

About the Extension

Name

Directory

Related Module

sapfscmintegrationfacades

<HYBRIS_BIN_DIR>/modules/financial-services-accelerator

Integration API Module

The sapfscmintegrationfacades is used primarily for outbound API calls to SAP Claims Management (FS-CM). The extension is available in financial_spa_integrations and financial_sap_integrations_old recipes.

Dependencies and Architecture

The sapfscmintegrationfacades extension depends on financialintegrationservices and financialfacades extensions.

FSCMClaimSubmitFacade

The FSCMClaimSubmitFacade overrides the FSClaimSubmitFacade that is used in non-integrated scenarios. The FSCMClaimSubmitFacade sends the claim data to SAP Claims Management and sets the claim status and claim number in accordance with the response received from the target system (FS-CM). It also creates a claim handler if the data is received.

In case the SAP Cloud Integration layer fails to accept and send the claim request to a back-end system (e.g. no response from SAP Cloud Integration, network timeout, bad request, etc.), the claim goes to ERROR status. Such a claim cannot be resubmitted, but a user can delete it from UI by clicking on the trash can icon.

The FS-CM system can either approve the claim request or reject it. In case of the approval, a claim status is changed to PROCESSING, a claim is created in the FS-CM system, and is ready to be processed by a claim handler. However, if a claim request is incorrect or invalid in FS-CM due to various reasons, such as invalid conditions, invalid coverage, policy lapsed, missing data, etc., a claim request is rejected by FS-CM as invalid, and the information about the rejection is sent back to Financial Services Accelerator. The claim has not been created in FS-CM, so a user can resubmit the claim that is in a REJECTED status.

Note that when the claim request is in the ERROR or REJECTED status, a default claim handler is added and displayed on UI.

FSCMClaimRequestDecorator

The FSCMClaimRequestDecorator handles decorating payload of the integration object.

To make the claim data suitable for the corresponding endpoint on FS-CM side, the following items are placed to the root of the integration object payload: incidentType, productCode, contractId and name of damaged object.

The basic credentials for accessing FS-CM are given for demonstration purposes and should be replaced in the implementation project. For more information, see Establishing Communication with SAP Claims Management.

FSCMClaimResponseData

The FSCMClaimResponseData contains:
  • claimNumber (an external claim number retrieved from FS-CM)
  • requestId (an internal claim number from SAP Commerce)
  • contractId
  • incidentType
  • productCode
  • dateOfLoss
  • claimHandler and its related data:
    • claimHandlerFirstName
    • claimHandlerLastName
    • claimHandlerPhone
    • claimHandlerEmail
  • claimStatus
  • messageStatus
  • errorMessage

Changes to the Data Model

To enable the integration with SAP Claims Management in SAP S/4HANA, the data model has been enriched with the following item types: The FSDamagedObject, FSDamagedObjectItem and FSLocationOfLoss. In addition to these new item types, the FSClaim object has been extended with two new attributes: timeOfLoss and causeOfLoss. These new attributes are highlighted in the following class diagram.

Class Diagram

A damaged object can be, for example, a person, a car, a piece of furniture or valuables inside a house. In the sample implementation in Financial Services Accelerator, the damaged object is the same as the insured object. However, this may or may not be the case in your custom implementation. The available data model provides the means to make this distinction.

Each damaged object is described through a series of attributes, which represent in the data model damaged object items (FSDamagedObjectItem). Each damaged object item is defined with a key-value pair. In the example integration with SAP Claims Management, a damaged object is a car and a vehicle's license number, make, model, and value represent damaged object items. These values are taken over from the auto policy.

The time and cause of loss, as well as the loss location are collected from yForms during the FNOL checkout process. These are step 1 (Incident Information) and step 2 (Incident Report), as can be seen from the following screenshots.

FNOL Step 1 - Incident Information
FNOL Step 2 - Incident Report

Configuration

Basic Configuration

The sapfscmintegrationfacades is available when you install Financial Services Accelerator with financial_sap_integrations_old recipe. To enable the extension to work, import the following ImpEx file through Administration Console. Before importing, make sure that you put your FS-CM tenant URL instead of the <your_FS-CM_instance>.
INSERT_UPDATE OAuthClientDetails; clientId[unique = true]; oAuthUrl; scope
; fsaconnectivity ; <oauthservice>
    
INSERT_UPDATE ExposedOAuthCredential; id[unique = true] ; oAuthClientDetails(clientId); password
; scpi-OauthCredential ; fsaconnectivity ; <password>
                      
INSERT_UPDATE Endpoint; id[unique = true]; version[unique = true]; name ; specUrl
; fscm-endpoint ; unknown ; fscm-endpoint ; "https://<your_FS-CM_tenant>/gw/odata/SAP/SAPCOMMERCE;v=1/C_InsurClm1stNotifTPTypeSet"
                                              
INSERT_UPDATE DestinationTarget; id[unique = true]
; fscmintegration
                          
INSERT_UPDATE ConsumedDestination[impex.legacy.mode=true]; id[unique = true] ; url ; endpoint(id, version); credential(id) ; destinationTarget(id)[default = fscmintegration]; additionalProperties(key, value)[map-delimiter = |]
; FS-CM-platform ; "https://<your_FS-CM_tenant>/gw/odata/SAP/SAP_HYBRIS_FNOL;v=1/C_InsurClm1stNotifTPTypeSet" ; fscm-endpoint:unknown ; scpi-OauthCredential ;; "csrfURL->https://<your_FS-CM_tenant>/gw/odata/SAP/SAPCOMMERCE;v=1"

Advanced Configuration

To set different claim statuses than those available out of the box, you can modify the FSCMClaimSubmitFacade. For different payload, modify the FSCMClaimRequestDecorator in financialstore extension. The integration objects are entitled , as well as the claim integration objects provided in the claim-inbound.impex and claim-outbound.impex. Additionally, the bean modifyPopulatorList is added that removes the integration key from the payload.

Third Party Compatibility

To enable the full integration with SAP Claims Management, you need to perform additional configuration steps that can be found in the integration package SAP Commerce, financial services accelerator integration with SAP Claims Management in SAP S/4HANA available at SAP Business Hub.

API

There is no API documentation available.