Class DefaultReservationDocumentService
- All Implemented Interfaces:
BatchService<ReservationDocumentServiceBatch>,ReservationDocumentService
For example, a user might create a reservation for a material with some quantity and assign that reserved material to a cost center, a sales order or an asset. A reservation can also be created for a transfer posting from one plant to another. For an existing reservation, you can change the updatable fields of the items. The service also allows to delete existing reservation documents. It can be consumed by external systems and user interfaces..
Reference: SAP Business Accelerator Hub
Details:
| OData Service: | API_RESERVATION_DOCUMENT_SRV |
| API Version: | 1.0.0 |
| Minimum ERP Version: | 2302 |
| Communication Scenario: | Reservation Integration(SAP_COM_0112) |
| Scope Items: | Core Inventory Management(BMC), Core Inventory Management(OMC) |
| Authentication Methods: | x509 |
| Business Object: | Reservation Document |
-
Field Summary
Fields inherited from interface com.sap.cloud.sdk.s4hana.datamodel.odata.services.ReservationDocumentService
DEFAULT_SERVICE_PATH -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a service usingReservationDocumentService.DEFAULT_SERVICE_PATHto send the requests. -
Method Summary
Modifier and TypeMethodDescriptionbatch()Deprecated.createReservationDocumentHeader(ReservationDocumentHeader reservationDocumentHeader) Deprecated.Create a newReservationDocumentHeaderentity and save it to the S/4HANA system.deleteReservationDocumentHeader(ReservationDocumentHeader reservationDocumentHeader) Deprecated.Deletes an existingReservationDocumentHeaderentity in the S/4HANA system.Deprecated.Fetch multipleReservationDocumentHeaderentities.Deprecated.Fetch multipleReservationDocumentItementities.getReservationDocumentHeaderByKey(String reservation) Deprecated.Fetch a singleReservationDocumentHeaderentity using key fields.getReservationDocumentItemByKey(String reservation, String reservationItem, String recordType) Deprecated.Fetch a singleReservationDocumentItementity using key fields.withServicePath(String servicePath) Deprecated.Overrides the default service path and returns a new service instance with the specified service path.
-
Constructor Details
-
DefaultReservationDocumentService
public DefaultReservationDocumentService()Deprecated.Creates a service usingReservationDocumentService.DEFAULT_SERVICE_PATHto send the requests.
-
-
Method Details
-
withServicePath
Deprecated.Description copied from interface:ReservationDocumentServiceOverrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Specified by:
withServicePathin interfaceReservationDocumentService- 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<ReservationDocumentServiceBatch>
-
getAllReservationDocumentHeader
Deprecated.Description copied from interface:ReservationDocumentServiceFetch multipleReservationDocumentHeaderentities.- Specified by:
getAllReservationDocumentHeaderin interfaceReservationDocumentService- Returns:
- A fluent helper to fetch multiple
ReservationDocumentHeaderentities. 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.
-
getReservationDocumentHeaderByKey
@Nonnull public ReservationDocumentHeaderByKeyFluentHelper getReservationDocumentHeaderByKey(String reservation) Deprecated.Description copied from interface:ReservationDocumentServiceFetch a singleReservationDocumentHeaderentity using key fields.- Specified by:
getReservationDocumentHeaderByKeyin interfaceReservationDocumentService- Parameters:
reservation- Number of reservation/dependent requirementsConstraints: Not nullable, Maximum length: 10
- Returns:
- A fluent helper to fetch a single
ReservationDocumentHeaderentity 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.
-
createReservationDocumentHeader
@Nonnull public ReservationDocumentHeaderCreateFluentHelper createReservationDocumentHeader(@Nonnull ReservationDocumentHeader reservationDocumentHeader) Deprecated.Description copied from interface:ReservationDocumentServiceCreate a newReservationDocumentHeaderentity and save it to the S/4HANA system.- Specified by:
createReservationDocumentHeaderin interfaceReservationDocumentService- Parameters:
reservationDocumentHeader-ReservationDocumentHeaderentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
ReservationDocumentHeaderentity. To perform execution, call theexecutemethod on the fluent helper object.
-
deleteReservationDocumentHeader
@Nonnull public ReservationDocumentHeaderDeleteFluentHelper deleteReservationDocumentHeader(@Nonnull ReservationDocumentHeader reservationDocumentHeader) Deprecated.Description copied from interface:ReservationDocumentServiceDeletes an existingReservationDocumentHeaderentity in the S/4HANA system.- Specified by:
deleteReservationDocumentHeaderin interfaceReservationDocumentService- Parameters:
reservationDocumentHeader-ReservationDocumentHeaderentity object that will be deleted in the S/4HANA system.- Returns:
- A fluent helper to delete an existing
ReservationDocumentHeaderentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllReservationDocumentItem
Deprecated.Description copied from interface:ReservationDocumentServiceFetch multipleReservationDocumentItementities.- Specified by:
getAllReservationDocumentItemin interfaceReservationDocumentService- Returns:
- A fluent helper to fetch multiple
ReservationDocumentItementities. 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.
-
getReservationDocumentItemByKey
@Nonnull public ReservationDocumentItemByKeyFluentHelper getReservationDocumentItemByKey(String reservation, String reservationItem, String recordType) Deprecated.Description copied from interface:ReservationDocumentServiceFetch a singleReservationDocumentItementity using key fields.- Specified by:
getReservationDocumentItemByKeyin interfaceReservationDocumentService- Parameters:
reservation- Number of reservation/dependent requirementsConstraints: Not nullable, Maximum length: 10
reservationItem- Item Number of Reservation / Dependent RequirementsConstraints: Not nullable, Maximum length: 4
recordType- Record typeConstraints: Not nullable, Maximum length: 1
- Returns:
- A fluent helper to fetch a single
ReservationDocumentItementity 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.
-