I_IN_SubcontrgChallanDocBasic

DDL: I_IN_SUBCONTRGCHALLANDOCBASIC Type: view_entity BASIC

Subcontracting Challan Document

I_IN_SubcontrgChallanDocBasic is a Basic CDS View that provides data about "Subcontracting Challan Document" in SAP S/4HANA. It reads from 1 data source (j_1ig_subcon) and exposes 42 fields with key fields CompanyCode, MaterialDocument, MaterialDocumentYear, MaterialDocumentItem, SubcontrgChallan. It has 15 associations to related views.

Data Sources (1)

SourceAliasJoin Type
j_1ig_subcon _Subcon from

Associations (15)

CardinalityTargetAliasCondition
[1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_Product _Product $projection.Product = _Product.Product
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_GoodsMovementType _GoodsMovementType $projection.GoodsMovementType = _GoodsMovementType.GoodsMovementType
[0..1] I_BillingDocument _BillingDocument $projection.SubcontrgChallan = _BillingDocument.BillingDocument
[1..1] I_BillingDocumentItem _BillingDocumentItem _BillingDocumentItem.BillingDocument = $projection.SubcontrgChallan and _BillingDocumentItem.BillingDocumentItem = $projection.BillingDocumentItem
[0..1] I_MaterialDocumentHeader_2 _MaterialDocumentHeader $projection.MaterialDocument = _MaterialDocumentHeader.MaterialDocument and $projection.MaterialDocumentYear = _MaterialDocumentHeader.MaterialDocumentYear
[0..1] I_MaterialDocumentItem_2 _MaterialDocumentItem $projection.MaterialDocument = _MaterialDocumentItem.MaterialDocument and $projection.MaterialDocumentYear = _MaterialDocumentItem.MaterialDocumentYear and $projection.MaterialDocumentItem = _MaterialDocumentItem.MaterialDocumentItem
[1..1] I_MaterialDocumentYear _MaterialDocumentYear $projection.MaterialDocumentYear = _MaterialDocumentYear.MaterialDocumentYear
[0..1] I_BillingDocumentType _BillingDocumentType $projection.BillingDocumentType = _BillingDocumentType.BillingDocumentType
[0..1] I_InventorySpecialStockType _InventorySpecialStockType $projection.InventorySpecialStockType = _InventorySpecialStockType.InventorySpecialStockType
[1..1] I_IN_SubcontrgChallanItmSts _SubcontrgChallanItmSts _SubcontrgChallanItmSts.IN_ChallanItemStatus = $projection.IN_ChallanItemStatus
[0..*] I_IN_SubcontrgChallanItmStsTxt _SubcontrgChallanItmStsTxt $projection.IN_ChallanItemStatus = _SubcontrgChallanItmStsTxt.IN_ChallanItemStatus
[0..1] I_Batch _Batch $projection.Plant = _Batch.Plant and $projection.Product = _Batch.Material and $projection.Batch = _Batch.Batch

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Subcontracting Challan Document view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view

Fields (42)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode bukrs Value
KEY MaterialDocument mblnr Material Doc.
KEY MaterialDocumentYear mjahr Mat. Doc. Year
KEY MaterialDocumentItem zeile Mat. Doc.Item
KEY SubcontrgChallan chln_inv Challan or Inv. No.
KEY BillingDocumentItem item Task ID
BillingDocumentType fkart Ship. cost type
PostingDate budat Posting Date
GoodsMovementType bwart Valuation Type
Plant werks Receiving Plant
Quantity menge WarrCountValue
IN_GRItemRemainingQuantity gr_rqty GR Rem. Qty.
IN_ChallanItemQuantity ch_qty Quantity
IN_ChallanItemOpenQuantity ch_oqty Ch. Open Quantity
BaseUnit ch_meins Base Unit
Product matnr Vehicle Model
Supplier lifnr Vendor no.
IN_SubcontrgItmRcnldQty rec_qty Ch. Reconciled Qty
IN_ChallanItemStatus status Workflow Status
CreatedByUser ernam User Name
CreationDate erdat Entered On
CreationTime cputm Time
LastChangedByUser aenam User Name
LastChangeDate aedat Obsolete
LastChangeTime utime Time
InventorySpecialStockType sobkz Special Stock
Batch charg Chargeable Proc.
_Supplier _Supplier
_CompanyCode _CompanyCode
_Product _Product
_Plant _Plant
_Batch _Batch
_GoodsMovementType _GoodsMovementType
_BillingDocument _BillingDocument
_BillingDocumentType _BillingDocumentType
_BillingDocumentItem _BillingDocumentItem
_MaterialDocumentHeader _MaterialDocumentHeader
_MaterialDocumentItem _MaterialDocumentItem
_MaterialDocumentYear _MaterialDocumentYear
_InventorySpecialStockType _InventorySpecialStockType
_SubcontrgChallanItmSts _SubcontrgChallanItmSts
_SubcontrgChallanItmStsTxt _SubcontrgChallanItmStsTxt

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_SubcontrgChallanDocBasic.
-- 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_IN_SubcontrgChallanDocBasic AS
SELECT
  bukrs AS CompanyCode,
  mblnr AS MaterialDocument,
  mjahr AS MaterialDocumentYear,
  zeile AS MaterialDocumentItem,
  chln_inv AS SubcontrgChallan,
  item AS BillingDocumentItem,
  fkart AS BillingDocumentType,
  budat AS PostingDate,
  bwart AS GoodsMovementType,
  werks AS Plant,
  menge AS Quantity,
  gr_rqty AS IN_GRItemRemainingQuantity,
  ch_qty AS IN_ChallanItemQuantity,
  ch_oqty AS IN_ChallanItemOpenQuantity,
  ch_meins AS BaseUnit,
  matnr AS Product,
  lifnr AS Supplier,
  rec_qty AS IN_SubcontrgItmRcnldQty,
  status AS IN_ChallanItemStatus,
  ernam AS CreatedByUser,
  erdat AS CreationDate,
  cputm AS CreationTime,
  aenam AS LastChangedByUser,
  aedat AS LastChangeDate,
  utime AS LastChangeTime,
  sobkz AS InventorySpecialStockType,
  charg AS Batch
FROM j_1ig_subcon AS _Subcon
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_GoodsMovementType AS _GoodsMovementType ON GoodsMovementType = _GoodsMovementType.GoodsMovementType  -- association [0..1]
LEFT OUTER JOIN I_BillingDocument AS _BillingDocument ON SubcontrgChallan = _BillingDocument.BillingDocument  -- association [0..1]
LEFT OUTER JOIN I_BillingDocumentItem AS _BillingDocumentItem ON _BillingDocumentItem.BillingDocument = SubcontrgChallan AND _BillingDocumentItem.BillingDocumentItem = BillingDocumentItem  -- association [1..1]
LEFT OUTER JOIN I_MaterialDocumentHeader_2 AS _MaterialDocumentHeader ON MaterialDocument = _MaterialDocumentHeader.MaterialDocument AND MaterialDocumentYear = _MaterialDocumentHeader.MaterialDocumentYear  -- association [0..1]
LEFT OUTER JOIN I_MaterialDocumentItem_2 AS _MaterialDocumentItem ON MaterialDocument = _MaterialDocumentItem.MaterialDocument AND MaterialDocumentYear = _MaterialDocumentItem.MaterialDocumentYear AND MaterialDocumentItem = _MaterialDocumentItem.MaterialDocumentItem  -- association [0..1]
LEFT OUTER JOIN I_MaterialDocumentYear AS _MaterialDocumentYear ON MaterialDocumentYear = _MaterialDocumentYear.MaterialDocumentYear  -- association [1..1]
LEFT OUTER JOIN I_BillingDocumentType AS _BillingDocumentType ON BillingDocumentType = _BillingDocumentType.BillingDocumentType  -- association [0..1]
LEFT OUTER JOIN I_InventorySpecialStockType AS _InventorySpecialStockType ON InventorySpecialStockType = _InventorySpecialStockType.InventorySpecialStockType  -- association [0..1]
LEFT OUTER JOIN I_IN_SubcontrgChallanItmSts AS _SubcontrgChallanItmSts ON _SubcontrgChallanItmSts.IN_ChallanItemStatus = IN_ChallanItemStatus  -- association [1..1]
LEFT OUTER JOIN I_IN_SubcontrgChallanItmStsTxt AS _SubcontrgChallanItmStsTxt ON IN_ChallanItemStatus = _SubcontrgChallanItmStsTxt.IN_ChallanItemStatus  -- association [0..*]
LEFT OUTER JOIN I_Batch AS _Batch ON Plant = _Batch.Plant AND Product = _Batch.Material AND Batch = _Batch.Batch  -- association [0..1]
;