Options
All
  • Public
  • Public/Protected
  • All
Menu

This class represents the entity "A_PhysInventoryDocItem" of service "API_PHYSICAL_INVENTORY_DOC_SRV". This service is part of the following communication scenarios: Physical Inventory Document Integration (SAP_COM_0107). See https://api.sap.com/api/API_PHYSICAL_INVENTORY_DOC_SRV for more information.

Hierarchy

  • Entity
    • PhysInventoryDocItem

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • Returns PhysInventoryDocItem

Properties

Protected _customFields

_customFields: MapType<any>

A mapper representing custom fields in an entity. Custom fields are represented by their field names and the corresponding values. A custom field can be added or updated using setCustomField method.

Protected _versionIdentifier

_versionIdentifier: string

The current ETag version of the entity in the remote system. The ETag identified the version of the in the remote system. It will be automatically set in the "if-match" header of update requests and can be set as a custom header for delete requests. When no ETag is provided by the remote system the value of this variable defaults to "*".

Optional adjustmentPostingMadeByUser

adjustmentPostingMadeByUser: string

Adjustment Posting Made By. Maximum length: 12.

nullable

Optional batch

batch: string

Batch Number. Assigns a material that is manufactured in batches or production lots to a specific batch. Maximum length: 10.

nullable

Optional bookQtyAmountInCoCodeCrcy

bookQtyAmountInCoCodeCrcy: BigNumber

Book Value.

nullable

Optional bookQtyBfrCountInMatlBaseUnit

bookQtyBfrCountInMatlBaseUnit: BigNumber

Book Quantity Immediately Prior to Count. Indicates the book inventory of this physical inventory item at the time of the count. The quantity counted is not adopted as the new book inventory balance until any differences have been corrected by means of an inventory adjustment posting.

nullable

Optional countedByUser

countedByUser: string

Counted By. Name of the user who last entered the count results for this physical inventory item. Maximum length: 12.

nullable

Optional currency

currency: string

Company Code Currency. Maximum length: 5.

nullable

Optional customer

customer: string

Account number of customer. Uniquely identifies a customer. This customer number is used for managing customer special stocks. Maximum length: 10.

nullable

Optional cycleCountType

cycleCountType: string

Cycle Count Type. Maximum length: 1.

nullable

Optional differenceAmountInCoCodeCrcy

differenceAmountInCoCodeCrcy: BigNumber

Value of Difference.

nullable

Optional enteredSlsAmtInCoCodeCrcy

enteredSlsAmtInCoCodeCrcy: BigNumber

Externally Entered Value Based on Sales Price.

nullable

fiscalYear

fiscalYear: string

Fiscal Year. 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. Maximum length: 4.

Optional inventorySpecialStockType

inventorySpecialStockType: string

Special Stock Type. Maximum length: 1.

nullable

Optional isHandledInAltvUnitOfMsr

isHandledInAltvUnitOfMsr: boolean

Without Unit of Measure Proposal.

nullable

Optional isValueOnlyMaterial

isValueOnlyMaterial: boolean

Is Value-Only Material.

nullable

Optional lastChangeDate

lastChangeDate: Moment

Date of Last Change.

nullable

Optional lastChangeDateTime

lastChangeDateTime: Moment

Last Change Timestamp.

nullable

Optional lastChangeUser

lastChangeUser: string

Changed By. Name of the user who last changed this physical inventory item. Maximum length: 12.

nullable

Optional material

material: string

Material Number. Alphanumeric key uniquely identifying the material. Maximum length: 40.

nullable

Optional materialBaseUnit

materialBaseUnit: string

Base Unit of Measure. Unit of measure in which stocks of the material are managed. The system converts all the quantities you enter in other units of measure (alternative units of measure) to the base unit of measure. You define the base unit of measure and also alternative units of measure and their conversion factors in the material master record.Since all data is updated in the base unit of measure, your entry is particularly important for the conversion of alternative units of measure. A quantity in the alternative unit of measure can only be shown precisely if its value can be shown with the decimal places available. To ensure this, please note the following:The base unit of measure is the unit satisfying the highest necessary requirement for precision.The conversion of alternative units of measure to the base unit should result in simple decimal fractions (not, for example, 1/3 = 0.333...).Inventory ManagementIn Inventory Management, the base unit of measure is the same as the stockkeeping unit.ServicesServices have units of measure of their own, including the following:Service unitUnit of measure at the higher item level. The precise quantities of the individual services are each at the detailed service line level.BlanketUnit of measure at service line level for services to be provided once only, and for which no precise quantities can or are to be specified. Maximum length: 3.

