Interface PhysicalInventoryDocumentService
- All Superinterfaces:
BatchService<PhysicalInventoryDocumentServiceBatch>
- All Known Implementing Classes:
DefaultPhysicalInventoryDocumentService
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
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.If no other path was provided via thewithServicePath(String)method, this is the default service path used to access the endpoint. -
Method Summary
Modifier and TypeMethodDescriptioncreatePhysInventoryDocHeader(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.Methods inherited from interface com.sap.cloud.sdk.datamodel.odata.helper.batch.BatchService
batch
-
Field Details
-
DEFAULT_SERVICE_PATH
Deprecated.If no other path was provided via thewithServicePath(String)method, this is the default service path used to access the endpoint.- See Also:
-
-
Method Details
-
withServicePath
Deprecated.Overrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Parameters:
servicePath- Service path that will override the default.- Returns:
- A new service instance with the specified service path.
-
getAllPhysInventoryDocHeader
Deprecated.Fetch multiplePhysInventoryDocHeaderentities.- 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 PhysInventoryDocHeaderByKeyFluentHelper getPhysInventoryDocHeaderByKey(String fiscalYear, String physicalInventoryDocument) Deprecated.Fetch a singlePhysInventoryDocHeaderentity using key fields.- 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 PhysInventoryDocHeaderCreateFluentHelper createPhysInventoryDocHeader(@Nonnull PhysInventoryDocHeader physInventoryDocHeader) Deprecated.Create a newPhysInventoryDocHeaderentity and save it to the S/4HANA system.- 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.Fetch multiplePhysInventoryDocItementities.- 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 PhysInventoryDocItemByKeyFluentHelper getPhysInventoryDocItemByKey(String fiscalYear, String physicalInventoryDocument, String physicalInventoryDocumentItem) Deprecated.Fetch a singlePhysInventoryDocItementity using key fields.- Parameters:
physicalInventoryDocumentItem- Physical Inventory Item NumberConstraints: Not nullable, Maximum length: 3
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
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 PhysInventoryDocItemUpdateFluentHelper updatePhysInventoryDocItem(@Nonnull PhysInventoryDocItem physInventoryDocItem) Deprecated.Update an existingPhysInventoryDocItementity and save it to the S/4HANA system.- 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.Fetch multipleSerialNumberPhysInventoryDocentities.- 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 SerialNumberPhysInventoryDocByKeyFluentHelper getSerialNumberPhysInventoryDocByKey(String equipment, String fiscalYear, String physicalInventoryDocument, String physicalInventoryDocumentItem, String serialNumberPhysicalInvtryType) Deprecated.Fetch a singleSerialNumberPhysInventoryDocentity using key fields.- Parameters:
physicalInventoryDocumentItem- Line NumberConstraints: Not nullable, Maximum length: 3
serialNumberPhysicalInvtryType- Serial Number Physical Inventory TypeConstraints: Not nullable, Maximum length: 1
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
- 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 SerialNumberPhysInventoryDocUpdateFluentHelper updateSerialNumberPhysInventoryDoc(@Nonnull SerialNumberPhysInventoryDoc serialNumberPhysInventoryDoc) Deprecated.Update an existingSerialNumberPhysInventoryDocentity and save it to the S/4HANA system.- 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 PostDifferencesFluentHelper postDifferences(@Nullable BigDecimal postingThresholdValue, @Nullable LocalDateTime postingDate, @Nonnull String physicalInventoryDocument, @Nonnull String fiscalYear) Deprecated.Creates a fluent helper for the PostDifferences OData function import.
- 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
fiscalYear- Fiscal YearConstraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: FiscalYear
physicalInventoryDocument- Phys. Inventory Doc.Constraints: Not nullable, Maximum length: 10
Original parameter name from the Odata EDM: PhysicalInventoryDocument
- 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 PostDifferencesOnItemFluentHelper postDifferencesOnItem(@Nonnull String physicalInventoryDocumentItem, @Nonnull String material, @Nonnull String physicalInventoryDocument, @Nonnull String fiscalYear, @Nullable String batch, @Nullable String reasonForPhysInvtryDifference, @Nullable LocalDateTime postingDate) Deprecated.Creates a fluent helper for the PostDifferencesOnItem OData function import.
- 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
reasonForPhysInvtryDifference- Reason f. Diff.Constraints: Nullable, Maximum length: 4
Original parameter name from the Odata EDM: ReasonForPhysInvtryDifference
batch- BatchConstraints: Nullable, Maximum length: 10
Original parameter name from the Odata EDM: Batch
postingDate- Posting DateConstraints: Nullable, Precision: 0
Original parameter name from the Odata EDM: PostingDate
fiscalYear- Fiscal YearConstraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: FiscalYear
physicalInventoryDocument- Phys. Inventory Doc.Constraints: Not nullable, Maximum length: 10
Original parameter name from the Odata EDM: PhysicalInventoryDocument
- 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 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.Creates a fluent helper for the InitiateRecount OData function import.
- Parameters:
documentDate- Document DateConstraints: Nullable, Precision: 0
Original parameter name from the Odata EDM: DocumentDate
physInvtryDocHasQtySnapshot- Freeze Book InvtryConstraints: Nullable
Original parameter name from the Odata EDM: PhysInvtryDocHasQtySnapshot
postingThresholdValue- Threshold ValueConstraints: Nullable, Precision: 14, Scale: 3
Original parameter name from the Odata EDM: PostingThresholdValue
physInventoryPlannedCountDate- Planned Count DateConstraints: Nullable, Precision: 0
Original parameter name from the Odata EDM: PhysInventoryPlannedCountDate
postingIsBlockedForPhysInvtry- Phys. Inv. BlockConstraints: Nullable
Original parameter name from the Odata EDM: PostingIsBlockedForPhysInvtry
fiscalYear- Fiscal YearConstraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: FiscalYear
physicalInventoryNumber- Phys. inventory no.Constraints: Nullable, Maximum length: 16
Original parameter name from the Odata EDM: PhysicalInventoryNumber
physicalInventoryDocument- Phys. Inventory Doc.Constraints: Not nullable, Maximum length: 10
Original parameter name from the Odata EDM: PhysicalInventoryDocument
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
- 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 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.Creates a fluent helper for the InitiateRecountOnItem OData function import.
- Parameters:
documentDate- Document DateConstraints: Nullable, Precision: 0
Original parameter name from the Odata EDM: DocumentDate
physicalInventoryDocumentItem- ItemConstraints: Not nullable, Maximum length: 3
Original parameter name from the Odata EDM: PhysicalInventoryDocumentItem
physInvtryDocHasQtySnapshot- Freeze Book InvtryConstraints: Nullable
Original parameter name from the Odata EDM: PhysInvtryDocHasQtySnapshot
physInventoryPlannedCountDate- Planned Count DateConstraints: Nullable, Precision: 0
Original parameter name from the Odata EDM: PhysInventoryPlannedCountDate
postingIsBlockedForPhysInvtry- Phys. Inv. BlockConstraints: Nullable
Original parameter name from the Odata EDM: PostingIsBlockedForPhysInvtry
fiscalYear- Fiscal YearConstraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: FiscalYear
physicalInventoryNumber- Phys. inventory no.Constraints: Nullable, Maximum length: 16
Original parameter name from the Odata EDM: PhysicalInventoryNumber
physicalInventoryDocument- Phys. Inventory Doc.Constraints: Not nullable, Maximum length: 10
Original parameter name from the Odata EDM: PhysicalInventoryDocument
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
- 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.
-