@Named(value="com.sap.cloud.sdk.s4hana.onpremise.v2020.datamodel.odata.services.DefaultSalesOrganizationService") public class DefaultSalesOrganizationService extends Object implements SalesOrganizationService
It contains sales organization and sales organization text nodes. This service 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: | OP_API_SALESORGANIZATION_SRV_0001 |
API Version: | 1 |
Minimum ERP Version: | 2020 |
Authentication Methods: | Basic, x509 |
Business Object: | Sales Organization |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultSalesOrganizationService()
Creates a service using
SalesOrganizationService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultSalesOrganizationServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
SalesOrganizationFluentHelper |
getAllSalesOrganization()
Fetch multiple
SalesOrganization entities. |
SalesOrganizationTextFluentHelper |
getAllSalesOrganizationText()
Fetch multiple
SalesOrganizationText entities. |
SalesOrganizationByKeyFluentHelper |
getSalesOrganizationByKey(String salesOrganization)
Fetch a single
SalesOrganization entity using key fields. |
SalesOrganizationTextByKeyFluentHelper |
getSalesOrganizationTextByKey(String salesOrganization,
String language)
Fetch a single
SalesOrganizationText entity using key fields. |
DefaultSalesOrganizationService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultSalesOrganizationService()
SalesOrganizationService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultSalesOrganizationService withServicePath(@Nonnull String servicePath)
SalesOrganizationService
withServicePath
in interface SalesOrganizationService
servicePath
- Service path that will override the default.@Nonnull public DefaultSalesOrganizationServiceBatch batch()
batch
in interface BatchService<SalesOrganizationServiceBatch>
@Nonnull public SalesOrganizationFluentHelper getAllSalesOrganization()
SalesOrganizationService
SalesOrganization
entities.getAllSalesOrganization
in interface SalesOrganizationService
SalesOrganization
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 SalesOrganizationByKeyFluentHelper getSalesOrganizationByKey(String salesOrganization)
SalesOrganizationService
SalesOrganization
entity using key fields.getSalesOrganizationByKey
in interface SalesOrganizationService
salesOrganization
- Sales Organization
Constraints: Not nullable, Maximum length: 4
SalesOrganization
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 SalesOrganizationTextFluentHelper getAllSalesOrganizationText()
SalesOrganizationService
SalesOrganizationText
entities.getAllSalesOrganizationText
in interface SalesOrganizationService
SalesOrganizationText
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 SalesOrganizationTextByKeyFluentHelper getSalesOrganizationTextByKey(String salesOrganization, String language)
SalesOrganizationService
SalesOrganizationText
entity using key fields.getSalesOrganizationTextByKey
in interface SalesOrganizationService
salesOrganization
- Sales Organization
Constraints: Not nullable, Maximum length: 4
language
- Language Key
Constraints: Not nullable, Maximum length: 2
SalesOrganizationText
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.