Show TOC

Creating a CSR CHIPLocate this document in the navigation structure

You define and store a CSR CHIP in the back-end system.

Procedure

You create a CSR CHIP with catalog filter parameters in this example.

  1. Maintain your CHIP XML.

    A CSR CHIP is defined in an XML file that must be valid against the following schema XSD:

    http://<server>:<port>/sap/public/bc/ui2/services/sap/ui2/srvc/chipdefinition.xsd

    In the CHIP XML file, you define parameters that determine in which catalogs your CHIP is to be displayed.

    The following example shows a CHIP XML file with the following catalog filter parameters:

    • Parameter /UI2/Tag with the value HCM

    • Parameter /UI2/BusinessObject with the value Employee

    In the CHIP XML, these parameters are optional. If you want a CHIP to be displayed in a specific catalog with filter parameters, you must define these parameters with the same values as in the catalog.

                      <?xml version="1.0" encoding="UTF-8"?>
    <chip xmlns="http://schemas.sap.com/sapui2/services/Chip/1">
      <implementation>
        <sapui5>
          <viewName>sap.ui2.samples.employees.Main.view.js</viewName>
        </sapui5>
      </implementation>
      <appearance>
        <title>Employee List</title>
        <description>Description for Employee List</description>
      </appearance>
      <contracts>
        <consume id="configuration">
          <parameters>
            <parameter name="rows">5</parameter>
            <parameter name="fullRows">10</parameter>
            <parameter name="service">/sap/opu/odata/UI2/SAMPLE_EPM_EMPLOYEE_LIST/</parameter>
          </parameters>
        </consume>
        <consume id="fullscreen" />
        <consume id="navigation" />
        <consume id="refresh" />
        <consume id="url" />
      </contracts>
      <parameters>
        <parameter name="/UI2/Tag">HCM</parameter>
        <parameter name="/UI2/BusinessObject">Employee</parameter>
      </parameters>
    </chip>
                   
  2. You save the XML code in a file, for example, mychip_chip.xml, and make sure that this file is stored in the ABAP back-end system.

Result

You have created a CSR CHIP with catalog filter parameters. You can now register this CHIP in a catalog.

For more information, see Registering a CSR CHIP in a Catalog.