Class DefaultMaterialDocumentService

java.lang.Object
com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultMaterialDocumentService
All Implemented Interfaces:
BatchService<MaterialDocumentServiceBatch>, MaterialDocumentService

@Named("com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultMaterialDocumentService") @Deprecated public class DefaultMaterialDocumentService extends Object implements MaterialDocumentService
Deprecated.
The service and all its related classes are deprecated. Please use the odata generator to generate the VDM.

This service enables you to retrieve and create material documents, for example, to post a goods receipt for a purchase order or to document the transfer of materials between two storage locations. Additionally, the service allows you to cancel existing material documents or single items. It can be consumed by external systems and user interfaces..

Business Documentation

Reference: SAP Business Accelerator Hub

Details:

OData Service: API_MATERIAL_DOCUMENT_SRV
API Version: 1.2.0
Minimum ERP Version: 2302
Communication Scenario: Material Document Integration(SAP_COM_0108)
Scope Items: Core Inventory Management(BMC), Core Inventory Management(OMC)
Authentication Methods: x509
Business Object: Material Document
  • Constructor Details

  • Method Details

    • withServicePath

      @Nonnull public DefaultMaterialDocumentService withServicePath(@Nonnull String servicePath)
      Deprecated.
      Description copied from interface: MaterialDocumentService
      Overrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.
      Specified by:
      withServicePath in interface MaterialDocumentService
      Parameters:
      servicePath - Service path that will override the default.
      Returns:
      A new service instance with the specified service path.
    • batch

      @Nonnull public DefaultMaterialDocumentServiceBatch batch()
      Deprecated.
      Specified by:
      batch in interface BatchService<MaterialDocumentServiceBatch>
    • getAllMaterialDocumentHeader

      @Nonnull public MaterialDocumentHeaderFluentHelper getAllMaterialDocumentHeader()
      Deprecated.
      Description copied from interface: MaterialDocumentService
      Fetch multiple MaterialDocumentHeader entities.
      Specified by:
      getAllMaterialDocumentHeader in interface MaterialDocumentService
      Returns:
      A fluent helper to fetch multiple 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.
    • getMaterialDocumentHeaderByKey

      @Nonnull public MaterialDocumentHeaderByKeyFluentHelper getMaterialDocumentHeaderByKey(String materialDocumentYear, String materialDocument)
      Deprecated.
      Description copied from interface: MaterialDocumentService
      Fetch a single MaterialDocumentHeader entity using key fields.
      Specified by:
      getMaterialDocumentHeaderByKey in interface MaterialDocumentService
      Parameters:
      materialDocumentYear - Material Document Year

      Constraints: Not nullable, Maximum length: 4

      materialDocument - Number of Material Document

      Constraints: Not nullable, Maximum length: 10

      Returns:
      A fluent helper to fetch a single 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.
    • createMaterialDocumentHeader

      @Nonnull public MaterialDocumentHeaderCreateFluentHelper createMaterialDocumentHeader(@Nonnull MaterialDocumentHeader materialDocumentHeader)
      Deprecated.
      Description copied from interface: MaterialDocumentService
      Create a new MaterialDocumentHeader entity and save it to the S/4HANA system.
      Specified by:
      createMaterialDocumentHeader in interface MaterialDocumentService
      Parameters:
      materialDocumentHeader - MaterialDocumentHeader entity object that will be created in the S/4HANA system.
      Returns:
      A fluent helper to create a new MaterialDocumentHeader entity. To perform execution, call the execute method on the fluent helper object.
    • getAllMaterialDocumentItem

      @Nonnull public MaterialDocumentItemFluentHelper getAllMaterialDocumentItem()
      Deprecated.
      Description copied from interface: MaterialDocumentService
      Fetch multiple MaterialDocumentItem entities.
      Specified by:
      getAllMaterialDocumentItem in interface MaterialDocumentService
      Returns:
      A fluent helper to fetch multiple 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.
    • getMaterialDocumentItemByKey

      @Nonnull public MaterialDocumentItemByKeyFluentHelper getMaterialDocumentItemByKey(String materialDocumentYear, String materialDocument, String materialDocumentItem)
      Deprecated.
      Description copied from interface: MaterialDocumentService
      Fetch a single MaterialDocumentItem entity using key fields.
      Specified by:
      getMaterialDocumentItemByKey in interface MaterialDocumentService
      Parameters:
      materialDocumentYear - Material Document Year

      Constraints: Not nullable, Maximum length: 4

      materialDocument - Number of Material Document

      Constraints: Not nullable, Maximum length: 10

      materialDocumentItem - Material Document Item

      Constraints: Not nullable, Maximum length: 4

      Returns:
      A fluent helper to fetch a single 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.
    • getAllSerialNumberMaterialDocument

      @Nonnull public SerialNumberMaterialDocumentFluentHelper getAllSerialNumberMaterialDocument()
      Deprecated.
      Description copied from interface: MaterialDocumentService
      Fetch multiple SerialNumberMaterialDocument entities.
      Specified by:
      getAllSerialNumberMaterialDocument in interface MaterialDocumentService
      Returns:
      A fluent helper to fetch multiple SerialNumberMaterialDocument 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.
    • getSerialNumberMaterialDocumentByKey

      @Nonnull public SerialNumberMaterialDocumentByKeyFluentHelper getSerialNumberMaterialDocumentByKey(String material, String serialNumber, String materialDocument, String materialDocumentItem, String materialDocumentYear)
      Deprecated.
      Description copied from interface: MaterialDocumentService
      Fetch a single SerialNumberMaterialDocument entity using key fields.
      Specified by:
      getSerialNumberMaterialDocumentByKey in interface MaterialDocumentService
      Parameters:
      material - Material Number

      Constraints: Not nullable, Maximum length: 40

      serialNumber - Serial Number

      Constraints: Not nullable, Maximum length: 18

      materialDocument - Number of Material Document

      Constraints: Not nullable, Maximum length: 10

      materialDocumentItem - Material Document Item

      Constraints: Not nullable, Maximum length: 4

      materialDocumentYear - Material Document Year

      Constraints: Not nullable, Maximum length: 4

      Returns:
      A fluent helper to fetch a single SerialNumberMaterialDocument 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.
    • cancel

      @Nonnull public CancelFluentHelper cancel(@Nonnull String materialDocumentYear, @Nonnull String materialDocument, @Nullable LocalDateTime postingDate)
      Deprecated.
      Description copied from interface: MaterialDocumentService

      Creates a fluent helper for the Cancel OData function import.

      Specified by:
      cancel in interface MaterialDocumentService
      Parameters:
      materialDocumentYear - Material Doc. Year

      Constraints: Not nullable, Maximum length: 4

      Original parameter name from the Odata EDM: MaterialDocumentYear

      materialDocument - Material Document

      Constraints: Not nullable, Maximum length: 10

      Original parameter name from the Odata EDM: MaterialDocument

      postingDate - Posting Date

      Constraints: Nullable, Precision: 0

      Original parameter name from the Odata EDM: PostingDate

      Returns:
      A fluent helper object that will execute the Cancel OData function import with the provided parameters. To perform execution, call the execute method on the fluent helper object.
    • cancelItem

      @Nonnull public CancelItemFluentHelper cancelItem(@Nonnull String materialDocumentYear, @Nonnull String materialDocument, @Nonnull String materialDocumentItem, @Nullable LocalDateTime postingDate)
      Deprecated.
      Description copied from interface: MaterialDocumentService

      Creates a fluent helper for the CancelItem OData function import.

      Specified by:
      cancelItem in interface MaterialDocumentService
      Parameters:
      materialDocumentYear - Material Doc. Year

      Constraints: Not nullable, Maximum length: 4

      Original parameter name from the Odata EDM: MaterialDocumentYear

      materialDocument - Material Document

      Constraints: Not nullable, Maximum length: 10

      Original parameter name from the Odata EDM: MaterialDocument

      materialDocumentItem - Material Doc.Item

      Constraints: Not nullable, Maximum length: 4

      Original parameter name from the Odata EDM: MaterialDocumentItem

      postingDate - Posting Date

      Constraints: Nullable, Precision: 0

      Original parameter name from the Odata EDM: PostingDate

      Returns:
      A fluent helper object that will execute the CancelItem OData function import with the provided parameters. To perform execution, call the execute method on the fluent helper object.