C_ARunItmRsnCodeQuery
Query View for ARun Reason Code
C_ARunItmRsnCodeQuery is a Consumption CDS View that provides data about "Query View for ARun Reason Code" in SAP S/4HANA. It reads from 1 data source (I_ARunItmRsnCodeCube) and exposes 55 fields with key fields ATPCheckUUID, RequirementDocumentNumber, RequirementDocumentItem, RequestedDate, RequirementType. It has 15 associations to related views. Part of development package VDM_ARUN_MONITOR.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ARunItmRsnCodeCube | Demand | from |
Associations (15)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ProductText | _ProductText | $projection.Material = _ProductText.Product and _ProductText.Language = $session.system_language |
| [0..1] | I_ProductGroupText | _ProductGroupText | $projection.MaterialGroup = _ProductGroupText.MaterialGroup and _ProductGroupText.Language = $session.system_language |
| [0..1] | I_SalesOrganizationText | _SalesOrgText | $projection.SalesOrganization = _SalesOrgText.SalesOrganization and _SalesOrgText.Language = $session.system_language |
| [0..1] | I_DistributionChannelText | _DistrChnl | $projection.DistributionChannel = _DistrChnl.DistributionChannel and _DistrChnl.Language = $session.system_language |
| [0..1] | I_DivisionText | _Divn | $projection.Division = _Divn.Division and _Divn.Language = $session.system_language |
| [0..1] | I_SalesDistrictText | _SalesDist | $projection.SalesDistrict = _SalesDist.SalesDistrict and _SalesDist.Language = $session.system_language |
| [0..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_CustomerGroupText | _CustomerGroup | $projection.CustomerGroup = _CustomerGroup.CustomerGroup and _CustomerGroup.Language = $session.system_language |
| [0..1] | I_Customer | _SoldToParty | $projection.SoldToParty = _SoldToParty.Customer |
| [0..1] | I_Customer | _ShipToParty | $projection.ShipToParty = _ShipToParty.Customer |
| [0..1] | I_UnitOfMeasure | _BaseUnit | $projection.BaseUnit = _BaseUnit.UnitOfMeasure |
| [0..1] | I_ATPSupAssgmtItemStatusText | _StatusText | $projection.SupAssgmtItemStatus = _StatusText.SupAssgmtItemStatus and _StatusText.Language = $session.system_language |
| [0..1] | I_SupDmndRqmtTypeText | _RqmtText | $projection.RequirementType = _RqmtText.RequirementType and _RqmtText.Language = $session.system_language |
| [0..1] | I_ARunABOPText | _ARunABOPText | $projection.ATPCheckUUID = _ARunABOPText.ATPCheckUUID |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CARUNRSNCODEQRY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ClientHandling.type | #INHERITED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | Query View for ARun Reason Code | view |
Fields (55)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ATPCheckUUID | ATPCheckUUID | BOP Run | |
| KEY | RequirementDocumentNumber | RequirementDocumentNumber | Requirement Document Number | |
| KEY | RequirementDocumentItem | RequirementDocumentItem | Requirement Document Item | |
| KEY | RequestedDate | RequestedDate | Requested Date | |
| KEY | RequirementType | RequirementType | Requirement Type | |
| RequestedRqmtQtyInBaseUnit | RequestedRqmtQtyInBaseUnit | Order Quantity | ||
| ABOPVariantUUID | ABOPVariantUUID | BOP Variant UUID | ||
| ABOPVariantName | _ARunABOPText | ABOPVariantName | BOP Variant Name | |
| StartedByUser | StartedByUser | |||
| ATPCheckStatus | ATPCheckStatus | |||
| ABOPExecutionMode | ABOPExecutionMode | |||
| ATPRlvtDocItmIsSupAssgmtRlvt | ATPRlvtDocItmIsSupAssgmtRlvt | |||
| ABOPAssignmentPreviewIsActive | ABOPAssignmentPreviewIsActive | Assignment Preview | ||
| SupAssgmtItemStatus | SupAssgmtItemStatus | Supply Assignment Reason Code | ||
| Material | I_ARunItmRsnCodeCube | Material | Product | |
| Plant | I_ARunItmRsnCodeCube | Plant | Valuation Area | |
| RequirementSegment | RequirementSegment | Req. Segment | ||
| BaseUnit | BaseUnit | Unit of Measure | ||
| SalesOrganization | I_ARunItmRsnCodeCube | SalesOrganization | Sales Organization | |
| DistributionChannel | I_ARunItmRsnCodeCube | DistributionChannel | RefDistCh-Cust/Mat. | |
| Division | I_ARunItmRsnCodeCube | Division | Internal Division ID | |
| SalesDistrict | I_ARunItmRsnCodeCube | SalesDistrict | Sales District | |
| CustomerGroup | CustomerGroup | Customer Group | ||
| CompanyCode | I_ARunItmRsnCodeCube | CompanyCode | Company Code | |
| MaterialGroup | I_ARunItmRsnCodeCube | MaterialGroup | Product Group | |
| OrderType | OrderType | Order Type | ||
| OrderTypeName | OrderTypeName | Order Type Name | ||
| SoldToParty | SoldToParty | Sold-To Party | ||
| ShipToParty | ShipToParty | Ship-To Party | ||
| CrossPlantConfigurableProduct | CrossPlantConfigurableProduct | Generic Article | ||
| DeliveryGroup | DeliveryGroup | Delivery Group | ||
| ProductSeasonYear | ProductSeasonYear | Season Year | ||
| ProductSeason | ProductSeason | Season | ||
| ProductCollection | ProductCollection | Collection | ||
| ProductTheme | ProductTheme | Theme | ||
| NetPriceAmount | NetPriceAmount | Net Price | ||
| NetPriceQuantity | NetPriceQuantity | Price Unit | ||
| NetAmount | NetAmount | Stated Amount | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| _ProductText | _ProductText | |||
| _ProductGroupText | _ProductGroupText | |||
| _SalesOrgText | _SalesOrgText | |||
| _DistrChnl | _DistrChnl | |||
| _Divn | _Divn | |||
| _SalesDist | _SalesDist | |||
| _Plant | _Plant | |||
| _CompanyCode | _CompanyCode | |||
| _CustomerGroup | _CustomerGroup | |||
| _SoldToParty | _SoldToParty | |||
| _ShipToParty | _ShipToParty | |||
| _BaseUnit | _BaseUnit | |||
| _StatusText | _StatusText | |||
| _RqmtText | _RqmtText | |||
| _DocCurrency | _DocCurrency | |||
| _ARunABOPText | _ARunABOPText |
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_ARunItmRsnCodeQuery.
-- 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 C_ARunItmRsnCodeQuery AS
SELECT
ATPCheckUUID,
RequirementDocumentNumber,
RequirementDocumentItem,
RequestedDate,
RequirementType,
RequestedRqmtQtyInBaseUnit,
ABOPVariantUUID,
_ARunABOPText.ABOPVariantName AS ABOPVariantName,
StartedByUser,
ATPCheckStatus,
ABOPExecutionMode,
ATPRlvtDocItmIsSupAssgmtRlvt,
ABOPAssignmentPreviewIsActive,
SupAssgmtItemStatus,
Demand.Material AS Material,
Demand.Plant AS Plant,
RequirementSegment,
BaseUnit,
Demand.SalesOrganization AS SalesOrganization,
Demand.DistributionChannel AS DistributionChannel,
Demand.Division AS Division,
Demand.SalesDistrict AS SalesDistrict,
CustomerGroup,
Demand.CompanyCode AS CompanyCode,
Demand.MaterialGroup AS MaterialGroup,
OrderType,
OrderTypeName,
SoldToParty,
ShipToParty,
CrossPlantConfigurableProduct,
DeliveryGroup,
ProductSeasonYear,
ProductSeason,
ProductCollection,
ProductTheme,
NetPriceAmount,
NetPriceQuantity,
NetAmount,
DocumentCurrency
FROM I_ARunItmRsnCodeCube AS Demand
LEFT OUTER JOIN I_ProductText AS _ProductText ON Material = _ProductText.Product AND _ProductText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_ProductGroupText AS _ProductGroupText ON MaterialGroup = _ProductGroupText.MaterialGroup AND _ProductGroupText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_SalesOrganizationText AS _SalesOrgText ON SalesOrganization = _SalesOrgText.SalesOrganization AND _SalesOrgText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_DistributionChannelText AS _DistrChnl ON DistributionChannel = _DistrChnl.DistributionChannel AND _DistrChnl.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_DivisionText AS _Divn ON Division = _Divn.Division AND _Divn.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_SalesDistrictText AS _SalesDist ON SalesDistrict = _SalesDist.SalesDistrict AND _SalesDist.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_CustomerGroupText AS _CustomerGroup ON CustomerGroup = _CustomerGroup.CustomerGroup AND _CustomerGroup.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_Customer AS _SoldToParty ON SoldToParty = _SoldToParty.Customer -- association [0..1]
LEFT OUTER JOIN I_Customer AS _ShipToParty ON ShipToParty = _ShipToParty.Customer -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON BaseUnit = _BaseUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_ATPSupAssgmtItemStatusText AS _StatusText ON SupAssgmtItemStatus = _StatusText.SupAssgmtItemStatus AND _StatusText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_SupDmndRqmtTypeText AS _RqmtText ON RequirementType = _RqmtText.RequirementType AND _RqmtText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_ARunABOPText AS _ARunABOPText ON ATPCheckUUID = _ARunABOPText.ATPCheckUUID -- 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