@Named(value="com.sap.cloud.sdk.s4hana.onpremise.v2020.datamodel.odata.services.DefaultNutrientStatementService") public class DefaultNutrientStatementService extends Object implements NutrientStatementService
This service reads which specification types are assigned to category NUTRIENT, and can retrieve exception value information from Customizing regarding the associated specification type. You can use the Nutrient - Read API to read the header data and description of nutrients. .
Reference: SAP API Business Hub
OData Service: | OP_API_NUTRIENTSTATEMENT_0001 |
API Version: | 1 |
Minimum ERP Version: | 2020 |
Authentication Methods: | Basic, x509 |
Business Object: | Nutrient |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultNutrientStatementService()
Creates a service using
NutrientStatementService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultNutrientStatementServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
NutrientStatementFluentHelper |
getAllNutrientStatement()
Fetch multiple
NutrientStatement entities. |
NutrientStatementTextFluentHelper |
getAllNutrientStatementText()
Fetch multiple
NutrientStatementText entities. |
NutrientStatementByKeyFluentHelper |
getNutrientStatementByKey(String nutrientStatement)
Fetch a single
NutrientStatement entity using key fields. |
NutrientStatementTextByKeyFluentHelper |
getNutrientStatementTextByKey(String nutrientStatement,
String language)
Fetch a single
NutrientStatementText entity using key fields. |
DefaultNutrientStatementService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultNutrientStatementService()
NutrientStatementService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultNutrientStatementService withServicePath(@Nonnull String servicePath)
NutrientStatementService
withServicePath
in interface NutrientStatementService
servicePath
- Service path that will override the default.@Nonnull public DefaultNutrientStatementServiceBatch batch()
batch
in interface BatchService<NutrientStatementServiceBatch>
@Nonnull public NutrientStatementFluentHelper getAllNutrientStatement()
NutrientStatementService
NutrientStatement
entities.getAllNutrientStatement
in interface NutrientStatementService
NutrientStatement
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 NutrientStatementByKeyFluentHelper getNutrientStatementByKey(String nutrientStatement)
NutrientStatementService
NutrientStatement
entity using key fields.getNutrientStatementByKey
in interface NutrientStatementService
nutrientStatement
- Nutrient Statement
Constraints: Not nullable, Maximum length: 2
NutrientStatement
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 NutrientStatementTextFluentHelper getAllNutrientStatementText()
NutrientStatementService
NutrientStatementText
entities.getAllNutrientStatementText
in interface NutrientStatementService
NutrientStatementText
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 NutrientStatementTextByKeyFluentHelper getNutrientStatementTextByKey(String nutrientStatement, String language)
NutrientStatementService
NutrientStatementText
entity using key fields.getNutrientStatementTextByKey
in interface NutrientStatementService
nutrientStatement
- Nutrient Statement
Constraints: Not nullable, Maximum length: 2
language
- Language Key
Constraints: Not nullable, Maximum length: 2
NutrientStatementText
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.