public interface MaterialDocumentService
This service enables you to retrieve and create material documents, e.g. to post a goods receipt for a purchase order or to document the transfer of materials between two storage locations. Additionally, the service allows to cancel existing material documents or single items. It can be consumed by external systems and user interfaces.
Reference: SAP API Business Hub
OData Service: | API_MATERIAL_DOCUMENT_SRV |
API Version: | 1 |
Communication Scenario: | Material Document Integration (SAP_COM_0108) |
Scope Items: | Stock Handling - Rework, Scrap, Blocked Stock (BMC) |
Modifier and Type | Method and Description |
---|---|
CancelFluentHelper |
cancel(String materialDocumentYear,
String materialDocument,
Calendar postingDate)
Creates a fluent helper for the Cancel OData function import.
|
CancelItemFluentHelper |
cancelItem(String materialDocumentYear,
String materialDocument,
String materialDocumentItem,
Calendar postingDate)
Creates a fluent helper for the CancelItem OData function import.
|
MaterialDocumentHeaderCreateFluentHelper |
createMaterialDocumentHeader(MaterialDocumentHeader materialDocumentHeader)
Create a new
MaterialDocumentHeader entity and save it to the S/4HANA system. |
MaterialDocumentHeaderFluentHelper |
getAllMaterialDocumentHeader()
Fetch multiple
MaterialDocumentHeader entities. |
MaterialDocumentItemFluentHelper |
getAllMaterialDocumentItem()
Fetch multiple
MaterialDocumentItem entities. |
MaterialDocumentHeaderByKeyFluentHelper |
getMaterialDocumentHeaderByKey(String materialDocumentYear,
String materialDocument)
Fetch a single
MaterialDocumentHeader entity using key fields. |
MaterialDocumentItemByKeyFluentHelper |
getMaterialDocumentItemByKey(String materialDocumentYear,
String materialDocument,
String materialDocumentItem)
Fetch a single
MaterialDocumentItem entity using key fields. |
MaterialDocumentHeaderFluentHelper getAllMaterialDocumentHeader()
MaterialDocumentHeader
entities.MaterialDocumentHeader
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.MaterialDocumentHeaderByKeyFluentHelper getMaterialDocumentHeaderByKey(String materialDocumentYear, String materialDocument)
MaterialDocumentHeader
entity using key fields.materialDocument
- Alphanumeric key uniquely identifying the document.Constraints: Not nullable, Maximum length: 10
materialDocumentYear
- Material Document YearConstraints: Not nullable, Maximum length: 4
MaterialDocumentHeader
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.MaterialDocumentHeaderCreateFluentHelper createMaterialDocumentHeader(MaterialDocumentHeader materialDocumentHeader)
MaterialDocumentHeader
entity and save it to the S/4HANA system.materialDocumentHeader
- MaterialDocumentHeader
entity object that will be created in the S/4HANA system.MaterialDocumentHeader
entity. To perform execution, call the execute
method on the fluent helper object.MaterialDocumentItemFluentHelper getAllMaterialDocumentItem()
MaterialDocumentItem
entities.MaterialDocumentItem
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.MaterialDocumentItemByKeyFluentHelper getMaterialDocumentItemByKey(String materialDocumentYear, String materialDocument, String materialDocumentItem)
MaterialDocumentItem
entity using key fields.materialDocument
- Alphanumeric key uniquely identifying the document.Constraints: Not nullable, Maximum length: 10
materialDocumentItem
- Material Document ItemConstraints: Not nullable, Maximum length: 4
materialDocumentYear
- Material Document YearConstraints: Not nullable, Maximum length: 4
MaterialDocumentItem
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.CancelFluentHelper cancel(String materialDocumentYear, String materialDocument, Calendar postingDate)
Creates a fluent helper for the Cancel OData function import.
materialDocument
- Material DocumentConstraints: Not nullable, Maximum length: 10
materialDocumentYear
- Material Doc. YearConstraints: Not nullable, Maximum length: 4
postingDate
- Posting DateConstraints: Nullable, Precision: 0
execute
method on the fluent helper object.CancelItemFluentHelper cancelItem(String materialDocumentYear, String materialDocument, String materialDocumentItem, Calendar postingDate)
Creates a fluent helper for the CancelItem OData function import.
materialDocument
- Material DocumentConstraints: Not nullable, Maximum length: 10
materialDocumentItem
- Material Doc.ItemConstraints: Not nullable, Maximum length: 4
materialDocumentYear
- Material Doc. YearConstraints: Not nullable, Maximum length: 4
postingDate
- Posting DateConstraints: Nullable, Precision: 0
execute
method on the fluent helper object.Copyright © 2018 SAP SE. All rights reserved.