C_IN_SubcontrgChallanQuery

DDL: C_IN_SUBCONTRGCHALLANQUERY SQL: CSUBCHALLANQUERY Type: view CONSUMPTION

Subcontracting Challan Cockpit

C_IN_SubcontrgChallanQuery is a Consumption CDS View that provides data about "Subcontracting Challan Cockpit" in SAP S/4HANA. It reads from 1 data source (I_IN_MatlDocNotReversed) and exposes 26 fields with key fields MaterialDocument, MaterialDocumentYear, MaterialDocumentItem, SubcontrgChallan, Item. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_IN_MatlDocNotReversed I_IN_MatlDocNotReversed from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_IN_ChallanVislFltr _I_IN_ChallanVislFltr $projection.MaterialDocument = _I_IN_ChallanVislFltr.MaterialDocument and $projection.MaterialDocumentItem = _I_IN_ChallanVislFltr.MaterialDocumentItem and $projection.MaterialDocumentYear = _I_IN_ChallanVislFltr.MaterialDocumentYear

Annotations (17)

NameValueLevelField
AbapCatalog.sqlViewName CSUBCHALLANQUERY view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Subcontracting Challan Cockpit view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
AbapCatalog.preserveKey true view
Search.searchable true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
UI.headerInfo.typeName Material Document Item view
UI.headerInfo.typeNamePlural Material Document Items view
UI.headerInfo.title.value MaterialDocument view
UI.headerInfo.description.value MaterialDocumentItem view
Metadata.ignorePropagatedAnnotations true view

Fields (26)

KeyFieldSource TableSource FieldDescription
KEY MaterialDocument MaterialDocument Material Doc.
KEY MaterialDocumentYear MaterialDocumentYear Material Document Year
KEY MaterialDocumentItem MaterialDocumentItem Item
KEY SubcontrgChallan SubcontrgChallan Challan or Inv. No.
KEY Item Item Task ID
PostingDate PostingDate Posting Date for GR
GoodsMovementType GoodsMovementType Goods Movement Type
Material Material Material
Plant Plant Plant
SubcontrgBatch SubcontrgBatch Batch
BusinessPlace I_IN_PlantStdVH BusinessPlace Business Place
Supplier Supplier Subcontractor
CompanyCode CompanyCode Receiver Company Code
QuantityInEntryUnit QuantityInEntryUnit Quantity
EntryUnit EntryUnit Unit of Entry
LastChangedDate
ItemQuantity
DomainValue DomainValue Lower Value
StatusMessageText
SuccessCount
NumberOfAlerts
_CompanyCode _CompanyCode
_Material _Material
_Plant _Plant
_Supplier _Supplier
_I_IN_ChallanVislFltr _I_IN_ChallanVislFltr

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 C_IN_SubcontrgChallanQuery.
-- 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: CSUBCHALLANQUERY

CREATE VIEW C_IN_SubcontrgChallanQuery AS
SELECT
  MaterialDocument,
  MaterialDocumentYear,
  MaterialDocumentItem,
  SubcontrgChallan,
  Item,
  PostingDate,
  GoodsMovementType,
  Material,
  Plant,
  SubcontrgBatch,
  I_IN_PlantStdVH.BusinessPlace AS BusinessPlace,
  Supplier,
  CompanyCode,
  QuantityInEntryUnit,
  EntryUnit,
  cast('00000000' as budat) AS LastChangedDate,
  cast('00000000' as menge_d) AS ItemQuantity,
  DomainValue,
  cast('X' as text) AS StatusMessageText,
  cast(I_IN_MatlDocNotReversed.SuccessCount as abap.int4) AS SuccessCount,
  cast(I_IN_MatlDocNotReversed.NumberOfAlerts as abap.int4) AS NumberOfAlerts
FROM I_IN_MatlDocNotReversed
LEFT OUTER JOIN I_IN_ChallanVislFltr AS _I_IN_ChallanVislFltr ON MaterialDocument = _I_IN_ChallanVislFltr.MaterialDocument AND MaterialDocumentItem = _I_IN_ChallanVislFltr.MaterialDocumentItem AND MaterialDocumentYear = _I_IN_ChallanVislFltr.MaterialDocumentYear  -- association [1..1]
;