public interface SegmentService extends BatchService<SegmentServiceBatch>
The service enables you to retrieve segment master data. It contains a header and nodes with business information. You can read segments and their names in the respective language..
Reference: SAP API Business Hub
OData Service: | OP_API_SEGMENT_SRV |
API Version: | 1 |
Minimum ERP Version: | 2020 |
Authentication Methods: | Basic, x509 |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SERVICE_PATH
If no other path was provided via the
withServicePath(String) method, this is the default service path
used to access the endpoint. |
Modifier and Type | Method and Description |
---|---|
SegmentFluentHelper |
getAllSegment()
Fetch multiple
Segment entities. |
SegmentTextFluentHelper |
getAllSegmentText()
Fetch multiple
SegmentText entities. |
SegmentByKeyFluentHelper |
getSegmentByKey(String segment)
Fetch a single
Segment entity using key fields. |
SegmentTextByKeyFluentHelper |
getSegmentTextByKey(String language,
String segment)
Fetch a single
SegmentText entity using key fields. |
SegmentService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
batch
static final String DEFAULT_SERVICE_PATH
withServicePath(String)
method, this is the default service path
used to access the endpoint.@Nonnull SegmentService withServicePath(@Nonnull String servicePath)
servicePath
- Service path that will override the default.@Nonnull SegmentFluentHelper getAllSegment()
Segment
entities.@Nonnull SegmentByKeyFluentHelper getSegmentByKey(String segment)
Segment
entity using key fields.segment
- Segment for Segmental Reporting
Constraints: Not nullable, Maximum length: 10
Segment
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 SegmentTextFluentHelper getAllSegmentText()
SegmentText
entities.SegmentText
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 SegmentTextByKeyFluentHelper getSegmentTextByKey(String language, String segment)
SegmentText
entity using key fields.segment
- Segment for Segmental Reporting
Constraints: Not nullable, Maximum length: 10
language
- Language Key
Constraints: Not nullable, Maximum length: 2
SegmentText
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.