nullable

Optional materialDocument

materialDocument: string

Number of Material Document. Alphanumeric key uniquely identifying the document. Number of the material document with which a goods movement was posted.Together with the material document year, the document number constitutes the key via which a material document is accessed. Maximum length: 10.

nullable

Optional materialDocumentItem

materialDocumentItem: string

Material Document Item. Maximum length: 4.

nullable

Optional materialDocumentYear

materialDocumentYear: string

Material Document Year. Maximum length: 4.

nullable

Optional physInventoryReferenceNumber

physInventoryReferenceNumber: string

Physical Inventory Reference. Maximum length: 16.

nullable

Optional physInvtryCtAmtInCoCodeCrcy

physInvtryCtAmtInCoCodeCrcy: BigNumber

Counted Quantity Value.

nullable

Optional physInvtryDifferenceIsPosted

physInvtryDifferenceIsPosted: boolean

Difference of Item is Posted.

nullable

Optional physInvtryItemIsDeleted

physInvtryItemIsDeleted: boolean

Item is Deleted.

nullable

Optional physInvtryItemIsRecounted

physInvtryItemIsRecounted: boolean

Item is Recounted.

nullable

Optional physInvtryRecountDocument

physInvtryRecountDocument: string

Number of Recount Document. Indicates the number of the physical inventory document in which the item to be recounted was recorded. The corresponding item in the original physical inventory document is no longer active. Maximum length: 10.

nullable

physicalInventoryDocument

physicalInventoryDocument: string

Physical Inventory Document. Maximum length: 10.

physicalInventoryDocumentItem

physicalInventoryDocumentItem: string

Physical Inventory Item Number. Maximum length: 3.

Optional physicalInventoryItemIsCounted

physicalInventoryItemIsCounted: boolean

Item is Counted.

nullable

Optional physicalInventoryItemIsZero

physicalInventoryItemIsZero: boolean

Is Zero Count.

nullable

Optional physicalInventoryLastCountDate

physicalInventoryLastCountDate: Moment

Date of Last Count. Specifies the date of the last physical inventory count. The actual count date must be in the same year as the planned count date.The date of the first entry of count results for a physical inventory document determines the posting period in which all further count results as well as the inventory differences relating to this physical inventory document must be posted.

nullable

Optional physicalInventoryStockType

physicalInventoryStockType: string

Stock Type (Physical Inventory). Shows the stock type for which a physical inventory is to be carried out. It is possible to carry out a physical inventory for the following material stock types:Unrestricted-useQuality inspectionBlocked. Maximum length: 1.

nullable

Optional plant

plant: string

Plant. Key uniquely identifying a plant. Maximum length: 4.

nullable

Optional postingDate

postingDate: Moment

Posting Date in the Document. Date which is used when entering the document in Financial Accounting or Controlling. The fiscal year and the period for which an update of the accounts specified in the document or cost elements is made, are derived from the posting date.When entering documents, the system checks whether the posting date entered is allowed by means of the posting period permitted.The posting date can differ from both the entry date (day of entry into the system) and the document date (day of creation of the original document).

nullable

Optional quantity

quantity: BigNumber

Counted Quantity.

nullable

Optional quantityInUnitOfEntry

quantityInUnitOfEntry: BigNumber

Counted Quantity in Entry Unit.

nullable

Optional reasonForPhysInvtryDifference

reasonForPhysInvtryDifference: string

Difference Reason. Maximum length: 4.

nullable

Protected remoteState

remoteState: object

The remote state of the entity. Remote state refers to the last known state of the entity on the remote system from which it has been retrieved or to which it has been posted. It is stored as map, where the keys are stored in the format of VDM properties.

Type declaration

  • [keys: string]: any

Optional salesOrder

salesOrder: string

