C_ARunCompareAssgmtQuery
ARun Compare Assignments Query View
C_ARunCompareAssgmtQuery is a Consumption CDS View that provides data about "ARun Compare Assignments Query View" in SAP S/4HANA. It reads from 1 data source (I_ARunCompareAssgmtCube) and exposes 52 fields with key fields ATPCheckUUID, RequirementDocumentNumber, RequirementDocumentItem, RequirementType. It has 14 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ARunCompareAssgmtCube | Assgmt | from |
Associations (14)
| 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_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 | CARUNCOMPQUERY | 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 | ARun Compare Assignments Query View | view |
Fields (52)
| 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 | RequirementType | RequirementType | Requirement Type | |
| AssignedQuantityInBaseUnit | AssignedQuantityInBaseUnit | Simulation | ||
| NormalAssignedQuantityInBsUnt | NormalAssignedQuantityInBsUnt | Normal | ||
| PreviewAssignedQuantityInBsUnt | PreviewAssignedQuantityInBsUnt | Preview | ||
| ABOPVariantUUID | ABOPVariantUUID | BOP Variant UUID | ||
| ABOPVariantName | _ARunABOPText | ABOPVariantName | BOP Variant Name | |
| StartedByUser | StartedByUser | |||
| ATPCheckStatus | ATPCheckStatus | |||
| ABOPExecutionMode | ABOPExecutionMode | |||
| Material | I_ARunCompareAssgmtCube | Material | Product | |
| Plant | I_ARunCompareAssgmtCube | Plant | Valuation Area | |
| RequirementSegment | RequirementSegment | Req. Segment | ||
| BaseUnit | BaseUnit | Unit of Measure | ||
| SalesOrganization | I_ARunCompareAssgmtCube | SalesOrganization | Sales Organization | |
| DistributionChannel | I_ARunCompareAssgmtCube | DistributionChannel | RefDistCh-Cust/Mat. | |
| Division | I_ARunCompareAssgmtCube | Division | Internal Division ID | |
| SalesDistrict | I_ARunCompareAssgmtCube | SalesDistrict | Sales District | |
| CustomerGroup | CustomerGroup | Customer Group | ||
| CompanyCode | I_ARunCompareAssgmtCube | CompanyCode | Company Code | |
| MaterialGroup | I_ARunCompareAssgmtCube | 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 Product | ||
| 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 | |||
| _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_ARunCompareAssgmtQuery.
-- 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_ARunCompareAssgmtQuery AS
SELECT
ATPCheckUUID,
RequirementDocumentNumber,
RequirementDocumentItem,
RequirementType,
AssignedQuantityInBaseUnit,
NormalAssignedQuantityInBsUnt,
PreviewAssignedQuantityInBsUnt,
ABOPVariantUUID,
_ARunABOPText.ABOPVariantName AS ABOPVariantName,
StartedByUser,
ATPCheckStatus,
ABOPExecutionMode,
Assgmt.Material AS Material,
Assgmt.Plant AS Plant,
RequirementSegment,
BaseUnit,
Assgmt.SalesOrganization AS SalesOrganization,
Assgmt.DistributionChannel AS DistributionChannel,
Assgmt.Division AS Division,
Assgmt.SalesDistrict AS SalesDistrict,
CustomerGroup,
Assgmt.CompanyCode AS CompanyCode,
Assgmt.MaterialGroup AS MaterialGroup,
OrderType,
OrderTypeName,
SoldToParty,
ShipToParty,
CrossPlantConfigurableProduct,
DeliveryGroup,
ProductSeasonYear,
ProductSeason,
ProductCollection,
ProductTheme,
NetPriceAmount,
NetPriceQuantity,
NetAmount,
DocumentCurrency
FROM I_ARunCompareAssgmtCube AS Assgmt
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_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