@Named public class DefaultProcessPhysicalInventoryDocumentsService extends Object implements ProcessPhysicalInventoryDocumentsService
This service enables you to retrieve and create physical inventory documents, as well as count items and post differences on both document and item level. It can be consumed by external systems and user interfaces.
Reference: SAP API Business Hub
OData Service: | API_PHYSICAL_INVENTORY_DOC_SRV |
API Version: | 1 |
Communication Scenario: | Physical Inventory Document Integration (SAP_COM_0107) |
Scope Items: | Physical Inventory - Inventory Count and Adjustment (BML) |
Constructor and Description |
---|
DefaultProcessPhysicalInventoryDocumentsService() |
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,
Calendar physInventoryPlannedCountDate,
Calendar documentDate,
String physicalInventoryNumber,
String physInventoryReferenceNumber,
String physicalInventoryDocumentDesc,
BigDecimal postingThresholdValue,
Boolean physInvtryDocHasQtySnapshot,
Boolean postingIsBlockedForPhysInvtry)
Trigger Recount
|
InitiateRecountOnItemFluentHelper |
initiateRecountOnItem(String physicalInventoryDocument,
String fiscalYear,
String physicalInventoryDocumentItem,
Calendar physInventoryPlannedCountDate,
Calendar documentDate,
String physicalInventoryNumber,
String physInventoryReferenceNumber,
String physicalInventoryDocumentDesc,
Boolean physInvtryDocHasQtySnapshot,
Boolean postingIsBlockedForPhysInvtry)
Trigger Recount on Item
|
PostDifferencesFluentHelper |
postDifferences(BigDecimal postingThresholdValue,
Calendar postingDate,
String physicalInventoryDocument,
String fiscalYear)
Post Differences
|
PostDifferencesOnItemFluentHelper |
postDifferencesOnItem(String physicalInventoryDocumentItem,
String material,
String physicalInventoryDocument,
String fiscalYear,
String batch,
String reasonForPhysInvtryDifference,
Calendar postingDate)
Post Difference on Item
|
PhysInventoryDocItemUpdateFluentHelper |
updatePhysInventoryDocItem(PhysInventoryDocItem physInventoryDocItem)
Update an existing
PhysInventoryDocItem entity and save it to the S/4HANA system. |
public DefaultProcessPhysicalInventoryDocumentsService()
public PhysInventoryDocHeaderFluentHelper getAllPhysInventoryDocHeader()
ProcessPhysicalInventoryDocumentsService
PhysInventoryDocHeader
entities.getAllPhysInventoryDocHeader
in interface ProcessPhysicalInventoryDocumentsService
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.public PhysInventoryDocHeaderByKeyFluentHelper getPhysInventoryDocHeaderByKey(String fiscalYear, String physicalInventoryDocument)
ProcessPhysicalInventoryDocumentsService
PhysInventoryDocHeader
entity using key fields.getPhysInventoryDocHeaderByKey
in interface ProcessPhysicalInventoryDocumentsService
fiscalYear
- Period, 12 months as a rule, for which the company is to create its inventory and balance sheet. The fiscal year can be the same as the calendar year, but does not have to be.Constraints: Not nullable, Maximum length: 4
physicalInventoryDocument
- Alphanumeric key uniquely identifying the 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.public PhysInventoryDocHeaderCreateFluentHelper createPhysInventoryDocHeader(PhysInventoryDocHeader physInventoryDocHeader)
ProcessPhysicalInventoryDocumentsService
PhysInventoryDocHeader
entity and save it to the S/4HANA system.createPhysInventoryDocHeader
in interface ProcessPhysicalInventoryDocumentsService
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.public PhysInventoryDocItemFluentHelper getAllPhysInventoryDocItem()
ProcessPhysicalInventoryDocumentsService
PhysInventoryDocItem
entities.getAllPhysInventoryDocItem
in interface ProcessPhysicalInventoryDocumentsService
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.public PhysInventoryDocItemByKeyFluentHelper getPhysInventoryDocItemByKey(String fiscalYear, String physicalInventoryDocument, String physicalInventoryDocumentItem)
ProcessPhysicalInventoryDocumentsService
PhysInventoryDocItem
entity using key fields.getPhysInventoryDocItemByKey
in interface ProcessPhysicalInventoryDocumentsService
fiscalYear
- Period, 12 months as a rule, for which the company is to create its inventory and balance sheet. The fiscal year can be the same as the calendar year, but does not have to be.Constraints: Not nullable, Maximum length: 4
physicalInventoryDocument
- Physical Inventory DocumentConstraints: Not nullable, Maximum length: 10
physicalInventoryDocumentItem
- Physical Inventory Item NumberConstraints: Not nullable, Maximum length: 3
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.public PhysInventoryDocItemUpdateFluentHelper updatePhysInventoryDocItem(PhysInventoryDocItem physInventoryDocItem)
ProcessPhysicalInventoryDocumentsService
PhysInventoryDocItem
entity and save it to the S/4HANA system.updatePhysInventoryDocItem
in interface ProcessPhysicalInventoryDocumentsService
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.public PostDifferencesFluentHelper postDifferences(BigDecimal postingThresholdValue, Calendar postingDate, String physicalInventoryDocument, String fiscalYear)
ProcessPhysicalInventoryDocumentsService
Creates a fluent helper for the PostDifferences OData function import.
postDifferences
in interface ProcessPhysicalInventoryDocumentsService
postingThresholdValue
- Threshold ValueConstraints: Nullable, Precision: 14, Scale: 3
postingDate
- Posting DateConstraints: Nullable, Precision: 0
physicalInventoryDocument
- Phys. Inventory Doc.Constraints: Not nullable, Maximum length: 10
fiscalYear
- Fiscal YearConstraints: Not nullable, Maximum length: 4
execute
method on the fluent helper object.public PostDifferencesOnItemFluentHelper postDifferencesOnItem(String physicalInventoryDocumentItem, String material, String physicalInventoryDocument, String fiscalYear, String batch, String reasonForPhysInvtryDifference, Calendar postingDate)
ProcessPhysicalInventoryDocumentsService
Creates a fluent helper for the PostDifferencesOnItem OData function import.
postDifferencesOnItem
in interface ProcessPhysicalInventoryDocumentsService
physicalInventoryDocumentItem
- ItemConstraints: Not nullable, Maximum length: 3
material
- MaterialConstraints: Not nullable, Maximum length: 40
physicalInventoryDocument
- Phys. Inventory Doc.Constraints: Not nullable, Maximum length: 10
fiscalYear
- Fiscal YearConstraints: Not nullable, Maximum length: 4
batch
- BatchConstraints: Nullable, Maximum length: 10
reasonForPhysInvtryDifference
- Reason for Man. Val.Constraints: Nullable, Maximum length: 4
postingDate
- Posting DateConstraints: Nullable, Precision: 0
execute
method on the fluent helper object.public InitiateRecountFluentHelper initiateRecount(String physicalInventoryDocument, String fiscalYear, Calendar physInventoryPlannedCountDate, Calendar documentDate, String physicalInventoryNumber, String physInventoryReferenceNumber, String physicalInventoryDocumentDesc, BigDecimal postingThresholdValue, Boolean physInvtryDocHasQtySnapshot, Boolean postingIsBlockedForPhysInvtry)
ProcessPhysicalInventoryDocumentsService
Creates a fluent helper for the InitiateRecount OData function import.
initiateRecount
in interface ProcessPhysicalInventoryDocumentsService
physicalInventoryDocument
- Phys. Inventory Doc.Constraints: Not nullable, Maximum length: 10
fiscalYear
- Fiscal YearConstraints: Not nullable, Maximum length: 4
physInventoryPlannedCountDate
- Planned Count DateConstraints: Nullable, Precision: 0
documentDate
- Document DateConstraints: Nullable, Precision: 0
physicalInventoryNumber
- Phys. inventory no.Constraints: Nullable, Maximum length: 16
physInventoryReferenceNumber
- Phys. inventory ref.Constraints: Nullable, Maximum length: 16
physicalInventoryDocumentDesc
- DescriptionConstraints: Nullable, Maximum length: 40
postingThresholdValue
- Threshold ValueConstraints: Nullable, Precision: 14, Scale: 3
physInvtryDocHasQtySnapshot
- Freeze Book InvtryConstraints: Nullable
postingIsBlockedForPhysInvtry
- Phys. Inv. BlockConstraints: Nullable
execute
method on the fluent helper object.public InitiateRecountOnItemFluentHelper initiateRecountOnItem(String physicalInventoryDocument, String fiscalYear, String physicalInventoryDocumentItem, Calendar physInventoryPlannedCountDate, Calendar documentDate, String physicalInventoryNumber, String physInventoryReferenceNumber, String physicalInventoryDocumentDesc, Boolean physInvtryDocHasQtySnapshot, Boolean postingIsBlockedForPhysInvtry)
ProcessPhysicalInventoryDocumentsService
Creates a fluent helper for the InitiateRecountOnItem OData function import.
initiateRecountOnItem
in interface ProcessPhysicalInventoryDocumentsService
physicalInventoryDocument
- Phys. Inventory Doc.Constraints: Not nullable, Maximum length: 10
fiscalYear
- Fiscal YearConstraints: Not nullable, Maximum length: 4
physicalInventoryDocumentItem
- ItemConstraints: Not nullable, Maximum length: 3
physInventoryPlannedCountDate
- Planned Count DateConstraints: Nullable, Precision: 0
documentDate
- Document DateConstraints: Nullable, Precision: 0
physicalInventoryNumber
- Phys. inventory no.Constraints: Nullable, Maximum length: 16
physInventoryReferenceNumber
- Phys. inventory ref.Constraints: Nullable, Maximum length: 16
physicalInventoryDocumentDesc
- DescriptionConstraints: Nullable, Maximum length: 40
physInvtryDocHasQtySnapshot
- Freeze Book InvtryConstraints: Nullable
postingIsBlockedForPhysInvtry
- Phys. Inv. BlockConstraints: Nullable
execute
method on the fluent helper object.Copyright © 2018 SAP SE. All rights reserved.