public interface PhysicalInventoryDocumentService extends BatchService<PhysicalInventoryDocumentServiceBatch>
You can count items and post differences on both document and item level. The service can be consumed by external systems.
Reference: SAP API Business Hub
OData Service: | OP_API_PHYSICAL_INVENTORY_DOC_SRV |
API Version: | 1 |
Minimum ERP Version: | 2020 |
Authentication Methods: | Basic, x509 |
Business Object: | Physical Inventory Document |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SERVICE_PATH
If no other path was provided via the
withServicePath(String) method, this is the default service path
used to access the endpoint. |
Modifier and Type | Method and Description |
---|---|
PhysInventoryDocHeaderCreateFluentHelper |
createPhysInventoryDocHeader(PhysInventoryDocHeader physInventoryDocHeader)
Create a new
PhysInventoryDocHeader entity and save it to the S/4HANA system. |
PhysInventoryDocHeaderFluentHelper |
getAllPhysInventoryDocHeader()
Fetch multiple
PhysInventoryDocHeader entities. |
PhysInventoryDocItemFluentHelper |
getAllPhysInventoryDocItem()
Fetch multiple
PhysInventoryDocItem entities. |
PhysInventoryDocHeaderByKeyFluentHelper |
getPhysInventoryDocHeaderByKey(String fiscalYear,
String physicalInventoryDocument)
Fetch a single
PhysInventoryDocHeader entity using key fields. |
PhysInventoryDocItemByKeyFluentHelper |
getPhysInventoryDocItemByKey(String fiscalYear,
String physicalInventoryDocument,
String physicalInventoryDocumentItem)
Fetch a single
PhysInventoryDocItem entity using key fields. |
InitiateRecountFluentHelper |
initiateRecount(String physicalInventoryDocument,
String fiscalYear,
LocalDateTime physInventoryPlannedCountDate,
LocalDateTime documentDate,
String physicalInventoryNumber,
String physInventoryReferenceNumber,
String physicalInventoryDocumentDesc,
BigDecimal postingThresholdValue,
Boolean physInvtryDocHasQtySnapshot,
Boolean postingIsBlockedForPhysInvtry)
Creates a fluent helper for the InitiateRecount OData function import.
|
InitiateRecountOnItemFluentHelper |
initiateRecountOnItem(String physicalInventoryDocument,
String fiscalYear,
String physicalInventoryDocumentItem,
LocalDateTime physInventoryPlannedCountDate,
LocalDateTime documentDate,
String physicalInventoryNumber,
String physInventoryReferenceNumber,
String physicalInventoryDocumentDesc,
Boolean physInvtryDocHasQtySnapshot,
Boolean postingIsBlockedForPhysInvtry)
Creates a fluent helper for the InitiateRecountOnItem OData function import.
|
PostDifferencesFluentHelper |
postDifferences(BigDecimal postingThresholdValue,
LocalDateTime postingDate,
String physicalInventoryDocument,
String fiscalYear)
Creates a fluent helper for the PostDifferences OData function import.
|
PostDifferencesOnItemFluentHelper |
postDifferencesOnItem(String physicalInventoryDocumentItem,
String material,
String physicalInventoryDocument,
String fiscalYear,
String batch,
String reasonForPhysInvtryDifference,
LocalDateTime postingDate)
Creates a fluent helper for the PostDifferencesOnItem OData function import.
|
PhysInventoryDocItemUpdateFluentHelper |
updatePhysInventoryDocItem(PhysInventoryDocItem physInventoryDocItem)
Update an existing
PhysInventoryDocItem entity and save it to the S/4HANA system. |
PhysicalInventoryDocumentService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
batch
static final String DEFAULT_SERVICE_PATH
withServicePath(String)
method, this is the default service path
used to access the endpoint.@Nonnull PhysicalInventoryDocumentService withServicePath(@Nonnull String servicePath)
servicePath
- Service path that will override the default.@Nonnull PhysInventoryDocHeaderFluentHelper getAllPhysInventoryDocHeader()
PhysInventoryDocHeader
entities.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.@Nonnull PhysInventoryDocHeaderByKeyFluentHelper getPhysInventoryDocHeaderByKey(String fiscalYear, String physicalInventoryDocument)
PhysInventoryDocHeader
entity using key fields.fiscalYear
- Fiscal Year
Constraints: Not nullable, Maximum length: 4
physicalInventoryDocument
- Physical Inventory Document
Constraints: Not nullable, Maximum length: 10
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.@Nonnull PhysInventoryDocHeaderCreateFluentHelper createPhysInventoryDocHeader(@Nonnull PhysInventoryDocHeader physInventoryDocHeader)
PhysInventoryDocHeader
entity and save it to the S/4HANA system.physInventoryDocHeader
- PhysInventoryDocHeader
entity object that will be created in the S/4HANA system.PhysInventoryDocHeader
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull PhysInventoryDocItemFluentHelper getAllPhysInventoryDocItem()
PhysInventoryDocItem
entities.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.@Nonnull PhysInventoryDocItemByKeyFluentHelper getPhysInventoryDocItemByKey(String fiscalYear, String physicalInventoryDocument, String physicalInventoryDocumentItem)
PhysInventoryDocItem
entity using key fields.physicalInventoryDocumentItem
- Physical Inventory Item Number
Constraints: Not nullable, Maximum length: 3
fiscalYear
- Fiscal Year
Constraints: Not nullable, Maximum length: 4
physicalInventoryDocument
- Physical Inventory Document
Constraints: Not nullable, Maximum length: 10
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.@Nonnull PhysInventoryDocItemUpdateFluentHelper updatePhysInventoryDocItem(@Nonnull PhysInventoryDocItem physInventoryDocItem)
PhysInventoryDocItem
entity and save it to the S/4HANA system.physInventoryDocItem
- PhysInventoryDocItem
entity object that will be updated in the S/4HANA system.PhysInventoryDocItem
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull PostDifferencesFluentHelper postDifferences(BigDecimal postingThresholdValue, LocalDateTime postingDate, String physicalInventoryDocument, String fiscalYear)
Creates a fluent helper for the PostDifferences OData function import.
postingThresholdValue
- Constraints: Nullable, Precision: 14, Scale: 3
Original parameter name from the Odata EDM: PostingThresholdValue
postingDate
- Constraints: Nullable, Precision: 0
Original parameter name from the Odata EDM: PostingDate
fiscalYear
- Constraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: FiscalYear
physicalInventoryDocument
- Constraints: Not nullable, Maximum length: 10
Original parameter name from the Odata EDM: PhysicalInventoryDocument
execute
method on the fluent helper object.@Nonnull PostDifferencesOnItemFluentHelper postDifferencesOnItem(String physicalInventoryDocumentItem, String material, String physicalInventoryDocument, String fiscalYear, String batch, String reasonForPhysInvtryDifference, LocalDateTime postingDate)
Creates a fluent helper for the PostDifferencesOnItem OData function import.
physicalInventoryDocumentItem
- Constraints: Not nullable, Maximum length: 3
Original parameter name from the Odata EDM: PhysicalInventoryDocumentItem
material
- Constraints: Not nullable, Maximum length: 40
Original parameter name from the Odata EDM: Material
reasonForPhysInvtryDifference
- Constraints: Nullable, Maximum length: 4
Original parameter name from the Odata EDM: ReasonForPhysInvtryDifference
batch
- Constraints: Nullable, Maximum length: 10
Original parameter name from the Odata EDM: Batch
postingDate
- Constraints: Nullable, Precision: 0
Original parameter name from the Odata EDM: PostingDate
fiscalYear
- Constraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: FiscalYear
physicalInventoryDocument
- Constraints: Not nullable, Maximum length: 10
Original parameter name from the Odata EDM: PhysicalInventoryDocument
execute
method on the fluent helper object.@Nonnull InitiateRecountFluentHelper initiateRecount(String physicalInventoryDocument, String fiscalYear, LocalDateTime physInventoryPlannedCountDate, LocalDateTime documentDate, String physicalInventoryNumber, String physInventoryReferenceNumber, String physicalInventoryDocumentDesc, BigDecimal postingThresholdValue, Boolean physInvtryDocHasQtySnapshot, Boolean postingIsBlockedForPhysInvtry)
Creates a fluent helper for the InitiateRecount OData function import.
documentDate
- Constraints: Nullable, Precision: 0
Original parameter name from the Odata EDM: DocumentDate
physInvtryDocHasQtySnapshot
- Constraints: Nullable
Original parameter name from the Odata EDM: PhysInvtryDocHasQtySnapshot
postingThresholdValue
- Constraints: Nullable, Precision: 14, Scale: 3
Original parameter name from the Odata EDM: PostingThresholdValue
physInventoryPlannedCountDate
- Constraints: Nullable, Precision: 0
Original parameter name from the Odata EDM: PhysInventoryPlannedCountDate
postingIsBlockedForPhysInvtry
- Constraints: Nullable
Original parameter name from the Odata EDM: PostingIsBlockedForPhysInvtry
fiscalYear
- Constraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: FiscalYear
physicalInventoryNumber
- Constraints: Nullable, Maximum length: 16
Original parameter name from the Odata EDM: PhysicalInventoryNumber
physicalInventoryDocument
- Constraints: Not nullable, Maximum length: 10
Original parameter name from the Odata EDM: PhysicalInventoryDocument
physInventoryReferenceNumber
- Constraints: Nullable, Maximum length: 16
Original parameter name from the Odata EDM: PhysInventoryReferenceNumber
physicalInventoryDocumentDesc
- Constraints: Nullable, Maximum length: 40
Original parameter name from the Odata EDM: PhysicalInventoryDocumentDesc
execute
method on the fluent helper object.@Nonnull InitiateRecountOnItemFluentHelper initiateRecountOnItem(String physicalInventoryDocument, String fiscalYear, String physicalInventoryDocumentItem, LocalDateTime physInventoryPlannedCountDate, LocalDateTime documentDate, String physicalInventoryNumber, String physInventoryReferenceNumber, String physicalInventoryDocumentDesc, Boolean physInvtryDocHasQtySnapshot, Boolean postingIsBlockedForPhysInvtry)
Creates a fluent helper for the InitiateRecountOnItem OData function import.
documentDate
- Constraints: Nullable, Precision: 0
Original parameter name from the Odata EDM: DocumentDate
physicalInventoryDocumentItem
- Constraints: Not nullable, Maximum length: 3
Original parameter name from the Odata EDM: PhysicalInventoryDocumentItem
physInvtryDocHasQtySnapshot
- Constraints: Nullable
Original parameter name from the Odata EDM: PhysInvtryDocHasQtySnapshot
physInventoryPlannedCountDate
- Constraints: Nullable, Precision: 0
Original parameter name from the Odata EDM: PhysInventoryPlannedCountDate
postingIsBlockedForPhysInvtry
- Constraints: Nullable
Original parameter name from the Odata EDM: PostingIsBlockedForPhysInvtry
fiscalYear
- Constraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: FiscalYear
physicalInventoryNumber
- Constraints: Nullable, Maximum length: 16
Original parameter name from the Odata EDM: PhysicalInventoryNumber
physicalInventoryDocument
- Constraints: Not nullable, Maximum length: 10
Original parameter name from the Odata EDM: PhysicalInventoryDocument
physInventoryReferenceNumber
- Constraints: Nullable, Maximum length: 16
Original parameter name from the Odata EDM: PhysInventoryReferenceNumber
physicalInventoryDocumentDesc
- Constraints: Nullable, Maximum length: 40
Original parameter name from the Odata EDM: PhysicalInventoryDocumentDesc
execute
method on the fluent helper object.Copyright © 2021 SAP SE. All rights reserved.