@Named(value="com.sap.cloud.sdk.s4hana.onpremise.v2020.datamodel.odata.services.DefaultBusinessAreaService") public class DefaultBusinessAreaService extends Object implements BusinessAreaService
The service enables you to retrieve business area master data. It contains a header and nodes with business information. You can read business areas and their names in the respective language..
Reference: SAP API Business Hub
OData Service: | OP_API_BUSINESSAREA_SRV |
API Version: | 1 |
Minimum ERP Version: | 2020 |
Authentication Methods: | Basic, x509 |
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
- 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
- Business Area
Constraints: Not nullable, Maximum length: 4
language
- Language Key
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.