@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultBusinessAreaService") public class DefaultBusinessAreaService extends Object implements BusinessAreaService
This service enables you to read business area master data 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_BUSINESSAREA_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) |
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 © 2019 SAP SE. All rights reserved.