@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultReservationDocumentService") public class DefaultReservationDocumentService extends Object implements 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. The service also allows to delete existing reservation documents. It can be consumed by external systems and user interfaces..
Reference: SAP API Business Hub
OData Service: | API_RESERVATION_DOCUMENT_SRV |
API Version: | 1 |
Communication Scenario: | Reservation Integration (SAP_COM_0112) |
Scope Items: | Core Inventory Management (BMC) |
Authentication Methods: | Basic, x509 |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultReservationDocumentService()
Creates a service using
ReservationDocumentService.DEFAULT_SERVICE_PATH to send the requests. |
public DefaultReservationDocumentService()
ReservationDocumentService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultReservationDocumentService withServicePath(@Nonnull String servicePath)
ReservationDocumentService
withServicePath
in interface ReservationDocumentService
servicePath
- Service path that will override the default.@Nonnull public DefaultReservationDocumentServiceBatch batch()
batch
in interface BatchService<ReservationDocumentServiceBatch>
@Nonnull public ReservationDocumentHeaderFluentHelper getAllReservationDocumentHeader()
ReservationDocumentService
ReservationDocumentHeader
entities.getAllReservationDocumentHeader
in interface ReservationDocumentService
ReservationDocumentHeader
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 ReservationDocumentHeaderByKeyFluentHelper getReservationDocumentHeaderByKey(String reservation)
ReservationDocumentService
ReservationDocumentHeader
entity using key fields.getReservationDocumentHeaderByKey
in interface ReservationDocumentService
reservation
- Alphanumeric key uniquely identifying the document.
Constraints: Not nullable, Maximum length: 10
ReservationDocumentHeader
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 ReservationDocumentHeaderCreateFluentHelper createReservationDocumentHeader(@Nonnull ReservationDocumentHeader reservationDocumentHeader)
ReservationDocumentService
ReservationDocumentHeader
entity and save it to the S/4HANA system.createReservationDocumentHeader
in interface ReservationDocumentService
reservationDocumentHeader
- ReservationDocumentHeader
entity object that will be created in the S/4HANA system.ReservationDocumentHeader
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public ReservationDocumentHeaderDeleteFluentHelper deleteReservationDocumentHeader(@Nonnull ReservationDocumentHeader reservationDocumentHeader)
ReservationDocumentService
ReservationDocumentHeader
entity in the S/4HANA system.deleteReservationDocumentHeader
in interface ReservationDocumentService
reservationDocumentHeader
- ReservationDocumentHeader
entity object that will be deleted in the S/4HANA system.ReservationDocumentHeader
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public ReservationDocumentItemFluentHelper getAllReservationDocumentItem()
ReservationDocumentService
ReservationDocumentItem
entities.getAllReservationDocumentItem
in interface ReservationDocumentService
ReservationDocumentItem
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 ReservationDocumentItemByKeyFluentHelper getReservationDocumentItemByKey(String reservation, String reservationItem, String recordType)
ReservationDocumentService
ReservationDocumentItem
entity using key fields.getReservationDocumentItemByKey
in interface ReservationDocumentService
reservation
- Alphanumeric key uniquely identifying the document.
Constraints: Not nullable, Maximum length: 10
reservationItem
- Specifies the number that uniquely identifies an item in .
Constraints: Not nullable, Maximum length: 4
recordType
- Record type
Constraints: Not nullable, Maximum length: 1
ReservationDocumentItem
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 © 2020 SAP SE. All rights reserved.