I_IN_MatlDocList

DDL: I_IN_MATLDOCLIST SQL: INMATLDOCLIST Type: view BASIC

Material Document for Subcon Challan

I_IN_MatlDocList is a Basic CDS View that provides data about "Material Document for Subcon Challan" in SAP S/4HANA. It reads from 1 data source (matdoc) and exposes 46 fields. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
matdoc matdoc from

Associations (6)

CardinalityTargetAliasCondition
[0..1] I_Material _Material $projection.Material = _Material.Material
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_StorageLocation _StorageLocation $projection.StorageLocation = _StorageLocation.StorageLocation and $projection.Plant = _StorageLocation.Plant
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_BusinessArea _BusinessArea $projection.BusinessArea = _BusinessArea.BusinessArea

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName INMATLDOCLIST view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Material Document for Subcon Challan view
VDM.private false view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (46)

KeyFieldSource TableSource FieldDescription
MaterialDocumentYear Mat. Doc. Year
MaterialDocument mblnr Material Doc.
MaterialDocumentItem Mat. Doc.Item
Plant werks Receiving Plant
Material matnr Vehicle Model
StorageLocation lgort Sublocation
Supplier lifnr Vendor no.
GoodsMovementType bwart Valuation Type
QuantityInEntryUnit erfmg Quantity in UnE
EntryUnit erfme Unit of Entry
ReversedMaterialDocumentYear Reversed Doc Year
ReversedMaterialDocument Reversed Mat Doc
ReversedMaterialDocumentItem Reversed Doc Item
RvslOfGoodsReceiptIsAllowed xwsbr RevGR desp. IR
IsReversalMovementType RevMvmtTypeInd.
GoodsMovementIsCancelled cancelled Item Discarded
GoodsMovementCancellationType cancellation_type Rel. for Analytics
GoodsRecipientName wempf Recipient
UnloadingPointName ablad Unloading Point
CostCenter kostl Substitute CC
GLAccount sakto G/L Account
CostObject kstrg Cost Objects
ProfitabilitySegment Profit. segment
ProfitCenter prctr Profit Centers
CostEstimate kalnr ProdCostEst.No.
ReferenceDocument xblnr Reference
ServicePerformer serviceperformer Service Performer
EmploymentInternalID pernr Personnel no.
AccountAssignmentCategory Acct Assgmt Cat
WorkItem work_item_id Work Item ID
ServicesRenderedDate fbuda Services Rendered Date
CompanyCode bukrs Value
BusinessArea gsber Business Area
PostingDate budat Posting Date
TotalGoodsMvtAmtInCCCrcy dmbtr Loc. amount
GoodsMovementStkAmtInCCCrcy dmbtr_stock Amt LC w/ Stk Qty
GoodsMvtCnsmpnAmtInCCCrcy dmbtr_cons Amt LC w/ Cons Qty
CompanyCodeCurrency Transaction Currency
IsAutomaticallyCreated Auto. Item Keys
UserName usnam User Name
_Material _Material
_Plant _Plant
_StorageLocation _StorageLocation
_Supplier _Supplier
_CompanyCode _CompanyCode
_BusinessArea _BusinessArea

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_IN_MatlDocList.
-- 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: INMATLDOCLIST

CREATE VIEW I_IN_MatlDocList AS
SELECT
  cast(mjahr as nsdm_mjahr preserving type) AS MaterialDocumentYear,
  mblnr AS MaterialDocument,
  cast(zeile as nsdm_mblpo preserving type) AS MaterialDocumentItem,
  werks AS Plant,
  matnr AS Material,
  lgort AS StorageLocation,
  lifnr AS Supplier,
  bwart AS GoodsMovementType,
  erfmg AS QuantityInEntryUnit,
  erfme AS EntryUnit,
  cast(sjahr as nsdm_sjahr preserving type) AS ReversedMaterialDocumentYear,
  cast(smbln as nsdm_smbln preserving type) AS ReversedMaterialDocument,
  cast(smblp as nsdm_smblp preserving type) AS ReversedMaterialDocumentItem,
  xwsbr AS RvslOfGoodsReceiptIsAllowed,
  cast(reversal_movement as nsdm_xstbw preserving type) AS IsReversalMovementType,
  cancelled AS GoodsMovementIsCancelled,
  cancellation_type AS GoodsMovementCancellationType,
  wempf AS GoodsRecipientName,
  ablad AS UnloadingPointName,
  kostl AS CostCenter,
  sakto AS GLAccount,
  kstrg AS CostObject,
  cast(paobjnr as nsdm_rkeobjnr) AS ProfitabilitySegment,
  prctr AS ProfitCenter,
  kalnr AS CostEstimate,
  xblnr AS ReferenceDocument,
  ServicePerformer,
  pernr AS EmploymentInternalID,
  cast(knttp_gr as nsdm_knttp preserving type) AS AccountAssignmentCategory,
  work_item_id AS WorkItem,
  fbuda AS ServicesRenderedDate,
  bukrs AS CompanyCode,
  gsber AS BusinessArea,
  budat AS PostingDate,
  dmbtr AS TotalGoodsMvtAmtInCCCrcy,
  dmbtr_stock AS GoodsMovementStkAmtInCCCrcy,
  dmbtr_cons AS GoodsMvtCnsmpnAmtInCCCrcy,
  cast(waers as nsdm_comp_code_currency preserving type) AS CompanyCodeCurrency,
  cast(xauto as nsdm_xauto preserving type) AS IsAutomaticallyCreated,
  usnam AS UserName
FROM matdoc
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON StorageLocation = _StorageLocation.StorageLocation AND Plant = _StorageLocation.Plant  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_BusinessArea AS _BusinessArea ON BusinessArea = _BusinessArea.BusinessArea  -- association [0..1]
;