Data Export API Changelog

Find out what's new in the Data Export Service API.

Version 1.4.0

Fact Data Aggregation

The Data Export API introduces a new FactDataAggregation entitySetName that allows user to export aggregated fact data, as well as track changes to this data through the delta functionality.

To export aggregated fact data, users need to specify which dimensions and measures they want to export using the $select property, and the remaining dimensions will be aggregated.

To track the changes to these aggregations, we use the same subscriptions concept that exists in the Data Export API, with two specific EntitySetName and Selection properties, like in the following POST request:
{
    "NamespaceID": "sac",
    "ProviderID": <Provider_ID>
    "EntitySetName": FactDataAggregation",
    "Selection": "DimensionA,DimensionB,MeasureC"
}
To create a subscription via GET Request, users will make a request to the {BaseURL}/providers/sac/<ProviderID>/FactDataAggregation?$select=DimensionA,DimensionB,MeasureC endpoint, using the 'Prefer': 'odata.track-changes':
{
    "NamespaceID": "sac",
    "ProviderID": <Provider_ID>
    "EntitySetName": FactDataAggregation",
    "Selection": "DimensionA,DimensionB,MeasureC"
}

Currency Properties

The Data Export API specification available on Business Accelerator Hub has been updated to include rate properties (Currency Conversion tables) exposed in a 3-legged request:
"@des.currency_table_version": "string",
"@des.user_privilege.read": "string",
"@des.user_privilege.create": "string",
"@des.user_privilege.update": "string",
"@des.rateID": "string"

Version 1.3.2

The Data Export API now exposes the following additional properties:
  • Pagination

    • nextentity

    • nextentityorder

    • contextid

  • Custom Annotations

    • NumberOfPropertiesPerEntity

    • totalNumberOfCells

    • uncompressedResponseSizeInBytes

Version 1.3.1

The Data Export API specification available on Business Accelerator Hub has now been updated. The following changes were introduced to the EDMX file:
  • Property tags have introduced a nullable attribute with the value set to false for the following properties:

    • ProviderID

    • NamespaceID

    • SubscriptionID

  • The EntitySet annotation tags have had a new attribute added named "Term". The term values are respective of the PropertyValue contained within. They are as follows:

    • Term="Capabilities.InsertRestrictions" was added for "Insertable" property.

    • Term="Capabilities.UpdateRestrictions" was added for "Updatable" property.

    • Term="Capabilities.DeleteRestrictions" was added for "Deletable" property.

These changes were made to respect CAP project parsing of EDMX files.

Version 1.3.0

The Data Export API now allows users to create subscriptions with an entitySetName of FactDataDifference, in which records within delta subscriptions contains the difference between the old and new measure values. These subscriptions can be created either by post request, or get request.

To create a FactDataDifference subscription via POST Request, specify the entitySetName as FactDataDifference in the body when sending the request to /administration/Subscriptions, like so:
{
    "NamespaceID": "sac",
    "ProviderID": <Provider_ID>
    "EntitySetName": FactDataDifference"
}
This allows you to track changes to the model you specify in the ProviderID section.
To create a subscription via GET Request, make a request to {BaseURL}/providers/sac/<ProviderID>/FactDataDifference, with the following header:
  • Prefer: odata.track-changes

Version 1.2.1

Added new query parameter delimiter which allows users to specify a custom delimiter when requesting a CSV response. As an example, a customer can query: /providers/sac/{ModelID}/FactData?$format=text/csv&delimiter=!

This will replace the standard CSV delimiter , with !.

Version 1.2.0

The Data Export API now provides access to public dimension master data via the new sac_public_dimensions namespace.

