I_OIL_LgclInvtryAdjmtDocItem

DDL: I_OIL_LGCLINVTRYADJMTDOCITEM Type: view_entity BASIC

LIA Document item Data

I_OIL_LgclInvtryAdjmtDocItem is a Basic CDS View that provides data about "LIA Document item Data" in SAP S/4HANA. It reads from 1 data source (oia08) and exposes 51 fields with key fields LgclInvtryAdjmtDocumentNumber, LgclInvtryAdjmtDocumentYear, LgclInvtryAdjmtDocItemNumber, LgclInvtryAdjmtItmType. It has 18 associations to related views.

Data Sources (1)

SourceAliasJoin Type
oia08 oia08 from

Associations (18)

CardinalityTargetAliasCondition
[1..1] I_CompanyCode _CompanyCode _CompanyCode.CompanyCode = $projection.CompanyCode
[1..1] I_ExchangeAgreementType _ExchangeAgreementType _ExchangeAgreementType.ExchangeAgreementType = $projection.ExchangeAgreementType
[1..1] I_Plant _Plant _Plant.Plant = $projection.Plant
[1..1] I_Material _StockIdentifyingMaterial _StockIdentifyingMaterial.Material = $projection.Material
[1..1] I_Material _Material _Material.Material = $projection.Material
[1..1] I_UnitOfMeasure _UnitOfMeasure _UnitOfMeasure.UnitOfMeasure = $projection.UnitOfMeasure
[1..1] I_UnitOfMeasure _StockKeepingUnit _StockKeepingUnit.UnitOfMeasure = $projection.StockKeepingUnitOfMeasure
[1..1] I_Currency _Currency _Currency.Currency = $projection.Currency
[1..1] I_OIL_PaymentBlockingReasonVH _PaymentBlockingReason _PaymentBlockingReason.PaymentBlockKey = $projection.PaymentBlockKey
[1..1] I_OIL_FeeAcctgProcStringVH _FeeAcctgProcStringVH _FeeAcctgProcStringVH.FeeAccountingProcessKey = $projection.FeeAccountingProcessKey and _FeeAcctgProcStringVH.EXGApplUseSalesAndPurchasing = 'M'
[1..1] I_SalesOrganization _SalesOrganization _SalesOrganization.SalesOrganization = $projection.SalesOrganization
[1..1] I_PurchasingOrganization _PurchasingOrganization _PurchasingOrganization.PurchasingOrganization = $projection.PurchasingOrganization
[1..1] I_Material _DerivedProduct _DerivedProduct.Material = $projection.ExchangeProductNumber
[1..1] I_OIL_CustSuplrPostingIndVH _CustSuplrPostingIndVH _CustSuplrPostingIndVH.LgclInvtryAdjCustSuppPosIn = $projection.LgclInvtryAdjCustSuppPosIn
[1..1] I_OIL_ExchAgrmtMatlPostgRuleVH _ExchAgrmtMatlPostgRuleVH _ExchAgrmtMatlPostgRuleVH.MaterialPostingRule = $projection.MaterialPostingRule
[1..1] I_OIL_InvoiceCycleVH _InvoiceCycleVH _InvoiceCycleVH.InvoiceCycle = $projection.InvoiceCycle
[1..1] I_OIL_BalanceAdjustmentTypeVH _BalanceAdjustmentTypeVH _BalanceAdjustmentTypeVH.LgclInvtryAdjmtItmType = $projection.LgclInvtryAdjmtItmType
[1..1] I_TaxCode _TaxCode _TaxCode.TaxCode = $projection.TaxCode and _TaxCode.TaxCalculationProcedure = $projection.TaxCalculationProcedure

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label LIA Document item Data view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (51)

KeyFieldSource TableSource FieldDescription
KEY LgclInvtryAdjmtDocumentNumber upenum LIA number
KEY LgclInvtryAdjmtDocumentYear mjahr Mat. Doc. Year
KEY LgclInvtryAdjmtDocItemNumber segnum LIA doc item
KEY LgclInvtryAdjmtItmType item_type Type
CompanyCode bukrs Value
ExchangeAgreementType exgtyp Exchange type
ExchangeAgreement exgnum Exchange no.
Plant werks Receiving Plant
Material matnr Vehicle Model
UnitOfMeasure meins Valuation Unit
TransacUnitOfMeasureQuantity menge WarrCountValue
StockKeepingUnitOfMeasure skmeins Stock UoM
StockKeepingQuantity skmenge Qty in ST.UoM
DocumentDate bldat Journal Entry Date
PostingDate budat Posting Date
Currency waers Transaction Currency
LgclInvtryAdjmtPaymentAmount pymt LIA pyt amt.
PaymentTerms zterm Terms of Payment
PaymentBlockKey zlspr Pymt Lock Rsn
LgclInvtryAdjCustSuppPosIn cvind Cust/vend.ind
SalesOrganization vkorg SD Sales Org.
PurchasingOrganization ekorg Purchasing Org.
TaxCode taxcd Tax Code
ItemTextLgclInvtryAdjmt sgtxt Text
NgtvAdjmtIndForAdjmt negadj Neg. adjustment
ExchangeProductNumber subprod Sub product no.
InvoiceCycle oicycle Invoice cycle
LadingExternalBill oid_extbol Extern.BOL no.
QtyAdjmtValLocAmount lia_dmbtr LIA valua
MaterialPostingRule matpst Mat.posting
FeeAccountingProcessKey ktosl Transaction
SchedgLineDataAgingFilterDate _dataaging Data Aging
TaxCalculationProcedure
_CustSuplrPostingIndVH _CustSuplrPostingIndVH
_ExchAgrmtMatlPostgRuleVH _ExchAgrmtMatlPostgRuleVH
_CompanyCode _CompanyCode
_ExchangeAgreementType _ExchangeAgreementType
_Plant _Plant
_StockIdentifyingMaterial _StockIdentifyingMaterial
_Material _Material
_UnitOfMeasure _UnitOfMeasure
_StockKeepingUnit _StockKeepingUnit
_Currency _Currency
_PaymentBlockingReason _PaymentBlockingReason
_FeeAcctgProcStringVH _FeeAcctgProcStringVH
_SalesOrganization _SalesOrganization
_PurchasingOrganization _PurchasingOrganization
_DerivedProduct _DerivedProduct
_InvoiceCycleVH _InvoiceCycleVH
_BalanceAdjustmentTypeVH _BalanceAdjustmentTypeVH
_TaxCode _TaxCode

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view I_OIL_LgclInvtryAdjmtDocItem.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.

