SAP Hybris - 1.0

Extension ID

What’s new?

Please see SAP Hybris - 1.0 - Release Notes  for more information.

In what situation should you install this extension?

If your application source code uses the SAP Hybris framework you should install this extension.

This extension provides support for the Hybris framework (java package com.hybris.ymkt.common.http). The analysis of your JEE application will be enriched with modelling of the HTTP API created with Spring MVC. This will allow the resolution of transactions starting in a client application which uses these API (web app for instance) to be traced into the backend application.

  • The extension creates Hybris HttpRequest services which represent end-points of transactions when they are not connected to an operation on an ABAP server side (analyzed by the ABAP analyzer).
  • JEE is acting here as the client of an ABAP server.

Application configuration

In an xml file present in a “resources” folder, we have beans with property name equal to “oDataService”. The extension will focus on these particular beans, for example:

<beans xmlns=""
    <bean id="bookingDetailsODataService" parent="oDataServiceCRM">
        <property name="rootUrl" value="#{configurationService.configuration.getProperty('')}" />
    <bean id="bookingODataService"
        class="" parent="AbstractODataService">
        <property name="oDataService" ref="bookingDetailsODataService" />
        <property name="modelService" ref="modelService"/>

In this xml file, we can see that the “bookingODataService” bean has “oDataService” property ref equal to “bookingDetailsODataService” which corresponds to another bean whose “rootUrl” property is


We can also see that this bean is connected to the “” java class. This url will be the root url of http services that the extension will create for the class “”. This root url is defined through a property which can be found in a “” file - note that the “${CRM_ODATA_URL}” part will be removed from url:


Application analysis

The extension will take into account the following Java code:

import com.hybris.ymkt.common.http.HttpURLConnectionRequest;
import com.hybris.ymkt.common.http.HttpURLConnectionResponse;
public class BookingODataServiceImpl extends AbstractODataService implements BookingODataService
    public String createBookingServiceRequest(final CsTicketModel csTicketModel)
            throws IOException, EdmException, EntityProviderException
        final URL url = getoDataService().createURL(companyodataConstants.BOOKING_HEADERSET);
        final HttpURLConnectionRequest request = new HttpURLConnectionRequest(companyodataConstants.HTTP_METHOD_POST,

The extension focuses on “createUrl” and “HttpURLConnectionRequest” in order to create http resources. The “url” variable is evaluated and the url root (mentioned previously) is added to it as a prefix.

Below is an example of what is obtained after an analysis. The “Hybris Post Http Request service” has been created by the extension with the call link from the java method to the request service. The part on the right is created by the ABAP analyzer, and the link between the Hybris object and the ABAP operation is created by the web service linker:

Function Point, Quality and Sizing support

This extension provides the following support:

  • Function Points (transactions): a green tick indicates that OMG Function Point counting and Transaction Risk Index are supported
  • Quality and Sizing: a green tick indicates that CAST can measure size and that a minimum set of Quality Rules exist
Function Points
Quality and Sizing
(tick) (error)

CAST AIP compatibility

This extension is compatible with:

CAST AIP release Supported
8.3.x (tick)

Dependencies with other extensions

Some CAST extensions require the presence of other CAST extensions in order to function correctly. The SAP Hybris extension requires that the following other CAST extensions are also installed:

CAST Transaction Configuration Center (TCC) setup

If you are using the extension with CAST AIP ≥ 8.3.x, a SAP Hybris specific setup is automatically imported when the extension is installed. Various SAP Hybris specific Entry points, End Points, Data Entities and Excluded Items will be added

What results can you expect?


The following objects are displayed in CAST Enlighten:

Icon Description

HYBRIS Get HttpRequest service

HYBRIS Post HttpRequest service

HYBRIS Put HttpRequest service

HYBRIS Delete HttpRequest service


Get, Post, Put and Delete HttpRequestService objects are transaction end-points except if they are calling an external object (an object belonging to a server: ABAP operation in this case).