Class DefaultPhysicalInventoryDocumentService

java.lang.Object
com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultPhysicalInventoryDocumentService
All Implemented Interfaces:
BatchService<PhysicalInventoryDocumentServiceBatch>, PhysicalInventoryDocumentService

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

You can count items and post differences on both document and item level. The service can be consumed by external systems..

Business Documentation

Reference: SAP Business Accelerator Hub

Details:

OData Service: API_PHYSICAL_INVENTORY_DOC_SRV
API Version: 1.0.0
Minimum ERP Version: 2302
Communication Scenario: Physical Inventory Document Integration(SAP_COM_0107)
Scope Items: Physical Inventory - Inventory Count and Adjustment(BML), Physical Inventory - Inventory Count and Adjustment(OML)
Authentication Methods: x509
Business Object: Physical Inventory Document
  • Constructor Details

  • Method Details

    • withServicePath

      @Nonnull public DefaultPhysicalInventoryDocumentService withServicePath(@Nonnull String servicePath)
      Deprecated.
      Description copied from interface: PhysicalInventoryDocumentService
      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 PhysicalInventoryDocumentService
      Parameters:
      servicePath - Service path that will override the default.
      Returns:
      A new service instance with the specified service path.
    • batch

      Deprecated.
      Specified by:
      batch in interface BatchService<PhysicalInventoryDocumentServiceBatch>
    • getAllPhysInventoryDocHeader

      @Nonnull public PhysInventoryDocHeaderFluentHelper getAllPhysInventoryDocHeader()
      Deprecated.
      Description copied from interface: PhysicalInventoryDocumentService
      Fetch multiple PhysInventoryDocHeader entities.
      Specified by:
      getAllPhysInventoryDocHeader in interface PhysicalInventoryDocumentService
      Returns:
      A fluent helper to fetch multiple PhysInventoryDocHeader 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.
    • getPhysInventoryDocHeaderByKey

      @Nonnull public PhysInventoryDocHeaderByKeyFluentHelper getPhysInventoryDocHeaderByKey(String fiscalYear, String physicalInventoryDocument)
      Deprecated.
      Description copied from interface: PhysicalInventoryDocumentService
      Fetch a single PhysInventoryDocHeader entity using key fields.
      Specified by:
      getPhysInventoryDocHeaderByKey in interface PhysicalInventoryDocumentService
      Parameters:
      fiscalYear - Fiscal Year

      Constraints: Not nullable, Maximum length: 4

      physicalInventoryDocument - Physical Inventory Document

      Constraints: Not nullable, Maximum length: 10

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

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

      @Nonnull public PhysInventoryDocItemFluentHelper getAllPhysInventoryDocItem()
      Deprecated.
      Description copied from interface: PhysicalInventoryDocumentService
      Fetch multiple PhysInventoryDocItem entities.
      Specified by:
      getAllPhysInventoryDocItem in interface PhysicalInventoryDocumentService
      Returns:
      A fluent helper to fetch multiple PhysInventoryDocItem 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.
    • getPhysInventoryDocItemByKey

      @Nonnull public PhysInventoryDocItemByKeyFluentHelper getPhysInventoryDocItemByKey(String fiscalYear, String physicalInventoryDocument, String physicalInventoryDocumentItem)
      Deprecated.
      Description copied from interface: PhysicalInventoryDocumentService
      Fetch a single PhysInventoryDocItem entity using key fields.
      Specified by:
      getPhysInventoryDocItemByKey in interface PhysicalInventoryDocumentService
      Parameters:
      fiscalYear - Fiscal Year

      Constraints: Not nullable, Maximum length: 4

      physicalInventoryDocument - Physical Inventory Document

      Constraints: Not nullable, Maximum length: 10

      physicalInventoryDocumentItem - Physical Inventory Item Number

      Constraints: Not nullable, Maximum length: 3

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

      @Nonnull public PhysInventoryDocItemUpdateFluentHelper updatePhysInventoryDocItem(@Nonnull PhysInventoryDocItem physInventoryDocItem)
      Deprecated.
      Description copied from interface: PhysicalInventoryDocumentService
      Update an existing PhysInventoryDocItem entity and save it to the S/4HANA system.
      Specified by:
      updatePhysInventoryDocItem in interface PhysicalInventoryDocumentService
      Parameters:
      physInventoryDocItem - PhysInventoryDocItem entity object that will be updated in the S/4HANA system.
      Returns:
      A fluent helper to update an existing PhysInventoryDocItem entity. To perform execution, call the execute method on the fluent helper object.
    • getAllSerialNumberPhysInventoryDoc

      @Nonnull public SerialNumberPhysInventoryDocFluentHelper getAllSerialNumberPhysInventoryDoc()
      Deprecated.
      Description copied from interface: PhysicalInventoryDocumentService
      Fetch multiple SerialNumberPhysInventoryDoc entities.
      Specified by:
      getAllSerialNumberPhysInventoryDoc in interface PhysicalInventoryDocumentService
      Returns:
      A fluent helper to fetch multiple SerialNumberPhysInventoryDoc 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.
    • getSerialNumberPhysInventoryDocByKey

      @Nonnull public SerialNumberPhysInventoryDocByKeyFluentHelper getSerialNumberPhysInventoryDocByKey(String equipment, String fiscalYear, String physicalInventoryDocument, String physicalInventoryDocumentItem, String serialNumberPhysicalInvtryType)
      Deprecated.
      Description copied from interface: PhysicalInventoryDocumentService
      Fetch a single SerialNumberPhysInventoryDoc entity using key fields.
      Specified by:
      getSerialNumberPhysInventoryDocByKey in interface PhysicalInventoryDocumentService
      Parameters:
      equipment - Equipment Number

      Constraints: Not nullable, Maximum length: 18

      fiscalYear - Fiscal Year

      Constraints: Not nullable, Maximum length: 4

      physicalInventoryDocument - Physical Inventory Document

      Constraints: Not nullable, Maximum length: 10

      physicalInventoryDocumentItem - Line Number

      Constraints: Not nullable, Maximum length: 3

      serialNumberPhysicalInvtryType - Serial Number Physical Inventory Type

      Constraints: Not nullable, Maximum length: 1

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

      @Nonnull public SerialNumberPhysInventoryDocUpdateFluentHelper updateSerialNumberPhysInventoryDoc(@Nonnull SerialNumberPhysInventoryDoc serialNumberPhysInventoryDoc)
      Deprecated.
      Description copied from interface: PhysicalInventoryDocumentService
      Update an existing SerialNumberPhysInventoryDoc entity and save it to the S/4HANA system.
      Specified by:
      updateSerialNumberPhysInventoryDoc in interface PhysicalInventoryDocumentService
      Parameters:
      serialNumberPhysInventoryDoc - SerialNumberPhysInventoryDoc entity object that will be updated in the S/4HANA system.
      Returns:
      A fluent helper to update an existing SerialNumberPhysInventoryDoc entity. To perform execution, call the execute method on the fluent helper object.
    • postDifferences

      @Nonnull public PostDifferencesFluentHelper postDifferences(@Nullable BigDecimal postingThresholdValue, @Nullable LocalDateTime postingDate, @Nonnull String physicalInventoryDocument, @Nonnull String fiscalYear)
      Deprecated.
      Description copied from interface: PhysicalInventoryDocumentService

      Creates a fluent helper for the PostDifferences OData function import.

      Specified by:
      postDifferences in interface PhysicalInventoryDocumentService
      Parameters:
      postingThresholdValue - Threshold Value

      Constraints: Nullable, Precision: 14, Scale: 3

      Original parameter name from the Odata EDM: PostingThresholdValue

      postingDate - Posting Date

      Constraints: Nullable, Precision: 0

      Original parameter name from the Odata EDM: PostingDate

      physicalInventoryDocument - Phys. Inventory Doc.

      Constraints: Not nullable, Maximum length: 10

      Original parameter name from the Odata EDM: PhysicalInventoryDocument

      fiscalYear - Fiscal Year

      Constraints: Not nullable, Maximum length: 4

      Original parameter name from the Odata EDM: FiscalYear

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

      @Nonnull public PostDifferencesOnItemFluentHelper postDifferencesOnItem(@Nonnull String physicalInventoryDocumentItem, @Nonnull String material, @Nonnull String physicalInventoryDocument, @Nonnull String fiscalYear, @Nullable String batch, @Nullable String reasonForPhysInvtryDifference, @Nullable LocalDateTime postingDate)
      Deprecated.
      Description copied from interface: PhysicalInventoryDocumentService

      Creates a fluent helper for the PostDifferencesOnItem OData function import.

      Specified by:
      postDifferencesOnItem in interface PhysicalInventoryDocumentService
      Parameters:
      physicalInventoryDocumentItem - Item

      Constraints: Not nullable, Maximum length: 3

      Original parameter name from the Odata EDM: PhysicalInventoryDocumentItem

      material - Material

      Constraints: Not nullable, Maximum length: 40

      Original parameter name from the Odata EDM: Material

      physicalInventoryDocument - Phys. Inventory Doc.

      Constraints: Not nullable, Maximum length: 10

      Original parameter name from the Odata EDM: PhysicalInventoryDocument

      fiscalYear - Fiscal Year

      Constraints: Not nullable, Maximum length: 4

      Original parameter name from the Odata EDM: FiscalYear

      batch - Batch

      Constraints: Nullable, Maximum length: 10

      Original parameter name from the Odata EDM: Batch

      reasonForPhysInvtryDifference - Reason f. Diff.

      Constraints: Nullable, Maximum length: 4

      Original parameter name from the Odata EDM: ReasonForPhysInvtryDifference

      postingDate - Posting Date

      Constraints: Nullable, Precision: 0

      Original parameter name from the Odata EDM: PostingDate

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

      @Nonnull public InitiateRecountFluentHelper initiateRecount(@Nonnull String physicalInventoryDocument, @Nonnull String fiscalYear, @Nullable LocalDateTime physInventoryPlannedCountDate, @Nullable LocalDateTime documentDate, @Nullable String physicalInventoryNumber, @Nullable String physInventoryReferenceNumber, @Nullable String physicalInventoryDocumentDesc, @Nullable BigDecimal postingThresholdValue, @Nullable Boolean physInvtryDocHasQtySnapshot, @Nullable Boolean postingIsBlockedForPhysInvtry)
      Deprecated.
      Description copied from interface: PhysicalInventoryDocumentService

      Creates a fluent helper for the InitiateRecount OData function import.

      Specified by:
      initiateRecount in interface PhysicalInventoryDocumentService
      Parameters:
      physicalInventoryDocument - Phys. Inventory Doc.

      Constraints: Not nullable, Maximum length: 10

      Original parameter name from the Odata EDM: PhysicalInventoryDocument

      fiscalYear - Fiscal Year

      Constraints: Not nullable, Maximum length: 4

      Original parameter name from the Odata EDM: FiscalYear

      physInventoryPlannedCountDate - Planned Count Date

      Constraints: Nullable, Precision: 0

      Original parameter name from the Odata EDM: PhysInventoryPlannedCountDate

      documentDate - Document Date

      Constraints: Nullable, Precision: 0

      Original parameter name from the Odata EDM: DocumentDate

      physicalInventoryNumber - Phys. inventory no.

      Constraints: Nullable, Maximum length: 16

      Original parameter name from the Odata EDM: PhysicalInventoryNumber

      physInventoryReferenceNumber - Phys. inventory ref.

      Constraints: Nullable, Maximum length: 16

      Original parameter name from the Odata EDM: PhysInventoryReferenceNumber

      physicalInventoryDocumentDesc - Description

      Constraints: Nullable, Maximum length: 40

      Original parameter name from the Odata EDM: PhysicalInventoryDocumentDesc

      postingThresholdValue - Threshold Value

      Constraints: Nullable, Precision: 14, Scale: 3

      Original parameter name from the Odata EDM: PostingThresholdValue

      physInvtryDocHasQtySnapshot - Freeze Book Invtry

      Constraints: Nullable

      Original parameter name from the Odata EDM: PhysInvtryDocHasQtySnapshot

      postingIsBlockedForPhysInvtry - Phys. Inv. Block

      Constraints: Nullable

      Original parameter name from the Odata EDM: PostingIsBlockedForPhysInvtry

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

      @Nonnull public InitiateRecountOnItemFluentHelper initiateRecountOnItem(@Nonnull String physicalInventoryDocument, @Nonnull String fiscalYear, @Nonnull String physicalInventoryDocumentItem, @Nullable LocalDateTime physInventoryPlannedCountDate, @Nullable LocalDateTime documentDate, @Nullable String physicalInventoryNumber, @Nullable String physInventoryReferenceNumber, @Nullable String physicalInventoryDocumentDesc, @Nullable Boolean physInvtryDocHasQtySnapshot, @Nullable Boolean postingIsBlockedForPhysInvtry)
      Deprecated.
      Description copied from interface: PhysicalInventoryDocumentService

      Creates a fluent helper for the InitiateRecountOnItem OData function import.

      Specified by:
      initiateRecountOnItem in interface PhysicalInventoryDocumentService
      Parameters:
      physicalInventoryDocument - Phys. Inventory Doc.

      Constraints: Not nullable, Maximum length: 10

      Original parameter name from the Odata EDM: PhysicalInventoryDocument

      fiscalYear - Fiscal Year

      Constraints: Not nullable, Maximum length: 4

      Original parameter name from the Odata EDM: FiscalYear

      physicalInventoryDocumentItem - Item

      Constraints: Not nullable, Maximum length: 3

      Original parameter name from the Odata EDM: PhysicalInventoryDocumentItem

      physInventoryPlannedCountDate - Planned Count Date

      Constraints: Nullable, Precision: 0

      Original parameter name from the Odata EDM: PhysInventoryPlannedCountDate

      documentDate - Document Date

      Constraints: Nullable, Precision: 0

      Original parameter name from the Odata EDM: DocumentDate

      physicalInventoryNumber - Phys. inventory no.

      Constraints: Nullable, Maximum length: 16

      Original parameter name from the Odata EDM: PhysicalInventoryNumber

      physInventoryReferenceNumber - Phys. inventory ref.

      Constraints: Nullable, Maximum length: 16

      Original parameter name from the Odata EDM: PhysInventoryReferenceNumber

      physicalInventoryDocumentDesc - Description

      Constraints: Nullable, Maximum length: 40

      Original parameter name from the Odata EDM: PhysicalInventoryDocumentDesc

      physInvtryDocHasQtySnapshot - Freeze Book Invtry

      Constraints: Nullable

      Original parameter name from the Odata EDM: PhysInvtryDocHasQtySnapshot

      postingIsBlockedForPhysInvtry - Phys. Inv. Block

      Constraints: Nullable

      Original parameter name from the Odata EDM: PostingIsBlockedForPhysInvtry

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