CREATE VIEW I_OIL_LgclInvtryAdjmtDocItem AS
SELECT
  upenum AS LgclInvtryAdjmtDocumentNumber,
  mjahr AS LgclInvtryAdjmtDocumentYear,
  segnum AS LgclInvtryAdjmtDocItemNumber,
  item_type AS LgclInvtryAdjmtItmType,
  bukrs AS CompanyCode,
  exgtyp AS ExchangeAgreementType,
  exgnum AS ExchangeAgreement,
  werks AS Plant,
  matnr AS Material,
  meins AS UnitOfMeasure,
  menge AS TransacUnitOfMeasureQuantity,
  skmeins AS StockKeepingUnitOfMeasure,
  skmenge AS StockKeepingQuantity,
  bldat AS DocumentDate,
  budat AS PostingDate,
  waers AS Currency,
  pymt AS LgclInvtryAdjmtPaymentAmount,
  zterm AS PaymentTerms,
  zlspr AS PaymentBlockKey,
  cvind AS LgclInvtryAdjCustSuppPosIn,
  vkorg AS SalesOrganization,
  ekorg AS PurchasingOrganization,
  taxcd AS TaxCode,
  sgtxt AS ItemTextLgclInvtryAdjmt,
  negadj AS NgtvAdjmtIndForAdjmt,
  subprod AS ExchangeProductNumber,
  oicycle AS InvoiceCycle,
  oid_extbol AS LadingExternalBill,
  lia_dmbtr AS QtyAdjmtValLocAmount,
  matpst AS MaterialPostingRule,
  ktosl AS FeeAccountingProcessKey,
  _CompanyCode._Country.TaxCalculationProcedure AS TaxCalculationProcedure
FROM oia08
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON _CompanyCode.CompanyCode = CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_ExchangeAgreementType AS _ExchangeAgreementType ON _ExchangeAgreementType.ExchangeAgreementType = ExchangeAgreementType  -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON _Plant.Plant = Plant  -- association [1..1]
LEFT OUTER JOIN I_Material AS _StockIdentifyingMaterial ON _StockIdentifyingMaterial.Material = Material  -- association [1..1]
LEFT OUTER JOIN I_Material AS _Material ON _Material.Material = Material  -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON _UnitOfMeasure.UnitOfMeasure = UnitOfMeasure  -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _StockKeepingUnit ON _StockKeepingUnit.UnitOfMeasure = StockKeepingUnitOfMeasure  -- association [1..1]
LEFT OUTER JOIN I_Currency AS _Currency ON _Currency.Currency = Currency  -- association [1..1]
LEFT OUTER JOIN I_OIL_PaymentBlockingReasonVH AS _PaymentBlockingReason ON _PaymentBlockingReason.PaymentBlockKey = PaymentBlockKey  -- association [1..1]
LEFT OUTER JOIN I_OIL_FeeAcctgProcStringVH AS _FeeAcctgProcStringVH ON _FeeAcctgProcStringVH.FeeAccountingProcessKey = FeeAccountingProcessKey AND _FeeAcctgProcStringVH.EXGApplUseSalesAndPurchasing = 'M'  -- association [1..1]
LEFT OUTER JOIN I_SalesOrganization AS _SalesOrganization ON _SalesOrganization.SalesOrganization = SalesOrganization  -- association [1..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON _PurchasingOrganization.PurchasingOrganization = PurchasingOrganization  -- association [1..1]
LEFT OUTER JOIN I_Material AS _DerivedProduct ON _DerivedProduct.Material = ExchangeProductNumber  -- association [1..1]
LEFT OUTER JOIN I_OIL_CustSuplrPostingIndVH AS _CustSuplrPostingIndVH ON _CustSuplrPostingIndVH.LgclInvtryAdjCustSuppPosIn = LgclInvtryAdjCustSuppPosIn  -- association [1..1]
LEFT OUTER JOIN I_OIL_ExchAgrmtMatlPostgRuleVH AS _ExchAgrmtMatlPostgRuleVH ON _ExchAgrmtMatlPostgRuleVH.MaterialPostingRule = MaterialPostingRule  -- association [1..1]
LEFT OUTER JOIN I_OIL_InvoiceCycleVH AS _InvoiceCycleVH ON _InvoiceCycleVH.InvoiceCycle = InvoiceCycle  -- association [1..1]
LEFT OUTER JOIN I_OIL_BalanceAdjustmentTypeVH AS _BalanceAdjustmentTypeVH ON _BalanceAdjustmentTypeVH.LgclInvtryAdjmtItmType = LgclInvtryAdjmtItmType  -- association [1..1]
LEFT OUTER JOIN I_TaxCode AS _TaxCode ON _TaxCode.TaxCode = TaxCode AND _TaxCode.TaxCalculationProcedure = TaxCalculationProcedure  -- association [1..1]
;