Value Helps

Describes the value help services available for SAP IoT.

For SAP IoT, a number of generic services are available that provide lists of predefined values that can be used for various purposes within the platform, especially for the sake of providing value helps from which a user can pick the desired value. The following value help services are currently available:

  • Countries
  • Regions
  • Languages
  • Units of Measure
  • Academic Titles
  • Forms of Address

The following applies for all value help services:

  • Each value entry is organized as a pair of an internal technical key and a descriptive value name in natural language. For the language, the system uses the following approach:
    1. Only languages that are explicitly mentioned in the relevant whitelist for the Cloud Foundry environment can be displayed, regardless of all other preconditions.
    2. If a value help service is called by an application running in a web browser, the system presents the value names in the language that has been defined in the browser settings.
    3. You can explicitly specify the desired language by adding an Accept-Language header parameter to the service call.
    4. If the browser language isn’t available for a value help, or if a value help service is called by a backend application (that is, no web browser involved), the system falls back to English as the default language.

    The four ways of language determination are given with descending priority. That is, the system first checks the whitelist, then tries to deliver the required data according to the browser settings, then tries to fulfill the Accept-Language header, and finally (if all fails) falls back to English.

  • The values contained in all value help services are offered in read-only mode. There is no way of modifying single values or extending the list of values.
  • From a technical point of view, all value help services consist of a single HTTP GET method and return a collection of values. Picking a single value from the lists is only possible by applying a filter that restricts the service response to a single list entry.
  • All value help services are available throughout the entire system. That is, there’s no tenant dependency for accessing these services.
  • The value help services are called without parameters except for sorting and filtering. The only exception is the Regions service, which requires a country code as a parameter in order to restrict the list of regions returned to that country.
  • None of the value help services do take any payload data in the HTTP request.

Base URI:

  • Formal description: http://<server address>[:<port number>][/path]/<value help service>

  • Example for a base URI in a cloud foundry environment: http://business-partner.cfapps.neo.ondemand.com/<value help service>
Permissions: <bp>.r, <bp>.vh.r

Methods

HTTP Method URI
GET /Countries
GET /Regions('<countryCode>')
GET /Languages
GET

/UnitsOfMeasure

/UnitsOfMeasure('<UoM>')

GET /AcademicTitles
GET /FormOfAddresses

The predefined unit of measure values are available in the Thing Modeler app. You can choose one of the predefined values when you define the properties of a property set.

Request

URI: /<value help service>

HTTP Method: GET

Permissions:

<bp>.r (Country, Region, Language, Academic Title, Form Of Address)

<bp>.vh.r (only Units of Measure)

Query String Parameters

Name Required Data Type Description
$skip No integer Number of the first n records to be excluded from the result set
$top No integer Number of records to include in the result set
$orderby No string Field name to be used for sorting the result set in ascending or descending order; for valid fields of the different value help services, see the table below.
$filter No string Filter condition to be applied; for valid fields of the different value help services, see the table below.
Valid Fields for Sorting and Filtering Value Help Result Lists
Value Help Valid Fields
Country isoCode
Region

countryIsoCode

regionCode

Language isoCode
Unit of Measure

unitOfMeasure

noDecimalForRounding

unitOfMeasureDimension

numeratorForConversion

denominatorForConversion

baseTenExponentForConversion

numberOfDecimalPlaces

unitOfMeasureISOCode

isPrimaryUnitForISOCodeConversion

additiveConstantForConversion

baseTenExponentFloatDsip

Academic Title academicTitleCode
Form of Address formOfAddressCode

Request Example

/Regions('DE')

Retrieves all regions that are defined for the Federal Republic of Germany.

/Languages?$top=25&$orderby=isoCode

Retrieves the first 25 languages, sorted by the language ISO code.

Response

Response Status and Error Codes

Code Description
200 Value list retrieved successfully