@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultCountryService") public class DefaultCountryService extends Object implements CountryService
This service enables you to read country master data of customers and suppliers in an API call. It is based on the OData protocol, and can be consumed in Fiori apps and on other user interfaces.
Reference: SAP API Business Hub
OData Service: | API_COUNTRY_SRV |
API Version: | 1 |
Communication Scenario: | SAP Business Objects Cloud for Planning Integration (SAP_COM_0087) |
Scope Items: | oData Integration with SAP Business Objects Cloud for Planning (1YB) |
Constructor and Description |
---|
DefaultCountryService() |
Modifier and Type | Method and Description |
---|---|
CountryFluentHelper |
getAllCountry()
Fetch multiple
Country entities. |
CountryTextFluentHelper |
getAllCountryText()
Fetch multiple
CountryText entities. |
CountryByKeyFluentHelper |
getCountryByKey(String country)
Fetch a single
Country entity using key fields. |
CountryTextByKeyFluentHelper |
getCountryTextByKey(String country,
String language)
Fetch a single
CountryText entity using key fields. |
public CountryFluentHelper getAllCountry()
CountryService
Country
entities.getAllCountry
in interface CountryService
Country
entities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call the execute
method on the fluent helper object.public CountryByKeyFluentHelper getCountryByKey(String country)
CountryService
Country
entity using key fields.getCountryByKey
in interface CountryService
country
- Here you specify the country key for the customer or vendor.Constraints: Not nullable, Maximum length: 3
Country
entity using key fields. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call the execute
method on the fluent helper object.public CountryTextFluentHelper getAllCountryText()
CountryService
CountryText
entities.getAllCountryText
in interface CountryService
CountryText
entities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call the execute
method on the fluent helper object.public CountryTextByKeyFluentHelper getCountryTextByKey(String country, String language)
CountryService
CountryText
entity using key fields.getCountryTextByKey
in interface CountryService
country
- The country key contains information which the system uses to check entries such as the length of the postal code or bank account number.Constraints: Not nullable, Maximum length: 3
language
- The language key indicatesConstraints: Not nullable, Maximum length: 2
CountryText
entity using key fields. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call the execute
method on the fluent helper object.Copyright © 2018 SAP SE. All rights reserved.