@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultBusinessAreaService") public class DefaultBusinessAreaService extends Object implements BusinessAreaService
The service enables you to retrieve business areas and their names in the respective language..
Reference: SAP API Business Hub
OData Service: | API_BUSINESSAREA_SRV |
API Version: | 1 |
Communication Scenario: | SAP Analytics Cloud for Planning Integration (SAP_COM_0087), Finance - Cloud Consolidation Data Collection Integration (SAP_COM_0241) |
Scope Items: | Import Connection setup with SAP Analytics Cloud (1YB), Group Reporting - Data from SAP Group Reporting Data Collection (287) |
Authentication Methods: | Basic, x509, OAuth2 |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultBusinessAreaService()
Creates a service using
BusinessAreaService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultBusinessAreaServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
BusinessAreaFluentHelper |
getAllBusinessArea()
Fetch multiple
BusinessArea
entities. |
BusinessAreaTextFluentHelper |
getAllBusinessAreaText()
Fetch multiple
BusinessAreaText entities. |
BusinessAreaByKeyFluentHelper |
getBusinessAreaByKey(String businessArea)
Fetch a single
BusinessArea
entity using key fields. |
BusinessAreaTextByKeyFluentHelper |
getBusinessAreaTextByKey(String businessArea,
String language)
Fetch a single
BusinessAreaText entity using key fields. |
DefaultBusinessAreaService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultBusinessAreaService()
BusinessAreaService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultBusinessAreaService withServicePath(@Nonnull String servicePath)
BusinessAreaService
withServicePath
in interface BusinessAreaService
servicePath
- Service path that will override the default.@Nonnull public DefaultBusinessAreaServiceBatch batch()
batch
in interface BatchService<BusinessAreaServiceBatch>
@Nonnull public BusinessAreaFluentHelper getAllBusinessArea()
BusinessAreaService
BusinessArea
entities.getAllBusinessArea
in interface BusinessAreaService
BusinessArea
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.@Nonnull public BusinessAreaByKeyFluentHelper getBusinessAreaByKey(String businessArea)
BusinessAreaService
BusinessArea
entity using key fields.getBusinessAreaByKey
in interface BusinessAreaService
businessArea
- Key that uniquely identifies a business area.
Constraints: Not nullable, Maximum length: 4
BusinessArea
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.@Nonnull public BusinessAreaTextFluentHelper getAllBusinessAreaText()
BusinessAreaService
BusinessAreaText
entities.getAllBusinessAreaText
in interface BusinessAreaService
BusinessAreaText
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.@Nonnull public BusinessAreaTextByKeyFluentHelper getBusinessAreaTextByKey(String businessArea, String language)
BusinessAreaService
BusinessAreaText
entity using key fields.getBusinessAreaTextByKey
in interface BusinessAreaService
businessArea
- Key that uniquely identifies a business area.
Constraints: Not nullable, Maximum length: 4
language
- The language key indicates
Constraints: Not nullable, Maximum length: 2
BusinessAreaText
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 © 2021 SAP SE. All rights reserved.