Class DefaultBatchService
- All Implemented Interfaces:
BatchService<BatchServiceBatch>,BatchService
This synchronous inbound API enables you to read, create and change batches. Additionally, it is possible to retrieve and to edit the related classification data. The service is based on the OData protocol, and can be consumed by external systems and user interfaces. .
Reference: SAP Business Accelerator Hub
Details:
| OData Service: | API_BATCH_SRV |
| API Version: | 1.1.1 |
| Minimum ERP Version: | 2302 |
| Communication Scenario: | Batch Management OData Integration(SAP_COM_0337), Excise Tax Integration(SAP_COM_0568) |
| Scope Items: | Batch Management(BLF), Enablement of SAP Excise Tax Management(4LO) |
| Authentication Methods: | x509 |
| Business Object: | Batch |
-
Field Summary
Fields inherited from interface com.sap.cloud.sdk.s4hana.datamodel.odata.services.BatchService
DEFAULT_SERVICE_PATH -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a service usingBatchService.DEFAULT_SERVICE_PATHto send the requests. -
Method Summary
Modifier and TypeMethodDescriptionbatch()Deprecated.createBatch(Batch batch) Deprecated.Create a newBatchentity and save it to the S/4HANA system.createBatchCharc(BatchCharc batchCharc) Deprecated.Create a newBatchCharcentity and save it to the S/4HANA system.createBatchCharcValue(BatchCharcValue batchCharcValue) Deprecated.Create a newBatchCharcValueentity and save it to the S/4HANA system.createBatchClass(BatchClass batchClass) Deprecated.Create a newBatchClassentity and save it to the S/4HANA system.deleteBatchCharcValue(BatchCharcValue batchCharcValue) Deprecated.Deletes an existingBatchCharcValueentity in the S/4HANA system.deleteBatchClass(BatchClass batchClass) Deprecated.Deletes an existingBatchClassentity in the S/4HANA system.deleteBatchText(BatchText batchText) Deprecated.Deletes an existingBatchTextentity in the S/4HANA system.Deprecated.Fetch multipleBatchentities.Deprecated.Fetch multipleBatchCharcentities.Deprecated.Fetch multipleBatchCharcValueentities.Deprecated.Fetch multipleBatchClassentities.Deprecated.Fetch multipleBatchPlantentities.Deprecated.Fetch multipleBatchTextentities.getBatchByKey(String material, String batchIdentifyingPlant, String batch) Deprecated.Fetch a singleBatchentity using key fields.getBatchCharcByKey(String material, String batchIdentifyingPlant, String batch, String charcInternalID) Deprecated.Fetch a singleBatchCharcentity using key fields.getBatchCharcValueByKey(String material, String batchIdentifyingPlant, String batch, String charcInternalID, String charcValuePositionNumber) Deprecated.Fetch a singleBatchCharcValueentity using key fields.getBatchClassByKey(String material, String batchIdentifyingPlant, String batch) Deprecated.Fetch a singleBatchClassentity using key fields.getBatchPlantByKey(String material, String batch, String plant) Deprecated.Fetch a singleBatchPlantentity using key fields.getBatchTextByKey(String material, String batchIdentifyingPlant, String batch, String language) Deprecated.Fetch a singleBatchTextentity using key fields.updateBatch(Batch batch) Deprecated.Update an existingBatchentity and save it to the S/4HANA system.updateBatchCharcValue(BatchCharcValue batchCharcValue) Deprecated.Update an existingBatchCharcValueentity and save it to the S/4HANA system.updateBatchPlant(BatchPlant batchPlant) Deprecated.Update an existingBatchPlantentity and save it to the S/4HANA system.updateBatchText(BatchText batchText) Deprecated.Update an existingBatchTextentity and save it to the S/4HANA system.withServicePath(String servicePath) Deprecated.Overrides the default service path and returns a new service instance with the specified service path.
-
Constructor Details
-
DefaultBatchService
public DefaultBatchService()Deprecated.Creates a service usingBatchService.DEFAULT_SERVICE_PATHto send the requests.
-
-
Method Details
-
withServicePath
Deprecated.Description copied from interface:BatchServiceOverrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Specified by:
withServicePathin interfaceBatchService- Parameters:
servicePath- Service path that will override the default.- Returns:
- A new service instance with the specified service path.
-
batch
Deprecated.- Specified by:
batchin interfaceBatchService<BatchServiceBatch>
-
getAllBatch
Deprecated.Description copied from interface:BatchServiceFetch multipleBatchentities.- Specified by:
getAllBatchin interfaceBatchService- Returns:
- A fluent helper to fetch multiple
Batchentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getBatchByKey
@Nonnull public BatchByKeyFluentHelper getBatchByKey(String material, String batchIdentifyingPlant, String batch) Deprecated.Description copied from interface:BatchServiceFetch a singleBatchentity using key fields.- Specified by:
getBatchByKeyin interfaceBatchService- Parameters:
material- Material NumberConstraints: Not nullable, Maximum length: 18
batchIdentifyingPlant- PlantConstraints: Not nullable, Maximum length: 4
batch- Batch NumberConstraints: Not nullable, Maximum length: 10
- Returns:
- A fluent helper to fetch a single
Batchentity 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 theexecutemethod on the fluent helper object.
-
createBatch
Deprecated.Description copied from interface:BatchServiceCreate a newBatchentity and save it to the S/4HANA system.- Specified by:
createBatchin interfaceBatchService- Parameters:
batch-Batchentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
Batchentity. To perform execution, call theexecutemethod on the fluent helper object.
-
updateBatch
Deprecated.Description copied from interface:BatchServiceUpdate an existingBatchentity and save it to the S/4HANA system.- Specified by:
updateBatchin interfaceBatchService- Parameters:
batch-Batchentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
Batchentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllBatchCharc
Deprecated.Description copied from interface:BatchServiceFetch multipleBatchCharcentities.- Specified by:
getAllBatchCharcin interfaceBatchService- Returns:
- A fluent helper to fetch multiple
BatchCharcentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getBatchCharcByKey
@Nonnull public BatchCharcByKeyFluentHelper getBatchCharcByKey(String material, String batchIdentifyingPlant, String batch, String charcInternalID) Deprecated.Description copied from interface:BatchServiceFetch a singleBatchCharcentity using key fields.- Specified by:
getBatchCharcByKeyin interfaceBatchService- Parameters:
material- Material NumberConstraints: Not nullable, Maximum length: 18
batchIdentifyingPlant- PlantConstraints: Not nullable, Maximum length: 4
batch- Batch NumberConstraints: Not nullable, Maximum length: 10
charcInternalID- Characteristic Internal IDConstraints: Not nullable, Maximum length: 10
- Returns:
- A fluent helper to fetch a single
BatchCharcentity 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 theexecutemethod on the fluent helper object.
-
createBatchCharc
Deprecated.Description copied from interface:BatchServiceCreate a newBatchCharcentity and save it to the S/4HANA system.- Specified by:
createBatchCharcin interfaceBatchService- Parameters:
batchCharc-BatchCharcentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
BatchCharcentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllBatchCharcValue
Deprecated.Description copied from interface:BatchServiceFetch multipleBatchCharcValueentities.- Specified by:
getAllBatchCharcValuein interfaceBatchService- Returns:
- A fluent helper to fetch multiple
BatchCharcValueentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getBatchCharcValueByKey
@Nonnull public BatchCharcValueByKeyFluentHelper getBatchCharcValueByKey(String material, String batchIdentifyingPlant, String batch, String charcInternalID, String charcValuePositionNumber) Deprecated.Description copied from interface:BatchServiceFetch a singleBatchCharcValueentity using key fields.- Specified by:
getBatchCharcValueByKeyin interfaceBatchService- Parameters:
material- Material NumberConstraints: Not nullable, Maximum length: 18
batchIdentifyingPlant- PlantConstraints: Not nullable, Maximum length: 4
batch- Batch NumberConstraints: Not nullable, Maximum length: 10
charcInternalID- Characteristic Internal IDConstraints: Not nullable, Maximum length: 10
charcValuePositionNumber- Characteristic value counterConstraints: Not nullable, Maximum length: 3
- Returns:
- A fluent helper to fetch a single
BatchCharcValueentity 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 theexecutemethod on the fluent helper object.
-
createBatchCharcValue
@Nonnull public BatchCharcValueCreateFluentHelper createBatchCharcValue(@Nonnull BatchCharcValue batchCharcValue) Deprecated.Description copied from interface:BatchServiceCreate a newBatchCharcValueentity and save it to the S/4HANA system.- Specified by:
createBatchCharcValuein interfaceBatchService- Parameters:
batchCharcValue-BatchCharcValueentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
BatchCharcValueentity. To perform execution, call theexecutemethod on the fluent helper object.
-
updateBatchCharcValue
@Nonnull public BatchCharcValueUpdateFluentHelper updateBatchCharcValue(@Nonnull BatchCharcValue batchCharcValue) Deprecated.Description copied from interface:BatchServiceUpdate an existingBatchCharcValueentity and save it to the S/4HANA system.- Specified by:
updateBatchCharcValuein interfaceBatchService- Parameters:
batchCharcValue-BatchCharcValueentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
BatchCharcValueentity. To perform execution, call theexecutemethod on the fluent helper object.
-
deleteBatchCharcValue
@Nonnull public BatchCharcValueDeleteFluentHelper deleteBatchCharcValue(@Nonnull BatchCharcValue batchCharcValue) Deprecated.Description copied from interface:BatchServiceDeletes an existingBatchCharcValueentity in the S/4HANA system.- Specified by:
deleteBatchCharcValuein interfaceBatchService- Parameters:
batchCharcValue-BatchCharcValueentity object that will be deleted in the S/4HANA system.- Returns:
- A fluent helper to delete an existing
BatchCharcValueentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllBatchClass
Deprecated.Description copied from interface:BatchServiceFetch multipleBatchClassentities.- Specified by:
getAllBatchClassin interfaceBatchService- Returns:
- A fluent helper to fetch multiple
BatchClassentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getBatchClassByKey
@Nonnull public BatchClassByKeyFluentHelper getBatchClassByKey(String material, String batchIdentifyingPlant, String batch) Deprecated.Description copied from interface:BatchServiceFetch a singleBatchClassentity using key fields.- Specified by:
getBatchClassByKeyin interfaceBatchService- Parameters:
material- Material NumberConstraints: Not nullable, Maximum length: 18
batchIdentifyingPlant- PlantConstraints: Not nullable, Maximum length: 4
batch- Batch NumberConstraints: Not nullable, Maximum length: 10
- Returns:
- A fluent helper to fetch a single
BatchClassentity 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 theexecutemethod on the fluent helper object.
-
createBatchClass
Deprecated.Description copied from interface:BatchServiceCreate a newBatchClassentity and save it to the S/4HANA system.- Specified by:
createBatchClassin interfaceBatchService- Parameters:
batchClass-BatchClassentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
BatchClassentity. To perform execution, call theexecutemethod on the fluent helper object.
-
deleteBatchClass
Deprecated.Description copied from interface:BatchServiceDeletes an existingBatchClassentity in the S/4HANA system.- Specified by:
deleteBatchClassin interfaceBatchService- Parameters:
batchClass-BatchClassentity object that will be deleted in the S/4HANA system.- Returns:
- A fluent helper to delete an existing
BatchClassentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllBatchPlant
Deprecated.Description copied from interface:BatchServiceFetch multipleBatchPlantentities.- Specified by:
getAllBatchPlantin interfaceBatchService- Returns:
- A fluent helper to fetch multiple
BatchPlantentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getBatchPlantByKey
@Nonnull public BatchPlantByKeyFluentHelper getBatchPlantByKey(String material, String batch, String plant) Deprecated.Description copied from interface:BatchServiceFetch a singleBatchPlantentity using key fields.- Specified by:
getBatchPlantByKeyin interfaceBatchService- Parameters:
material- Material NumberConstraints: Not nullable, Maximum length: 18
batch- Batch NumberConstraints: Not nullable, Maximum length: 10
plant- PlantConstraints: Not nullable, Maximum length: 4
- Returns:
- A fluent helper to fetch a single
BatchPlantentity 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 theexecutemethod on the fluent helper object.
-
updateBatchPlant
Deprecated.Description copied from interface:BatchServiceUpdate an existingBatchPlantentity and save it to the S/4HANA system.- Specified by:
updateBatchPlantin interfaceBatchService- Parameters:
batchPlant-BatchPlantentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
BatchPlantentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllBatchText
Deprecated.Description copied from interface:BatchServiceFetch multipleBatchTextentities.- Specified by:
getAllBatchTextin interfaceBatchService- Returns:
- A fluent helper to fetch multiple
BatchTextentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getBatchTextByKey
@Nonnull public BatchTextByKeyFluentHelper getBatchTextByKey(String material, String batchIdentifyingPlant, String batch, String language) Deprecated.Description copied from interface:BatchServiceFetch a singleBatchTextentity using key fields.- Specified by:
getBatchTextByKeyin interfaceBatchService- Parameters:
material- Material NumberConstraints: Not nullable, Maximum length: 18
batchIdentifyingPlant- PlantConstraints: Not nullable, Maximum length: 4
batch- Batch NumberConstraints: Not nullable, Maximum length: 10
language- Language KeyConstraints: Not nullable, Maximum length: 2
- Returns:
- A fluent helper to fetch a single
BatchTextentity 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 theexecutemethod on the fluent helper object.
-
updateBatchText
Deprecated.Description copied from interface:BatchServiceUpdate an existingBatchTextentity and save it to the S/4HANA system.- Specified by:
updateBatchTextin interfaceBatchService- Parameters:
batchText-BatchTextentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
BatchTextentity. To perform execution, call theexecutemethod on the fluent helper object.
-
deleteBatchText
Deprecated.Description copied from interface:BatchServiceDeletes an existingBatchTextentity in the S/4HANA system.- Specified by:
deleteBatchTextin interfaceBatchService- Parameters:
batchText-BatchTextentity object that will be deleted in the S/4HANA system.- Returns:
- A fluent helper to delete an existing
BatchTextentity. To perform execution, call theexecutemethod on the fluent helper object.
-