I_SubcontractingComponent
Subcontracting Component
I_SubcontractingComponent is a Basic CDS View (Dimension) that provides data about "Subcontracting Component" in SAP S/4HANA. It reads from 1 data source (resb) and exposes 159 fields with key fields Reservation, ReservationItem, RecordType. It has 44 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| resb | mdsb | from |
Associations (44)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ReservationDocumentHeader | _Reservation | $projection.Reservation = _Reservation .Reservation |
| [1..1] | I_ReservationDocumentItem | _ReservationItem | $projection.Reservation = _ReservationItem.Reservation and $projection.ReservationItem = _ReservationItem.ReservationItem and $projection.RecordType = _ReservationItem.RecordType |
| [0..1] | I_ReservationDocRecordType | _ReservationRecordType | $projection.RecordType = _ReservationRecordType.RecordType |
| [1..1] | I_MaterialGroup | _MaterialGroup | $projection.MaterialGroup = _MaterialGroup.MaterialGroup |
| [1..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [1..1] | I_Product | _Product | $projection.Material = _Product.Product |
| [1..*] | I_ProductUnitsOfMeasure | _ProductUnitsOfMeasure | $projection.Material = _ProductUnitsOfMeasure.Product |
| [1..1] | I_ProductPlantBasic | _ProductPlant | $projection.Material = _ProductPlant.Product and $projection.Plant = _ProductPlant.Plant |
| [0..1] | I_ProductSupplyPlanning | _ProductSupplyPlanning | $projection.Material = _ProductSupplyPlanning.Product and $projection.Plant = _ProductSupplyPlanning.Plant |
| [0..1] | I_ProductStorageLocationBasic | _ProductStorageLocation | $projection.Material = _ProductStorageLocation.Product and $projection.Plant = _ProductStorageLocation.Plant and $projection.StorageLocation = _ProductStorageLocation.StorageLocation |
| [1..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_StorageLocation | _StorageLocation | $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation |
| [0..1] | I_Batch | _Batch | $projection.Material = _Batch.Material and $projection.Plant = _Batch.Plant and $projection.Batch = _Batch.Batch |
| [0..1] | I_ProductionSupplyArea | _ProductionSupplyArea | $projection.Plant = _ProductionSupplyArea.Plant and $projection.ProductionSupplyArea = _ProductionSupplyArea.ProductionSupplyArea |
| [0..1] | I_DebitCreditCode | _DebitCreditCode | $projection.DebitCreditCode = _DebitCreditCode.DebitCreditCode |
| [0..1] | I_GoodsMovementType | _GoodsMovementType | $projection.GoodsMovementType = _GoodsMovementType.GoodsMovementType |
| [0..1] | I_InventorySpecialStockType | _InventorySpecialStockType | $projection.InventorySpecialStockType = _InventorySpecialStockType.InventorySpecialStockType |
| [0..1] | I_InvtrySpecialStockValnType | _InventorySpecialStockValnType | $projection.InventorySpecialStockValnType = _InventorySpecialStockValnType.InventorySpecialStockValnType |
| [0..1] | I_ConsumptionPosting | _ConsumptionPosting | $projection.ConsumptionPosting = _ConsumptionPosting.ConsumptionPosting |
| [0..1] | I_AccountAssignmentCategory | _AccountAssignmentCategory | $projection.AccountAssignmentCategory = _AccountAssignmentCategory.AccountAssignmentCategory |
| [0..1] | I_FunctionalArea | _FunctionalArea | $projection.FunctionalArea = _FunctionalArea.FunctionalArea |
| [0..1] | I_BusinessArea | _BusinessArea | $projection.BusinessArea = _BusinessArea.BusinessArea |
| [0..*] | I_GLAccount | _GLAccount | $projection.GLAccount = _GLAccount.GLAccount |
| [0..1] | I_PlannedOrder | _PlannedOrder | $projection.PlannedOrder = _PlannedOrder.PlannedOrder |
| [0..1] | I_LogisticsOrder | _Order | $projection.OrderID = _Order.OrderID |
| [0..1] | I_PurchasingGroup | _PurchasingGroup | $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup |
| [0..1] | I_PurchasingInfoRecordApi01 | _PurchasingInfoRecord | $projection.PurchasingInfoRecord = _PurchasingInfoRecord.PurchasingInfoRecord |
| [0..1] | I_PurchasingDocument | _PurchasingDocument | $projection.PurchasingDocument = _PurchasingDocument.PurchasingDocument |
| [0..1] | I_PurchasingDocumentItem | _PurchasingDocumentItem | $projection.PurchasingDocument = _PurchasingDocumentItem.PurchasingDocument and $projection.PurchasingDocumentItem = _PurchasingDocumentItem.PurchasingDocumentItem |
| [0..1] | I_PurchaseRequisitionItemAPI01 | _PurchaseRequisitionItem | $projection.PurchaseRequisition = _PurchaseRequisitionItem.PurchaseRequisition and $projection.PurchaseRequisitionItem = _PurchaseRequisitionItem.PurchaseRequisitionItem |
| [0..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [0..1] | I_ChangeMaster | _ChangeNumber | $projection.ChangeNumber = _ChangeNumber.ChangeNumber |
| [0..1] | I_BOMExplosionDate | _BOMExplosion | $projection.BOMExplosionDateID = _BOMExplosion.BOMExplosionDateID |
| [0..1] | I_MatlCompDiscontinuationType | _MatlCompDiscontinuationType | $projection.MatlCompDiscontinuationType = _MatlCompDiscontinuationType.MatlCompDiscontinuationType |
| [0..1] | I_MatlCompProvisionType | _ProvisionType | $projection.MaterialProvisionType = _ProvisionType.MaterialProvisionType |
| [0..1] | I_MatlCompSparePartType | _SparePartType | $projection.MatlComponentSparePartType = _SparePartType.MatlComponentSparePartType |
| [0..1] | I_Product | _FollowUpMaterial | $projection.FollowUpMaterial = _FollowUpMaterial.Product |
| [0..1] | I_Material | _Assembly | $projection.Assembly = _Assembly.Material |
| [0..1] | I_Language | _Language | $projection.LongTextLanguageCode = _Language.Language |
| [0..1] | I_UnitOfMeasure | _VariableSizeCompUnit | $projection.VariableSizeComponentUnit = _VariableSizeCompUnit.UnitOfMeasure |
| [0..1] | I_UnitOfMeasure | _VariableSize1To3Unit | $projection.UnitOfMeasureForSize1To3 = _VariableSize1To3Unit.UnitOfMeasure |
| [0..1] | I_UnitOfMeasure | _LeadTimeOffsetUnit | $projection.OperationLeadTimeOffsetUnit = _LeadTimeOffsetUnit.UnitOfMeasure |
| [1..1] | I_UnitOfMeasure | _BaseUnit | $projection.BaseUnit = _BaseUnit.UnitOfMeasure |
| [0..1] | I_UnitOfMeasure | _EntryUnit | $projection.EntryUnit = _EntryUnit.UnitOfMeasure |
Annotations (17)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPPSUBCONTRCOMP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.internalName | #LOCAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ClientHandling.type | #CLIENT_DEPENDENT | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| ObjectModel.representativeKey | ReservationItem | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Subcontracting Component | view |
Fields (159)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Reservation | resb | rsnum | Reservation |
| KEY | ReservationItem | |||
| KEY | RecordType | |||
| MaterialGroup | resb | matkl | Product Sold Group | |
| Material | resb | matnr | Vehicle Model | |
| Plant | resb | werks | Receiving Plant | |
| StorageLocation | ||||
| Batch | resb | charg | Chargeable Proc. | |
| ProductionSupplyArea | ||||
| StockSegment | resb | sgt_scat | Stock Segment | |
| RequirementSegment | resb | sgt_rcat | Req. Segment | |
| RequirementDate | ||||
| RequirementTime | ||||
| LatestRequirementDate | ||||
| ReservationIsFinallyIssued | resb | kzear | Final Issue | |
| MatlCompIsMarkedForDeletion | ||||
| MaterialComponentIsMissing | resb | xfehl | Missing Part | |
| IsBulkMaterialComponent | resb | schgt | Bulk material | |
| MatlCompIsTextItem | resb | txtps | Text Item | |
| MatlCompIsConfigurable | resb | kfpos | Configur. Item | |
| MaterialComponentIsClassified | resb | clakz | Classification | |
| MaterialCompIsIntraMaterial | resb | inpos | Intra Material | |
| PlannedOrder | resb | plnum | Planned Order | |
| OrderID | resb | aufnr | SettlementOrder | |
| OrderInternalID | ||||
| OrderOperationInternalID | ||||
| PurchasingGroup | ||||
| PurchasingInfoRecord | ||||
| PurchaseRequisition | ||||
| PurchaseRequisitionItem | ||||
| PurchasingDocument | ||||
| PurchasingDocumentItem | ||||
| ScheduleLine | resb | ebele | Schedule Line | |
| Supplier | resb | lifnr | Vendor no. | |
| BillOfMaterialCategory | ||||
| BillOfMaterialInternalID | resb | stlnr | BOM | |
| BillOfMaterialInternalID_2 | ||||
| BillOfMaterialVariant | resb | stlal | AlternativeBOM | |
| BillOfMaterialVersion | resb | bom_versn | BOM Version | |
| BOMItem | ||||
| BOMItemInternalChangeCount | resb | stpoz | Counter | |
| InheritedBOMItemNode | resb | stvkn | Nodes | |
| BOMItemCategory | ||||
| BillOfMaterialItemNumber | resb | posnr | WBS Element | |
| BillOfMaterialItemNumber_2 | ||||
| BOMItemDescription | resb | potx1 | Item Text | |
| BOMItemText2 | resb | potx2 | Item Text | |
| BOMExplosionDateID | ||||
| DebitCreditCode | ||||
| GoodsMovementType | resb | bwart | Valuation Type | |
| InventorySpecialStockType | ||||
| InventorySpecialStockValnType | ||||
| ConsumptionPosting | ||||
| AccountAssignmentCategory | ||||
| MaterialCompIsCostRelevant | resb | sanka | CostingRelevncy | |
| MaterialCompCostingRelevancy | resb | sanka | CostingRelevncy | |
| BusinessArea | resb | gsber | Business Area | |
| saknrasGLAccount | ||||
| FunctionalArea | resb | fkber | Functional Area | |
| LongTextLanguageCode | resb | ltxsp | Long text lang | |
| ChangeNumber | resb | aennr | Change Number | |
| MaterialRevisionLevel | resb | revlv | Revision Level | |
| MaterialRevisionLevel_2 | ||||
| QuantityDistributionKey | resb | verti | Distribution | |
| EffectivityParameterVariant | resb | techs | Tech st from | |
| ProductConfiguration | resb | cuobj | Object Number | |
| SortField | resb | sortf | Sort string | |
| MatlCompFreeDefinedAttribute | resb | sortf | Sort string | |
| MaterialCompIsVariableSized | resb | rohps | Var-Sized Item | |
| NumberOfVariableSizeComponents | ||||
| VariableSizeItemQuantity | ||||
| VariableSizeComponentUnit | ||||
| VariableSizeComponentQuantity | ||||
| UnitOfMeasureForSize1To3 | resb | romei | Size unit | |
| Size1 | resb | roms1 | Size 1 | |
| Size2 | resb | roms2 | Size 2 | |
| Size3 | resb | roms3 | Size 3 | |
| FormulaKey | resb | rform | VSI Formula | |
| MaterialCompIsAlternativeItem | resb | alpos | Alternat. item | |
| AlternativeItemGroup | ||||
| AlternativeItemStrategy | ||||
| AlternativeItemPriority | ||||
| UsageProbabilityPercent | resb | ewahr | Usg Probability | |
| DiscontinuationGroup | ||||
| MatlCompDiscontinuationType | resb | kzaus | Share of scrap | |
| MatlCompIsFollowUpMaterial | ||||
| FollowUpGroup | ||||
| FollowUpMaterial | ||||
| FollowUpMaterialIsActive | ||||
| MaterialComponentIsPhantomItem | ||||
| OrderPathValue | resb | aufwg | Order path | |
| OrderLevelValue | resb | aufst | Order level | |
| Assembly | resb | baugr | Pegged Reqmt | |
| AssemblyOrderPathValue | resb | bauwg | Assbly Ord.Path | |
| AssemblyOrderLevelValue | resb | baust | Assbly Ord. Lvl | |
| IsMaterialProvision | resb | beikz | Mat. Prov. Ind. | |
| MaterialProvisionType | ||||
| SparePartFltrType | resb | erskz | Spare Part ID | |
| MatlComponentSparePartType | ||||
| LeadTimeOffset | ||||
| OperationLeadTimeOffsetUnit | ||||
| OperationLeadTimeOffset | ||||
| QuantityIsFixed | resb | fmeng | Qty. is fixed | |
| ComponentScrapInPercent | resb | ausch | Sep. Scrap CostComps | |
| OperationScrapInPercent | resb | avoau | Operation Scrap | |
| IsNetScrap | resb | netau | Net Indicator | |
| MaterialQtyToBaseQtyNmrtr | resb | umrez | Numerator | |
| MaterialQtyToBaseQtyDnmntr | resb | umren | Denominator | |
| BaseUnit | resb | meins | Valuation Unit | |
| RequiredQuantity | resb | bdmng | Threshold value | |
| WithdrawnQuantity | ||||
| MaterialCompOriginalQuantity | ||||
| MaterialComponentUsageQuantity | resb | esmng | Usage qty - UoM | |
| EntryUnit | resb | erfme | Unit of Entry | |
| QuantityInEntryUnit | ||||
| _Reservation | _Reservation | |||
| _ReservationItem | _ReservationItem | |||
| _ReservationRecordType | _ReservationRecordType | |||
| _MaterialGroup | _MaterialGroup | |||
| _Material | _Material | |||
| _Product | _Product | |||
| _ProductUnitsOfMeasure | _ProductUnitsOfMeasure | |||
| _ProductPlant | _ProductPlant | |||
| _ProductStorageLocation | _ProductStorageLocation | |||
| _ProductSupplyPlanning | _ProductSupplyPlanning | |||
| _Plant | _Plant | |||
| _StorageLocation | _StorageLocation | |||
| _Batch | _Batch | |||
| _ProductionSupplyArea | _ProductionSupplyArea | |||
| _DebitCreditCode | _DebitCreditCode | |||
| _GoodsMovementType | _GoodsMovementType | |||
| _InventorySpecialStockType | _InventorySpecialStockType | |||
| _InventorySpecialStockValnType | _InventorySpecialStockValnType | |||
| _ConsumptionPosting | _ConsumptionPosting | |||
| _AccountAssignmentCategory | _AccountAssignmentCategory | |||
| _BusinessArea | _BusinessArea | |||
| _GLAccount | _GLAccount | |||
| _FunctionalArea | _FunctionalArea | |||
| _PlannedOrder | _PlannedOrder | |||
| _Order | _Order | |||
| _PurchasingGroup | _PurchasingGroup | |||
| _PurchasingInfoRecord | _PurchasingInfoRecord | |||
| _PurchasingDocument | _PurchasingDocument | |||
| _PurchasingDocumentItem | _PurchasingDocumentItem | |||
| _PurchaseRequisitionItem | _PurchaseRequisitionItem | |||
| _Supplier | _Supplier | |||
| _ChangeNumber | _ChangeNumber | |||
| _BOMExplosion | _BOMExplosion | |||
| _Assembly | _Assembly | |||
| _VariableSizeCompUnit | _VariableSizeCompUnit | |||
| _VariableSize1To3Unit | _VariableSize1To3Unit | |||
| _FollowUpMaterial | _FollowUpMaterial | |||
| _MatlCompDiscontinuationType | _MatlCompDiscontinuationType | |||
| _ProvisionType | _ProvisionType | |||
| _SparePartType | _SparePartType | |||
| _LeadTimeOffsetUnit | _LeadTimeOffsetUnit | |||
| _Language | _Language | |||
| _BaseUnit | _BaseUnit | |||
| _EntryUnit | _EntryUnit |
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_SubcontractingComponent.
-- 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.
-- SQL view name: IPPSUBCONTRCOMP
CREATE VIEW I_SubcontractingComponent AS
SELECT
mdsb.rsnum AS Reservation,
cast(mdsb.rspos as pph_rspos preserving type) AS ReservationItem,
cast(mdsb.rsart as pph_rsart preserving type) AS RecordType,
mdsb.matkl AS MaterialGroup,
mdsb.matnr AS Material,
mdsb.werks AS Plant,
cast(mdsb.lgort as pph_lgort preserving type) AS StorageLocation,
mdsb.charg AS Batch,
cast(mdsb.prvbe as pph_prvbe preserving type) AS ProductionSupplyArea,
mdsb.sgt_scat AS StockSegment,
mdsb.sgt_rcat AS RequirementSegment,
cast(mdsb.bdter as pph_bdter preserving type) AS RequirementDate,
cast(mdsb.bdztp as pph_bdztp preserving type) AS RequirementTime,
cast(mdsb.sbter as pph_sbter preserving type) AS LatestRequirementDate,
mdsb.kzear AS ReservationIsFinallyIssued,
cast(mdsb.xloek as pph_xloek preserving type) AS MatlCompIsMarkedForDeletion,
mdsb.xfehl AS MaterialComponentIsMissing,
mdsb.schgt AS IsBulkMaterialComponent,
mdsb.txtps AS MatlCompIsTextItem,
mdsb.kfpos AS MatlCompIsConfigurable,
mdsb.clakz AS MaterialComponentIsClassified,
mdsb.inpos AS MaterialCompIsIntraMaterial,
mdsb.plnum AS PlannedOrder,
mdsb.aufnr AS OrderID,
cast(mdsb.aufpl as pph_aufpl preserving type) AS OrderInternalID,
cast(mdsb.aplzl as operationinternalid preserving type) AS OrderOperationInternalID,
cast(mdsb.ekgrp as pph_ekgrp preserving type) AS PurchasingGroup,
cast(mdsb.infnr as pph_infnr preserving type) AS PurchasingInfoRecord,
cast(mdsb.banfn as co_banfn preserving type) AS PurchaseRequisition,
cast(mdsb.bnfpo as co_bnfpo preserving type) AS PurchaseRequisitionItem,
cast(mdsb.ebeln as pph_ebeln preserving type) AS PurchasingDocument,
cast(mdsb.ebelp as pph_ebelp preserving type) AS PurchasingDocumentItem,
mdsb.ebele AS ScheduleLine,
mdsb.lifnr AS Supplier,
cast(mdsb.stlty as pph_stlty preserving type) AS BillOfMaterialCategory,
mdsb.stlnr AS BillOfMaterialInternalID,
cast(mdsb.stlnr as pph_stnum preserving type) AS BillOfMaterialInternalID_2,
mdsb.stlal AS BillOfMaterialVariant,
mdsb.bom_versn AS BillOfMaterialVersion,
cast(mdsb.stlkn as pph_stlkn preserving type) AS BOMItem,
mdsb.stpoz AS BOMItemInternalChangeCount,
mdsb.stvkn AS InheritedBOMItemNode,
cast(mdsb.postp as pph_postp preserving type) AS BOMItemCategory,
mdsb.posnr AS BillOfMaterialItemNumber,
cast(mdsb.posnr as vdm_sposn preserving type) AS BillOfMaterialItemNumber_2,
mdsb.potx1 AS BOMItemDescription,
mdsb.potx2 AS BOMItemText2,
cast(mdsb.sernr as pph_sernr preserving type) AS BOMExplosionDateID,
cast(mdsb.shkzg as pph_shkzg preserving type) AS DebitCreditCode,
mdsb.bwart AS GoodsMovementType,
cast(mdsb.sobkz as inventoryspecialstocktype preserving type) AS InventorySpecialStockType,
cast(mdsb.kzbws as pph_kzbws preserving type) AS InventorySpecialStockValnType,
cast(mdsb.kzvbr as pph_kzvbr preserving type) AS ConsumptionPosting,
cast(mdsb.knttp as pph_knttp preserving type) AS AccountAssignmentCategory,
mdsb.sanka AS MaterialCompIsCostRelevant,
mdsb.sanka AS MaterialCompCostingRelevancy,
mdsb.gsber AS BusinessArea,
mdsb.fkber AS FunctionalArea,
mdsb.ltxsp AS LongTextLanguageCode,
mdsb.aennr AS ChangeNumber,
mdsb.revlv AS MaterialRevisionLevel,
cast(mdsb.revlv as vdm_qm_revlv preserving type) AS MaterialRevisionLevel_2,
mdsb.verti AS QuantityDistributionKey,
mdsb.techs AS EffectivityParameterVariant,
mdsb.cuobj AS ProductConfiguration,
mdsb.sortf AS SortField,
mdsb.sortf AS MatlCompFreeDefinedAttribute,
mdsb.rohps AS MaterialCompIsVariableSized,
cast(mdsb.roanz as pph_roanz preserving type) AS NumberOfVariableSizeComponents,
cast(mdsb.roanz as pph_roanz preserving type) AS VariableSizeItemQuantity,
cast(mdsb.rokme as pph_rokme preserving type) AS VariableSizeComponentUnit,
cast(mdsb.romen as pph_romen preserving type) AS VariableSizeComponentQuantity,
mdsb.romei AS UnitOfMeasureForSize1To3,
mdsb.roms1 AS Size1,
mdsb.roms2 AS Size2,
mdsb.roms3 AS Size3,
mdsb.rform AS FormulaKey,
mdsb.alpos AS MaterialCompIsAlternativeItem,
cast(mdsb.alpgr as pph_alpgr preserving type) AS AlternativeItemGroup,
cast(mdsb.alpst as pph_alpst preserving type) AS AlternativeItemStrategy,
cast(mdsb.alprf as pph_alprf preserving type) AS AlternativeItemPriority,
mdsb.ewahr AS UsageProbabilityPercent,
cast(mdsb.nfeag as pph_nfeag preserving type) AS DiscontinuationGroup,
mdsb.kzaus AS MatlCompDiscontinuationType,
cast(mdsb.nfpkz as pph_kznfp preserving type) AS MatlCompIsFollowUpMaterial,
cast(mdsb.nfgrp as pph_nfgrp preserving type) AS FollowUpGroup,
cast(mdsb.nomat as pph_nomat preserving type) AS FollowUpMaterial,
cast(mdsb.nafkz as pph_nafkz preserving type) AS FollowUpMaterialIsActive,
cast(mdsb.dumps as pph_dumps preserving type) AS MaterialComponentIsPhantomItem,
mdsb.aufwg AS OrderPathValue,
mdsb.aufst AS OrderLevelValue,
mdsb.baugr AS Assembly,
mdsb.bauwg AS AssemblyOrderPathValue,
mdsb.baust AS AssemblyOrderLevelValue,
mdsb.beikz AS IsMaterialProvision,
cast(mdsb.beikz as vdm_beikz preserving type) AS MaterialProvisionType,
mdsb.erskz AS SparePartFltrType,
cast(mdsb.erskz as vdm_erskz preserving type) AS MatlComponentSparePartType,
cast(mdsb.nlfzt as pph_nlfzt preserving type) AS LeadTimeOffset,
cast(mdsb.nlfmv as pph_nlfmv preserving type) AS OperationLeadTimeOffsetUnit,
cast(mdsb.nlfzv as pph_nlfzv preserving type) AS OperationLeadTimeOffset,
mdsb.fmeng AS QuantityIsFixed,
mdsb.ausch AS ComponentScrapInPercent,
mdsb.avoau AS OperationScrapInPercent,
mdsb.netau AS IsNetScrap,
mdsb.umrez AS MaterialQtyToBaseQtyNmrtr,
mdsb.umren AS MaterialQtyToBaseQtyDnmntr,
mdsb.meins AS BaseUnit,
mdsb.bdmng AS RequiredQuantity,
cast(mdsb.enmng as pph_enmng preserving type) AS WithdrawnQuantity,
cast(mdsb.nomng as pph_nomng preserving type) AS MaterialCompOriginalQuantity,
mdsb.esmng AS MaterialComponentUsageQuantity,
mdsb.erfme AS EntryUnit,
cast(mdsb.erfmg as pph_erfmg preserving type) AS QuantityInEntryUnit
FROM resb AS mdsb
LEFT OUTER JOIN I_ReservationDocumentHeader AS _Reservation ON Reservation = _Reservation .Reservation -- association [0..1]
LEFT OUTER JOIN I_ReservationDocumentItem AS _ReservationItem ON Reservation = _ReservationItem.Reservation AND ReservationItem = _ReservationItem.ReservationItem AND RecordType = _ReservationItem.RecordType -- association [1..1]
LEFT OUTER JOIN I_ReservationDocRecordType AS _ReservationRecordType ON RecordType = _ReservationRecordType.RecordType -- association [0..1]
LEFT OUTER JOIN I_MaterialGroup AS _MaterialGroup ON MaterialGroup = _MaterialGroup.MaterialGroup -- association [1..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material -- association [1..1]
LEFT OUTER JOIN I_Product AS _Product ON Material = _Product.Product -- association [1..1]
LEFT OUTER JOIN I_ProductUnitsOfMeasure AS _ProductUnitsOfMeasure ON Material = _ProductUnitsOfMeasure.Product -- association [1..*]
LEFT OUTER JOIN I_ProductPlantBasic AS _ProductPlant ON Material = _ProductPlant.Product AND Plant = _ProductPlant.Plant -- association [1..1]
LEFT OUTER JOIN I_ProductSupplyPlanning AS _ProductSupplyPlanning ON Material = _ProductSupplyPlanning.Product AND Plant = _ProductSupplyPlanning.Plant -- association [0..1]
LEFT OUTER JOIN I_ProductStorageLocationBasic AS _ProductStorageLocation ON Material = _ProductStorageLocation.Product AND Plant = _ProductStorageLocation.Plant AND StorageLocation = _ProductStorageLocation.StorageLocation -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [1..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON Plant = _StorageLocation.Plant AND StorageLocation = _StorageLocation.StorageLocation -- association [0..1]
LEFT OUTER JOIN I_Batch AS _Batch ON Material = _Batch.Material AND Plant = _Batch.Plant AND Batch = _Batch.Batch -- association [0..1]
LEFT OUTER JOIN I_ProductionSupplyArea AS _ProductionSupplyArea ON Plant = _ProductionSupplyArea.Plant AND ProductionSupplyArea = _ProductionSupplyArea.ProductionSupplyArea -- association [0..1]
LEFT OUTER JOIN I_DebitCreditCode AS _DebitCreditCode ON DebitCreditCode = _DebitCreditCode.DebitCreditCode -- association [0..1]
LEFT OUTER JOIN I_GoodsMovementType AS _GoodsMovementType ON GoodsMovementType = _GoodsMovementType.GoodsMovementType -- association [0..1]
LEFT OUTER JOIN I_InventorySpecialStockType AS _InventorySpecialStockType ON InventorySpecialStockType = _InventorySpecialStockType.InventorySpecialStockType -- association [0..1]
LEFT OUTER JOIN I_InvtrySpecialStockValnType AS _InventorySpecialStockValnType ON InventorySpecialStockValnType = _InventorySpecialStockValnType.InventorySpecialStockValnType -- association [0..1]
LEFT OUTER JOIN I_ConsumptionPosting AS _ConsumptionPosting ON ConsumptionPosting = _ConsumptionPosting.ConsumptionPosting -- association [0..1]
LEFT OUTER JOIN I_AccountAssignmentCategory AS _AccountAssignmentCategory ON AccountAssignmentCategory = _AccountAssignmentCategory.AccountAssignmentCategory -- association [0..1]
LEFT OUTER JOIN I_FunctionalArea AS _FunctionalArea ON FunctionalArea = _FunctionalArea.FunctionalArea -- association [0..1]
LEFT OUTER JOIN I_BusinessArea AS _BusinessArea ON BusinessArea = _BusinessArea.BusinessArea -- association [0..1]
LEFT OUTER JOIN I_GLAccount AS _GLAccount ON GLAccount = _GLAccount.GLAccount -- association [0..*]
LEFT OUTER JOIN I_PlannedOrder AS _PlannedOrder ON PlannedOrder = _PlannedOrder.PlannedOrder -- association [0..1]
LEFT OUTER JOIN I_LogisticsOrder AS _Order ON OrderID = _Order.OrderID -- association [0..1]
LEFT OUTER JOIN I_PurchasingGroup AS _PurchasingGroup ON PurchasingGroup = _PurchasingGroup.PurchasingGroup -- association [0..1]
LEFT OUTER JOIN I_PurchasingInfoRecordApi01 AS _PurchasingInfoRecord ON PurchasingInfoRecord = _PurchasingInfoRecord.PurchasingInfoRecord -- association [0..1]
LEFT OUTER JOIN I_PurchasingDocument AS _PurchasingDocument ON PurchasingDocument = _PurchasingDocument.PurchasingDocument -- association [0..1]
LEFT OUTER JOIN I_PurchasingDocumentItem AS _PurchasingDocumentItem ON PurchasingDocument = _PurchasingDocumentItem.PurchasingDocument AND PurchasingDocumentItem = _PurchasingDocumentItem.PurchasingDocumentItem -- association [0..1]
LEFT OUTER JOIN I_PurchaseRequisitionItemAPI01 AS _PurchaseRequisitionItem ON PurchaseRequisition = _PurchaseRequisitionItem.PurchaseRequisition AND PurchaseRequisitionItem = _PurchaseRequisitionItem.PurchaseRequisitionItem -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_ChangeMaster AS _ChangeNumber ON ChangeNumber = _ChangeNumber.ChangeNumber -- association [0..1]
LEFT OUTER JOIN I_BOMExplosionDate AS _BOMExplosion ON BOMExplosionDateID = _BOMExplosion.BOMExplosionDateID -- association [0..1]
LEFT OUTER JOIN I_MatlCompDiscontinuationType AS _MatlCompDiscontinuationType ON MatlCompDiscontinuationType = _MatlCompDiscontinuationType.MatlCompDiscontinuationType -- association [0..1]
LEFT OUTER JOIN I_MatlCompProvisionType AS _ProvisionType ON MaterialProvisionType = _ProvisionType.MaterialProvisionType -- association [0..1]
LEFT OUTER JOIN I_MatlCompSparePartType AS _SparePartType ON MatlComponentSparePartType = _SparePartType.MatlComponentSparePartType -- association [0..1]
LEFT OUTER JOIN I_Product AS _FollowUpMaterial ON FollowUpMaterial = _FollowUpMaterial.Product -- association [0..1]
LEFT OUTER JOIN I_Material AS _Assembly ON Assembly = _Assembly.Material -- association [0..1]
LEFT OUTER JOIN I_Language AS _Language ON LongTextLanguageCode = _Language.Language -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _VariableSizeCompUnit ON VariableSizeComponentUnit = _VariableSizeCompUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _VariableSize1To3Unit ON UnitOfMeasureForSize1To3 = _VariableSize1To3Unit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _LeadTimeOffsetUnit ON OperationLeadTimeOffsetUnit = _LeadTimeOffsetUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON BaseUnit = _BaseUnit.UnitOfMeasure -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _EntryUnit ON EntryUnit = _EntryUnit.UnitOfMeasure -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA