@Named(value="com.sap.cloud.sdk.s4hana.onpremise.v2020.datamodel.odata.services.DefaultPureSubstanceService") public class DefaultPureSubstanceService extends Object implements PureSubstanceService
This service reads data from specifications with category pure substance, and can retrieve pure substance header data and description. You can use the Pure Substance Component Type - Read API to read pure substance component types. .
Reference: SAP API Business Hub
OData Service: | OP_API_PURESUBSTANCE_0001 |
API Version: | 1 |
Minimum ERP Version: | 2020 |
Authentication Methods: | Basic, x509 |
Business Object: | Recipe Pure Substance |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultPureSubstanceService()
Creates a service using
PureSubstanceService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultPureSubstanceServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
PureSubstanceFluentHelper |
getAllPureSubstance()
Fetch multiple
PureSubstance entities. |
PureSubstanceDescriptionFluentHelper |
getAllPureSubstanceDescription()
Fetch multiple
PureSubstanceDescription entities. |
PureSubstanceByKeyFluentHelper |
getPureSubstanceByKey(String pureSubstanceInternalID)
Fetch a single
PureSubstance entity using key fields. |
PureSubstanceDescriptionByKeyFluentHelper |
getPureSubstanceDescriptionByKey(String pureSubstanceInternalID,
String pureSubstanceDescriptionLang)
Fetch a single
PureSubstanceDescription entity using key fields. |
DefaultPureSubstanceService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultPureSubstanceService()
PureSubstanceService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultPureSubstanceService withServicePath(@Nonnull String servicePath)
PureSubstanceService
withServicePath
in interface PureSubstanceService
servicePath
- Service path that will override the default.@Nonnull public DefaultPureSubstanceServiceBatch batch()
batch
in interface BatchService<PureSubstanceServiceBatch>
@Nonnull public PureSubstanceFluentHelper getAllPureSubstance()
PureSubstanceService
PureSubstance
entities.getAllPureSubstance
in interface PureSubstanceService
PureSubstance
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 PureSubstanceByKeyFluentHelper getPureSubstanceByKey(String pureSubstanceInternalID)
PureSubstanceService
PureSubstance
entity using key fields.getPureSubstanceByKey
in interface PureSubstanceService
pureSubstanceInternalID
- Pure Substance Internal ID
Constraints: Not nullable, Maximum length: 20
PureSubstance
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 PureSubstanceDescriptionFluentHelper getAllPureSubstanceDescription()
PureSubstanceService
PureSubstanceDescription
entities.getAllPureSubstanceDescription
in interface PureSubstanceService
PureSubstanceDescription
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 PureSubstanceDescriptionByKeyFluentHelper getPureSubstanceDescriptionByKey(String pureSubstanceInternalID, String pureSubstanceDescriptionLang)
PureSubstanceService
PureSubstanceDescription
entity using key fields.getPureSubstanceDescriptionByKey
in interface PureSubstanceService
pureSubstanceInternalID
- Sequential Number of Data Record
Constraints: Not nullable, Maximum length: 20
pureSubstanceDescriptionLang
- Language
Constraints: Not nullable, Maximum length: 2
PureSubstanceDescription
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.