Class DefaultPhysicalInventoryDocumentService
- All Implemented Interfaces:
BatchService<PhysicalInventoryDocumentServiceBatch>,PhysicalInventoryDocumentService
You can count items and post differences on both document and item level. The service can be consumed by external systems..
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 |
-
Field Summary
Fields inherited from interface com.sap.cloud.sdk.s4hana.datamodel.odata.services.PhysicalInventoryDocumentService
DEFAULT_SERVICE_PATH -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a service usingPhysicalInventoryDocumentService.DEFAULT_SERVICE_PATHto send the requests. -
Method Summary
Modifier and TypeMethodDescriptionbatch()Deprecated.createPhysInventoryDocHeader(PhysInventoryDocHeader physInventoryDocHeader) Deprecated.Create a newPhysInventoryDocHeaderentity and save it to the S/4HANA system.Deprecated.Fetch multiplePhysInventoryDocHeaderentities.Deprecated.Fetch multiplePhysInventoryDocItementities.Deprecated.Fetch multipleSerialNumberPhysInventoryDocentities.getPhysInventoryDocHeaderByKey(String fiscalYear, String physicalInventoryDocument) Deprecated.Fetch a singlePhysInventoryDocHeaderentity using key fields.getPhysInventoryDocItemByKey(String fiscalYear, String physicalInventoryDocument, String physicalInventoryDocumentItem) Deprecated.Fetch a singlePhysInventoryDocItementity using key fields.getSerialNumberPhysInventoryDocByKey(String equipment, String fiscalYear, String physicalInventoryDocument, String physicalInventoryDocumentItem, String serialNumberPhysicalInvtryType) Deprecated.Fetch a singleSerialNumberPhysInventoryDocentity using key fields.initiateRecount(String physicalInventoryDocument, String fiscalYear, LocalDateTime physInventoryPlannedCountDate, LocalDateTime documentDate, String physicalInventoryNumber, String physInventoryReferenceNumber, String physicalInventoryDocumentDesc, BigDecimal postingThresholdValue, Boolean physInvtryDocHasQtySnapshot, Boolean postingIsBlockedForPhysInvtry) Deprecated.Creates a fluent helper for the InitiateRecount OData function import.initiateRecountOnItem(String physicalInventoryDocument, String fiscalYear, String physicalInventoryDocumentItem, LocalDateTime physInventoryPlannedCountDate, LocalDateTime documentDate, String physicalInventoryNumber, String physInventoryReferenceNumber, String physicalInventoryDocumentDesc, Boolean physInvtryDocHasQtySnapshot, Boolean postingIsBlockedForPhysInvtry) Deprecated.Creates a fluent helper for the InitiateRecountOnItem OData function import.postDifferences(BigDecimal postingThresholdValue, LocalDateTime postingDate, String physicalInventoryDocument, String fiscalYear) Deprecated.Creates a fluent helper for the PostDifferences OData function import.postDifferencesOnItem(String physicalInventoryDocumentItem, String material, String physicalInventoryDocument, String fiscalYear, String batch, String reasonForPhysInvtryDifference, LocalDateTime postingDate) Deprecated.Creates a fluent helper for the PostDifferencesOnItem OData function import.updatePhysInventoryDocItem(PhysInventoryDocItem physInventoryDocItem) Deprecated.Update an existingPhysInventoryDocItementity and save it to the S/4HANA system.updateSerialNumberPhysInventoryDoc(SerialNumberPhysInventoryDoc serialNumberPhysInventoryDoc) Deprecated.Update an existingSerialNumberPhysInventoryDocentity and save it to the S/4HANA system.withServicePath(String servicePath) Deprecated.Overrides the default service path and returns a new service instance with the specified service path.
-
Constructor Details
-
DefaultPhysicalInventoryDocumentService
public DefaultPhysicalInventoryDocumentService()Deprecated.Creates a service usingPhysicalInventoryDocumentService.DEFAULT_SERVICE_PATHto send the requests.
-
-
Method Details
-
withServicePath
@Nonnull public DefaultPhysicalInventoryDocumentService withServicePath(@Nonnull String servicePath) Deprecated.Description copied from interface:PhysicalInventoryDocumentServiceOverrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Specified by:
withServicePathin interfacePhysicalInventoryDocumentService- 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<PhysicalInventoryDocumentServiceBatch>
-
getAllPhysInventoryDocHeader
Deprecated.Description copied from interface:PhysicalInventoryDocumentServiceFetch multiplePhysInventoryDocHeaderentities.- Specified by:
getAllPhysInventoryDocHeaderin interfacePhysicalInventoryDocumentService- Returns:
- A fluent helper to fetch multiple
PhysInventoryDocHeaderentities. 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.
-
getPhysInventoryDocHeaderByKey
@Nonnull public PhysInventoryDocHeaderByKeyFluentHelper getPhysInventoryDocHeaderByKey(String fiscalYear, String physicalInventoryDocument) Deprecated.Description copied from interface:PhysicalInventoryDocumentServiceFetch a singlePhysInventoryDocHeaderentity using key fields.- Specified by:
getPhysInventoryDocHeaderByKeyin interfacePhysicalInventoryDocumentService- Parameters:
fiscalYear- Fiscal YearConstraints: Not nullable, Maximum length: 4
physicalInventoryDocument- Physical Inventory DocumentConstraints: Not nullable, Maximum length: 10
- Returns:
- A fluent helper to fetch a single
PhysInventoryDocHeaderentity 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.
-
createPhysInventoryDocHeader
@Nonnull public PhysInventoryDocHeaderCreateFluentHelper createPhysInventoryDocHeader(@Nonnull PhysInventoryDocHeader physInventoryDocHeader) Deprecated.Description copied from interface:PhysicalInventoryDocumentServiceCreate a newPhysInventoryDocHeaderentity and save it to the S/4HANA system.- Specified by:
createPhysInventoryDocHeaderin interfacePhysicalInventoryDocumentService- Parameters:
physInventoryDocHeader-PhysInventoryDocHeaderentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
PhysInventoryDocHeaderentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllPhysInventoryDocItem
Deprecated.Description copied from interface:PhysicalInventoryDocumentServiceFetch multiplePhysInventoryDocItementities.- Specified by:
getAllPhysInventoryDocItemin interfacePhysicalInventoryDocumentService- Returns:
- A fluent helper to fetch multiple
PhysInventoryDocItementities. 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.
-
getPhysInventoryDocItemByKey
@Nonnull public PhysInventoryDocItemByKeyFluentHelper getPhysInventoryDocItemByKey(String fiscalYear, String physicalInventoryDocument, String physicalInventoryDocumentItem) Deprecated.Description copied from interface:PhysicalInventoryDocumentServiceFetch a singlePhysInventoryDocItementity using key fields.- Specified by:
getPhysInventoryDocItemByKeyin interfacePhysicalInventoryDocumentService- Parameters:
fiscalYear- Fiscal YearConstraints: Not nullable, Maximum length: 4
physicalInventoryDocument- Physical Inventory DocumentConstraints: Not nullable, Maximum length: 10
physicalInventoryDocumentItem- Physical Inventory Item NumberConstraints: Not nullable, Maximum length: 3
- Returns:
- A fluent helper to fetch a single
PhysInventoryDocItementity 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.
-
updatePhysInventoryDocItem
@Nonnull public PhysInventoryDocItemUpdateFluentHelper updatePhysInventoryDocItem(@Nonnull PhysInventoryDocItem physInventoryDocItem) Deprecated.Description copied from interface:PhysicalInventoryDocumentServiceUpdate an existingPhysInventoryDocItementity and save it to the S/4HANA system.- Specified by:
updatePhysInventoryDocItemin interfacePhysicalInventoryDocumentService- Parameters:
physInventoryDocItem-PhysInventoryDocItementity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
PhysInventoryDocItementity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllSerialNumberPhysInventoryDoc
Deprecated.Description copied from interface:PhysicalInventoryDocumentServiceFetch multipleSerialNumberPhysInventoryDocentities.- Specified by:
getAllSerialNumberPhysInventoryDocin interfacePhysicalInventoryDocumentService- Returns:
- A fluent helper to fetch multiple
SerialNumberPhysInventoryDocentities. 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.
-
getSerialNumberPhysInventoryDocByKey
@Nonnull public SerialNumberPhysInventoryDocByKeyFluentHelper getSerialNumberPhysInventoryDocByKey(String equipment, String fiscalYear, String physicalInventoryDocument, String physicalInventoryDocumentItem, String serialNumberPhysicalInvtryType) Deprecated.Description copied from interface:PhysicalInventoryDocumentServiceFetch a singleSerialNumberPhysInventoryDocentity using key fields.- Specified by:
getSerialNumberPhysInventoryDocByKeyin interfacePhysicalInventoryDocumentService- Parameters:
equipment- Equipment NumberConstraints: Not nullable, Maximum length: 18
fiscalYear- Fiscal YearConstraints: Not nullable, Maximum length: 4
physicalInventoryDocument- Physical Inventory DocumentConstraints: Not nullable, Maximum length: 10
physicalInventoryDocumentItem- Line NumberConstraints: Not nullable, Maximum length: 3
serialNumberPhysicalInvtryType- Serial Number Physical Inventory TypeConstraints: Not nullable, Maximum length: 1
- Returns:
- A fluent helper to fetch a single
SerialNumberPhysInventoryDocentity 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.
-
updateSerialNumberPhysInventoryDoc
@Nonnull public SerialNumberPhysInventoryDocUpdateFluentHelper updateSerialNumberPhysInventoryDoc(@Nonnull SerialNumberPhysInventoryDoc serialNumberPhysInventoryDoc) Deprecated.Description copied from interface:PhysicalInventoryDocumentServiceUpdate an existingSerialNumberPhysInventoryDocentity and save it to the S/4HANA system.- Specified by:
updateSerialNumberPhysInventoryDocin interfacePhysicalInventoryDocumentService- Parameters:
serialNumberPhysInventoryDoc-SerialNumberPhysInventoryDocentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
SerialNumberPhysInventoryDocentity. To perform execution, call theexecutemethod 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:PhysicalInventoryDocumentServiceCreates a fluent helper for the PostDifferences OData function import.
- Specified by:
postDifferencesin interfacePhysicalInventoryDocumentService- Parameters:
postingThresholdValue- Threshold ValueConstraints: Nullable, Precision: 14, Scale: 3
Original parameter name from the Odata EDM: PostingThresholdValue
postingDate- Posting DateConstraints: 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 YearConstraints: 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
executemethod 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:PhysicalInventoryDocumentServiceCreates a fluent helper for the PostDifferencesOnItem OData function import.
- Specified by:
postDifferencesOnItemin interfacePhysicalInventoryDocumentService- Parameters:
physicalInventoryDocumentItem- ItemConstraints: Not nullable, Maximum length: 3
Original parameter name from the Odata EDM: PhysicalInventoryDocumentItem
material- MaterialConstraints: 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 YearConstraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: FiscalYear
batch- BatchConstraints: 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 DateConstraints: 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
executemethod 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:PhysicalInventoryDocumentServiceCreates a fluent helper for the InitiateRecount OData function import.
- Specified by:
initiateRecountin interfacePhysicalInventoryDocumentService- Parameters:
physicalInventoryDocument- Phys. Inventory Doc.Constraints: Not nullable, Maximum length: 10
Original parameter name from the Odata EDM: PhysicalInventoryDocument
fiscalYear- Fiscal YearConstraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: FiscalYear
physInventoryPlannedCountDate- Planned Count DateConstraints: Nullable, Precision: 0
Original parameter name from the Odata EDM: PhysInventoryPlannedCountDate
documentDate- Document DateConstraints: 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- DescriptionConstraints: Nullable, Maximum length: 40
Original parameter name from the Odata EDM: PhysicalInventoryDocumentDesc
postingThresholdValue- Threshold ValueConstraints: Nullable, Precision: 14, Scale: 3
Original parameter name from the Odata EDM: PostingThresholdValue
physInvtryDocHasQtySnapshot- Freeze Book InvtryConstraints: Nullable
Original parameter name from the Odata EDM: PhysInvtryDocHasQtySnapshot
postingIsBlockedForPhysInvtry- Phys. Inv. BlockConstraints: 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
executemethod 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:PhysicalInventoryDocumentServiceCreates a fluent helper for the InitiateRecountOnItem OData function import.
- Specified by:
initiateRecountOnItemin interfacePhysicalInventoryDocumentService- Parameters:
physicalInventoryDocument- Phys. Inventory Doc.Constraints: Not nullable, Maximum length: 10
Original parameter name from the Odata EDM: PhysicalInventoryDocument
fiscalYear- Fiscal YearConstraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: FiscalYear
physicalInventoryDocumentItem- ItemConstraints: Not nullable, Maximum length: 3
Original parameter name from the Odata EDM: PhysicalInventoryDocumentItem
physInventoryPlannedCountDate- Planned Count DateConstraints: Nullable, Precision: 0
Original parameter name from the Odata EDM: PhysInventoryPlannedCountDate
documentDate- Document DateConstraints: 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- DescriptionConstraints: Nullable, Maximum length: 40
Original parameter name from the Odata EDM: PhysicalInventoryDocumentDesc
physInvtryDocHasQtySnapshot- Freeze Book InvtryConstraints: Nullable
Original parameter name from the Odata EDM: PhysInvtryDocHasQtySnapshot
postingIsBlockedForPhysInvtry- Phys. Inv. BlockConstraints: 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
executemethod on the fluent helper object.
-