By querying /administration/Namespaces, you will see the new namespace:
{
    "@odata.context": "{BaseURL}/administration/$metadata#Namespaces",
    "value": [
        {
            "NamespaceID": "sac",
            "Description": "SAC Namespace"
        },
        {
            "NamespaceID": "sac_currency_tables",
            "Description": "SAC Currency Tables"
        },
        {
            "NamespaceID": "sac_public_dimensions",
            "Description": "SAC Public Dimensions"
        },
        {
            "NamespaceID": "sac_unit_conversion",
            "Description": "SAC Unit Conversion"
        }
    ]
}
You can find the list of exposed Public Dimensions by querying the endpoint /administration/Namespaces(NamespaceID='sac_public_dimensions')/Providers.
{
    "@odata.context": "{BaseURL}/administration/$metadata#Providers",
    "value": [
        {
            "ProviderID": "T_C:GLaccount",
            "ProviderName": "GLaccount",
            "NamespaceID": "sac_public_dimensions",
            "Description": "GLaccount - GLaccount",
            "ServiceURL": "{BaseURL}/providers/sac_public_dimensions/T_C:GLaccount/"
        },
        {
            "ProviderID": "t.TEST:Dimension_public",
            "ProviderName": "Dimension_public",
            "NamespaceID": "sac_public_dimensions",
            "Description": "Dimension_public - Public Dimension",
            "ServiceURL": "{BaseURL}/providers/sac_public_dimensions/t.TEST:Dimension_public/"
        }
    ]
}
To get metadata such as column names and key columns for each public dimension, you can query the metadata endpoint: /providers/sac_public_dimensions/{ProviderID}/$metadata.
<?xml version="1.0" encoding="UTF-8"?>
<edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx">
    <edmx:Reference Uri="{BaseURL}/odata/Org.OData.Core.V1.xml">
        <edmx:Include Namespace="Org.OData.Core.V1" Alias="Core"></edmx:Include>
    </edmx:Reference>
    <edmx:Reference Uri="{BaseURL}/odata/Org.OData.Capabilities.V1.xml">
        <edmx:Include Namespace="Org.OData.Capabilities.V1" Alias="Capabilities"></edmx:Include>
    </edmx:Reference>
    <edmx:Reference Uri="{BaseURL}/odata/com.sap.vocabularies.DataIntegration.v1.xml">
        <edmx:Include Namespace="com.sap.vocabularies.DataIntegration.v1" Alias="Integration"></edmx:Include>
    </edmx:Reference>
    <edmx:DataServices>
        <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="com.sap.cloudDataIntegration" Alias="CloudDataIntegration">
            <EntityType Name="PublicDimensionData">
                <Key>
                    <PropertyRef Name="ID"/>
                </Key>
                <Property Name="ID" Type="Edm.String" MaxLength="256">
                    <Annotation Term="Integration.OriginalDataType">
                        <String>NVARCHAR</String>
                    </Annotation>
                    <Annotation Term="Integration.PropertyType">
                        <String>ID</String>
                    </Annotation>
                    <Annotation Term="Integration.DescriptionName">
                        <String>Member ID</String>
                    </Annotation>
                </Property>
                ...
            </EntityType>
            <EntityContainer Name="t.TEST:Dimension_public">
                <EntitySet Name="PublicDimensionData" EntityType="CloudDataIntegration.PublicDimensionData"></EntitySet>
                <Annotation Term="Integration.SourceSystem">
                    <String>DataService</String>
                </Annotation>
            </EntityContainer>
            ...
        </Schema>
    </edmx:DataServices>
</edmx:Edmx>
The public dimension data is exposed through the PublicDimensionData entity set, and you can query the entitysets available for a particular provider (Public Dimension) with the following endpoint, known as the Service Document: /providers/sac_public_dimensions/{ProviderID}/.
{
    "@odata.context": "{BaseURL}/providers/sac_public_dimensions/t.TEST%3ADimension_public/$metadata",
    "value": [
        {
            "name": "PublicDimensionData",
            "url": "PublicDimensionData"
        }
    ]
}

The endpoint to query the data is /providers/sac_public_dimensions/{ProviderID}/PublicDimensionData.

This endpoint will by default return the full dataset, however similar to other Data Export modules, you can use standard Odata query parameters such as $filter, $select, $oderby, etc.
{
    "@odata.context": "{BaseURL}/providers/sac_public_dimensions/t.TEST%3ADimension_public/$metadata#PublicDimensionData",
    "value": [
        {
            "ID": "#",
            "Property_1": "",
            "Property_2": "",
            "Property_3": "1",
            "Description": "Unassigned"
        },
        {
            "ID": "Member_1",
            "Property_1": "Value 1",
            "Property_2": "Value 1",
            "Property_3": "3",
            "Description": "Member 1"
        },
        {
            "ID": "Member_2",
            "Property_1": "Value 1",
            "Property_2": "Value 2",
            "Property_3": "2",
            "Description": "Member 2"
        },
        {
            "ID": "Member_3",
            "Property_1": "Value 2",
            "Property_2": "Value 2",
            "Property_3": "4",
            "Description": "Member 3"
        }
    ],
    "@des.entitiesInPage": "4",
    "@des.processingTimeInMilliseconds": "31075"
}

Existing descriptions have been adjusted to include Unit Conversion and Public Dimensions.

Version 1.1.0

The Data Export Service API now exposes standard unit dimension data.

Version 1.0.1

Introduced new domain for CN40 data center for Data Export API.

Version 1.0.0

Initial release.