Sales Order Number. Uniquely identifies a sales order. The selection of postprocessing records via the sales order number is only possible for non-valuated sales order stock. Maximum length: 10.

nullable

Optional salesOrderItem

salesOrderItem: string

Item Number in Sales Order. Maximum length: 6.

nullable

Optional slsPriceAmountInCoCodeCrcy

slsPriceAmountInCoCodeCrcy: BigNumber

Sales Price Book Value.

nullable

Optional storageLocation

storageLocation: string

Storage Location. Number of the storage location in which the material is stored. A plant may contain one or more storage locations. Maximum length: 4.

nullable

Optional supplier

supplier: string

Vendor Account Number. Alphanumeric key uniquely identifying the document. With the supplier number, information from the supplier master record (such as the supplier's address and bank details) is copied into a purchasing document (such as a request for quotation or a purchase order).You can use the supplier number to keep track of requests for quotation, purchase orders and outline agreements. Maximum length: 10.

nullable

toPhysicalInventoryDocument

toPhysicalInventoryDocument: PhysInventoryDocHeader

One-to-one navigation property to the PhysInventoryDocHeader entity.

Optional unitOfEntry

unitOfEntry: string

Entry Unit. Maximum length: 3.

nullable

versionIdentifier

versionIdentifier: string

ETag version identifier accessor.

returns

The ETag version identifier of the retrieved entity, returns undefined if not retrieved

Optional wbsElement

wbsElement: string

Work Breakdown Structure Element (WBS Element). Key identifying a WBS element. Maximum length: 24.

nullable

Static ADJUSTMENT_POSTING_MADE_BY_USER

ADJUSTMENT_POSTING_MADE_BY_USER: StringField<PhysInventoryDocItem> = new StringField('AdjustmentPostingMadeByUser', PhysInventoryDocItem, 'Edm.String')

Static representation of the adjustmentPostingMadeByUser property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static ALL_FIELDS

ALL_FIELDS: AllFields<PhysInventoryDocItem> = new AllFields('*', PhysInventoryDocItem)

All fields selector.

Static BATCH

BATCH: StringField<PhysInventoryDocItem> = new StringField('Batch', PhysInventoryDocItem, 'Edm.String')

Static representation of the batch property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static BOOK_QTY_AMOUNT_IN_CO_CODE_CRCY

BOOK_QTY_AMOUNT_IN_CO_CODE_CRCY: BigNumberField<PhysInventoryDocItem> = new BigNumberField('BookQtyAmountInCoCodeCrcy', PhysInventoryDocItem, 'Edm.Decimal')

Static representation of the bookQtyAmountInCoCodeCrcy property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static BOOK_QTY_BFR_COUNT_IN_MATL_BASE_UNIT

BOOK_QTY_BFR_COUNT_IN_MATL_BASE_UNIT: BigNumberField<PhysInventoryDocItem> = new BigNumberField('BookQtyBfrCountInMatlBaseUnit', PhysInventoryDocItem, 'Edm.Decimal')

Static representation of the bookQtyBfrCountInMatlBaseUnit property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static COUNTED_BY_USER

COUNTED_BY_USER: StringField<PhysInventoryDocItem> = new StringField('CountedByUser', PhysInventoryDocItem, 'Edm.String')

Static representation of the countedByUser property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CURRENCY

CURRENCY: StringField<PhysInventoryDocItem> = new StringField('Currency', PhysInventoryDocItem, 'Edm.String')

Static representation of the currency property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CUSTOMER

CUSTOMER: StringField<PhysInventoryDocItem> = new StringField('Customer', PhysInventoryDocItem, 'Edm.String')

Static representation of the customer property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CYCLE_COUNT_TYPE

CYCLE_COUNT_TYPE: StringField<PhysInventoryDocItem> = new StringField('CycleCountType', PhysInventoryDocItem, 'Edm.String')

Static representation of the cycleCountType property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static DIFFERENCE_AMOUNT_IN_CO_CODE_CRCY

DIFFERENCE_AMOUNT_IN_CO_CODE_CRCY: BigNumberField<PhysInventoryDocItem> = new BigNumberField('DifferenceAmountInCoCodeCrcy', PhysInventoryDocItem, 'Edm.Decimal')

Static representation of the differenceAmountInCoCodeCrcy property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static ENTERED_SLS_AMT_IN_CO_CODE_CRCY

ENTERED_SLS_AMT_IN_CO_CODE_CRCY: BigNumberField<PhysInventoryDocItem> = new BigNumberField('EnteredSlsAmtInCoCodeCrcy', PhysInventoryDocItem, 'Edm.Decimal')

Static representation of the enteredSlsAmtInCoCodeCrcy property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static FISCAL_YEAR

FISCAL_YEAR: StringField<PhysInventoryDocItem> = new StringField('FiscalYear', PhysInventoryDocItem, 'Edm.String')

Static representation of the fiscalYear property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static INVENTORY_SPECIAL_STOCK_TYPE

INVENTORY_SPECIAL_STOCK_TYPE: StringField<PhysInventoryDocItem> = new StringField('InventorySpecialStockType', PhysInventoryDocItem, 'Edm.String')

Static representation of the inventorySpecialStockType property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static IS_HANDLED_IN_ALTV_UNIT_OF_MSR

IS_HANDLED_IN_ALTV_UNIT_OF_MSR: BooleanField<PhysInventoryDocItem> = new BooleanField('IsHandledInAltvUnitOfMsr', PhysInventoryDocItem, 'Edm.Boolean')

Static representation of the isHandledInAltvUnitOfMsr property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static IS_VALUE_ONLY_MATERIAL

IS_VALUE_ONLY_MATERIAL: BooleanField<PhysInventoryDocItem> = new BooleanField('IsValueOnlyMaterial', PhysInventoryDocItem, 'Edm.Boolean')

Static representation of the isValueOnlyMaterial property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static LAST_CHANGE_DATE

LAST_CHANGE_DATE: DateField<PhysInventoryDocItem> = new DateField('LastChangeDate', PhysInventoryDocItem, 'Edm.DateTime')

Static representation of the lastChangeDate property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static LAST_CHANGE_DATE_TIME

LAST_CHANGE_DATE_TIME: DateField<PhysInventoryDocItem> = new DateField('LastChangeDateTime', PhysInventoryDocItem, 'Edm.DateTimeOffset')

Static representation of the lastChangeDateTime property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static LAST_CHANGE_USER

LAST_CHANGE_USER: StringField<PhysInventoryDocItem> = new StringField('LastChangeUser', PhysInventoryDocItem, 'Edm.String')

Static representation of the lastChangeUser property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static MATERIAL

MATERIAL: StringField<PhysInventoryDocItem> = new StringField('Material', PhysInventoryDocItem, 'Edm.String')

Static representation of the material property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static MATERIAL_BASE_UNIT

MATERIAL_BASE_UNIT: StringField<PhysInventoryDocItem> = new StringField('MaterialBaseUnit', PhysInventoryDocItem, 'Edm.String')

Static representation of the materialBaseUnit property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static MATERIAL_DOCUMENT

MATERIAL_DOCUMENT: StringField<PhysInventoryDocItem> = new StringField('MaterialDocument', PhysInventoryDocItem, 'Edm.String')

Static representation of the materialDocument property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static MATERIAL_DOCUMENT_ITEM

MATERIAL_DOCUMENT_ITEM: StringField<PhysInventoryDocItem> = new StringField('MaterialDocumentItem', PhysInventoryDocItem, 'Edm.String')

Static representation of the materialDocumentItem property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static MATERIAL_DOCUMENT_YEAR

MATERIAL_DOCUMENT_YEAR: StringField<PhysInventoryDocItem> = new StringField('MaterialDocumentYear', PhysInventoryDocItem, 'Edm.String')

Static representation of the materialDocumentYear property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static PHYSICAL_INVENTORY_DOCUMENT

PHYSICAL_INVENTORY_DOCUMENT: StringField<PhysInventoryDocItem> = new StringField('PhysicalInventoryDocument', PhysInventoryDocItem, 'Edm.String')

Static representation of the physicalInventoryDocument property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static PHYSICAL_INVENTORY_DOCUMENT_ITEM

PHYSICAL_INVENTORY_DOCUMENT_ITEM: StringField<PhysInventoryDocItem> = new StringField('PhysicalInventoryDocumentItem', PhysInventoryDocItem, 'Edm.String')

Static representation of the physicalInventoryDocumentItem property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static PHYSICAL_INVENTORY_ITEM_IS_COUNTED

PHYSICAL_INVENTORY_ITEM_IS_COUNTED: BooleanField<PhysInventoryDocItem> = new BooleanField('PhysicalInventoryItemIsCounted', PhysInventoryDocItem, 'Edm.Boolean')

Static representation of the physicalInventoryItemIsCounted property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static PHYSICAL_INVENTORY_ITEM_IS_ZERO

PHYSICAL_INVENTORY_ITEM_IS_ZERO: BooleanField<PhysInventoryDocItem> = new BooleanField('PhysicalInventoryItemIsZero', PhysInventoryDocItem, 'Edm.Boolean')

Static representation of the physicalInventoryItemIsZero property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static PHYSICAL_INVENTORY_LAST_COUNT_DATE

PHYSICAL_INVENTORY_LAST_COUNT_DATE: DateField<PhysInventoryDocItem> = new DateField('PhysicalInventoryLastCountDate', PhysInventoryDocItem, 'Edm.DateTime')

Static representation of the physicalInventoryLastCountDate property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static PHYSICAL_INVENTORY_STOCK_TYPE

PHYSICAL_INVENTORY_STOCK_TYPE: StringField<PhysInventoryDocItem> = new StringField('PhysicalInventoryStockType', PhysInventoryDocItem, 'Edm.String')

Static representation of the physicalInventoryStockType property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static PHYS_INVENTORY_REFERENCE_NUMBER

PHYS_INVENTORY_REFERENCE_NUMBER: StringField<PhysInventoryDocItem> = new StringField('PhysInventoryReferenceNumber', PhysInventoryDocItem, 'Edm.String')

Static representation of the physInventoryReferenceNumber property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static PHYS_INVTRY_CT_AMT_IN_CO_CODE_CRCY

PHYS_INVTRY_CT_AMT_IN_CO_CODE_CRCY: BigNumberField<PhysInventoryDocItem> = new BigNumberField('PhysInvtryCtAmtInCoCodeCrcy', PhysInventoryDocItem, 'Edm.Decimal')

Static representation of the physInvtryCtAmtInCoCodeCrcy property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static PHYS_INVTRY_DIFFERENCE_IS_POSTED

PHYS_INVTRY_DIFFERENCE_IS_POSTED: BooleanField<PhysInventoryDocItem> = new BooleanField('PhysInvtryDifferenceIsPosted', PhysInventoryDocItem, 'Edm.Boolean')

Static representation of the physInvtryDifferenceIsPosted property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static PHYS_INVTRY_ITEM_IS_DELETED

PHYS_INVTRY_ITEM_IS_DELETED: BooleanField<PhysInventoryDocItem> = new BooleanField('PhysInvtryItemIsDeleted', PhysInventoryDocItem, 'Edm.Boolean')

Static representation of the physInvtryItemIsDeleted property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static PHYS_INVTRY_ITEM_IS_RECOUNTED

PHYS_INVTRY_ITEM_IS_RECOUNTED: BooleanField<PhysInventoryDocItem> = new BooleanField('PhysInvtryItemIsRecounted', PhysInventoryDocItem, 'Edm.Boolean')

Static representation of the physInvtryItemIsRecounted property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static PHYS_INVTRY_RECOUNT_DOCUMENT

PHYS_INVTRY_RECOUNT_DOCUMENT: StringField<PhysInventoryDocItem> = new StringField('PhysInvtryRecountDocument', PhysInventoryDocItem, 'Edm.String')

Static representation of the physInvtryRecountDocument property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static PLANT

PLANT: StringField<PhysInventoryDocItem> = new StringField('Plant', PhysInventoryDocItem, 'Edm.String')

Static representation of the plant property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static POSTING_DATE

POSTING_DATE: DateField<PhysInventoryDocItem> = new DateField('PostingDate', PhysInventoryDocItem, 'Edm.DateTime')

Static representation of the postingDate property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static QUANTITY

QUANTITY: BigNumberField<PhysInventoryDocItem> = new BigNumberField('Quantity', PhysInventoryDocItem, 'Edm.Decimal')

Static representation of the quantity property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static QUANTITY_IN_UNIT_OF_ENTRY

QUANTITY_IN_UNIT_OF_ENTRY: BigNumberField<PhysInventoryDocItem> = new BigNumberField('QuantityInUnitOfEntry', PhysInventoryDocItem, 'Edm.Decimal')

Static representation of the quantityInUnitOfEntry property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static REASON_FOR_PHYS_INVTRY_DIFFERENCE

REASON_FOR_PHYS_INVTRY_DIFFERENCE: StringField<PhysInventoryDocItem> = new StringField('ReasonForPhysInvtryDifference', PhysInventoryDocItem, 'Edm.String')

Static representation of the reasonForPhysInvtryDifference property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static SALES_ORDER

SALES_ORDER: StringField<PhysInventoryDocItem> = new StringField('SalesOrder', PhysInventoryDocItem, 'Edm.String')

Static representation of the salesOrder property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static SALES_ORDER_ITEM

SALES_ORDER_ITEM: StringField<PhysInventoryDocItem> = new StringField('SalesOrderItem', PhysInventoryDocItem, 'Edm.String')

Static representation of the salesOrderItem property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static SLS_PRICE_AMOUNT_IN_CO_CODE_CRCY

SLS_PRICE_AMOUNT_IN_CO_CODE_CRCY: BigNumberField<PhysInventoryDocItem> = new BigNumberField('SlsPriceAmountInCoCodeCrcy', PhysInventoryDocItem, 'Edm.Decimal')

Static representation of the slsPriceAmountInCoCodeCrcy property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static STORAGE_LOCATION

STORAGE_LOCATION: StringField<PhysInventoryDocItem> = new StringField('StorageLocation', PhysInventoryDocItem, 'Edm.String')

Static representation of the storageLocation property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static SUPPLIER

SUPPLIER: StringField<PhysInventoryDocItem> = new StringField('Supplier', PhysInventoryDocItem, 'Edm.String')

Static representation of the supplier property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static TO_PHYSICAL_INVENTORY_DOCUMENT

TO_PHYSICAL_INVENTORY_DOCUMENT: OneToOneLink<PhysInventoryDocItem, PhysInventoryDocHeader> = new OneToOneLink('to_PhysicalInventoryDocument', PhysInventoryDocItem, PhysInventoryDocHeader)

Static representation of the one-to-one navigation property toPhysicalInventoryDocument for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static UNIT_OF_ENTRY

UNIT_OF_ENTRY: StringField<PhysInventoryDocItem> = new StringField('UnitOfEntry', PhysInventoryDocItem, 'Edm.String')

Static representation of the unitOfEntry property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static WBS_ELEMENT

WBS_ELEMENT: StringField<PhysInventoryDocItem> = new StringField('WBSElement', PhysInventoryDocItem, 'Edm.String')

Static representation of the wbsElement property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static _allFields

_allFields: Array<StringField<PhysInventoryDocItem> | DateField<PhysInventoryDocItem> | BooleanField<PhysInventoryDocItem> | BigNumberField<PhysInventoryDocItem> | OneToOneLink<PhysInventoryDocItem, PhysInventoryDocHeader>> = [PhysInventoryDocItem.FISCAL_YEAR,PhysInventoryDocItem.PHYSICAL_INVENTORY_DOCUMENT,PhysInventoryDocItem.PHYSICAL_INVENTORY_DOCUMENT_ITEM,PhysInventoryDocItem.PLANT,PhysInventoryDocItem.STORAGE_LOCATION,PhysInventoryDocItem.MATERIAL,PhysInventoryDocItem.BATCH,PhysInventoryDocItem.INVENTORY_SPECIAL_STOCK_TYPE,PhysInventoryDocItem.PHYSICAL_INVENTORY_STOCK_TYPE,PhysInventoryDocItem.SALES_ORDER,PhysInventoryDocItem.SALES_ORDER_ITEM,PhysInventoryDocItem.SUPPLIER,PhysInventoryDocItem.CUSTOMER,PhysInventoryDocItem.WBS_ELEMENT,PhysInventoryDocItem.LAST_CHANGE_USER,PhysInventoryDocItem.LAST_CHANGE_DATE,PhysInventoryDocItem.COUNTED_BY_USER,PhysInventoryDocItem.PHYSICAL_INVENTORY_LAST_COUNT_DATE,PhysInventoryDocItem.ADJUSTMENT_POSTING_MADE_BY_USER,PhysInventoryDocItem.POSTING_DATE,PhysInventoryDocItem.PHYSICAL_INVENTORY_ITEM_IS_COUNTED,PhysInventoryDocItem.PHYS_INVTRY_DIFFERENCE_IS_POSTED,PhysInventoryDocItem.PHYS_INVTRY_ITEM_IS_RECOUNTED,PhysInventoryDocItem.PHYS_INVTRY_ITEM_IS_DELETED,PhysInventoryDocItem.IS_HANDLED_IN_ALTV_UNIT_OF_MSR,PhysInventoryDocItem.CYCLE_COUNT_TYPE,PhysInventoryDocItem.IS_VALUE_ONLY_MATERIAL,PhysInventoryDocItem.PHYS_INVENTORY_REFERENCE_NUMBER,PhysInventoryDocItem.MATERIAL_DOCUMENT,PhysInventoryDocItem.MATERIAL_DOCUMENT_YEAR,PhysInventoryDocItem.MATERIAL_DOCUMENT_ITEM,PhysInventoryDocItem.PHYS_INVTRY_RECOUNT_DOCUMENT,PhysInventoryDocItem.PHYSICAL_INVENTORY_ITEM_IS_ZERO,PhysInventoryDocItem.REASON_FOR_PHYS_INVTRY_DIFFERENCE,PhysInventoryDocItem.MATERIAL_BASE_UNIT,PhysInventoryDocItem.BOOK_QTY_BFR_COUNT_IN_MATL_BASE_UNIT,PhysInventoryDocItem.QUANTITY,PhysInventoryDocItem.UNIT_OF_ENTRY,PhysInventoryDocItem.QUANTITY_IN_UNIT_OF_ENTRY,PhysInventoryDocItem.CURRENCY,PhysInventoryDocItem.DIFFERENCE_AMOUNT_IN_CO_CODE_CRCY,PhysInventoryDocItem.ENTERED_SLS_AMT_IN_CO_CODE_CRCY,PhysInventoryDocItem.SLS_PRICE_AMOUNT_IN_CO_CODE_CRCY,PhysInventoryDocItem.PHYS_INVTRY_CT_AMT_IN_CO_CODE_CRCY,PhysInventoryDocItem.BOOK_QTY_AMOUNT_IN_CO_CODE_CRCY,PhysInventoryDocItem.LAST_CHANGE_DATE_TIME,PhysInventoryDocItem.TO_PHYSICAL_INVENTORY_DOCUMENT]

All fields of the PhysInventoryDocItem entity.

Static _defaultServicePath

_defaultServicePath: string = "/sap/opu/odata/sap/API_PHYSICAL_INVENTORY_DOC_SRV"

Default url path for the according service.

Static _entityName

_entityName: string = "A_PhysInventoryDocItem"

Technical entity name for PhysInventoryDocItem.

Static _keyFields

_keyFields: Array<Selectable<PhysInventoryDocItem>> = [PhysInventoryDocItem.FISCAL_YEAR, PhysInventoryDocItem.PHYSICAL_INVENTORY_DOCUMENT, PhysInventoryDocItem.PHYSICAL_INVENTORY_DOCUMENT_ITEM]

All key fields of the PhysInventoryDocItem entity.

Static _keys

_keys: any = PhysInventoryDocItem._keyFields.reduce((acc: any, field) => {acc[field.fieldName] = field;return acc;}, {})

Mapping of all key field names to the respective static field property PhysInventoryDocItem.

Static _serviceName

_serviceName: string = "API_PHYSICAL_INVENTORY_DOC_SRV"
deprecated

Since v1.0.1 Use _defaultServicePath instead. Technical service name for PhysInventoryDocItem.

Methods

Protected getCurrentMapKeys

  • getCurrentMapKeys(): Entity
  • Returns a map of all defined fields in entity to their current values.

    Returns Entity

    Entity with all defined entity fields

getCustomField

  • getCustomField(fieldName: string): any
  • Custom field value getter.

    Parameters

    • fieldName: string

      The name of the custom field

    Returns any

    The value of the corresponding custom field

getCustomFields

  • getCustomFields(): MapType<any>
  • Returns a map that contains all entity custom fields.

    Returns MapType<any>

    A map of all defined custom fields in the entity

getUpdatedCustomFields

  • getUpdatedCustomFields(): MapType<any>
  • Returns all updated custom field properties compared to the last known remote state.

    Returns MapType<any>

    A map containing all updated custom properties, with their new values

getUpdatedProperties

  • getUpdatedProperties(): Entity
  • Returns all changed properties compared to the last known remote state. The returned properties does not include custom fields. Use getUpdatedCustomFields, if updated custom fields are needed.

    Returns Entity

    Entity with all properties that changed

hasCustomField

  • hasCustomField(fieldName: string): boolean
  • Validates whether a custom field exists in the entity.

    Parameters

    • fieldName: string

      The name of the custom field to update

    Returns boolean

    A boolean value, that indicates whether a custom field is defined in entity

initializeCustomFields

  • initializeCustomFields(customFields: MapType<any>): this
  • Sets all retrieved custom fields in entity.

    Parameters

    • customFields: MapType<any>

      Extracted custom fields from a retrieved entity

    Returns this

    A boolean value, that indicates the existence of the field in entity

Protected isConflictingCustomField

  • isConflictingCustomField(customFieldName: string): boolean
  • Validates whether a field name does not conflict with an original field name and thus can be defined as custom fields.

    Parameters

    • customFieldName: string

      Field name to check

    Returns boolean

    Boolean value that describes whether a field name can be defined as custom field

setCustomField

  • setCustomField(fieldName: string, value: any): this
  • Sets a new custom field in the entity or updates it. Throws an error, if the provided custom field name is already defined by an original field in entity.

    Parameters

    • fieldName: string

      The name of the custom field to update

    • value: any

      The value of the field

    Returns this

    The entity itself, to facilitate method chaining

setOrInitializeRemoteState

  • setOrInitializeRemoteState(state?: MapType<any>): this
  • Initializes or sets the remoteState of the entity. This function is called on all read, create and update requests. This function should be called after initializeCustomFields, if custom fields are defined.

    Parameters

    • Optional state: MapType<any>

      State to be set as remote state

    Returns this

    The entity itself, to facilitate method chaining

setVersionIdentifier

  • setVersionIdentifier(etag: string): this
  • Set the ETag version identifier of the retrieved entity.

    Parameters

    • etag: string

      The returned ETag version of the entity

    Returns this

    The entity itself, to facilitate method chaining

toJSON

  • toJSON(): object
  • Overwrites the default toJSON method so that all instance variables as well as all custom fields of the entity are returned.

    Returns object

    An object containing all instance variables + custom fields.

    • [key: string]: any

Static builder

Static customField

  • Returns a selectable object that allows the selection of custom field in a get request for the entity PhysInventoryDocItem.

    Parameters

    • fieldName: string

      Name of the custom field to select

    Returns CustomField<PhysInventoryDocItem>

    A builder that constructs instances of entity type PhysInventoryDocItem.

Static Protected customFieldSelector

  • customFieldSelector<EntityT>(fieldName: string, entityConstructor: Constructable<EntityT>): CustomField<EntityT>
  • Type parameters

    • EntityT: Entity

    Parameters

    • fieldName: string
    • entityConstructor: Constructable<EntityT>

    Returns CustomField<EntityT>

Static Protected entityBuilder

  • entityBuilder<EntityT, JsonT>(entityConstructor: Constructable<EntityT>): EntityBuilderType<EntityT, JsonT>
  • Type parameters

    • EntityT: Entity

    • JsonT

    Parameters

    • entityConstructor: Constructable<EntityT>

    Returns EntityBuilderType<EntityT, JsonT>

Static requestBuilder

  • Returns a request builder to construct requests for operations on the PhysInventoryDocItem entity type.

    Returns PhysInventoryDocItemRequestBuilder

    A PhysInventoryDocItem request builder.