I_ControllingOrder
Controlling Order
I_ControllingOrder is a Basic CDS View (Dimension) that provides data about "Controlling Order" in SAP S/4HANA. It reads from 1 data source (aufk) and exposes 52 fields with key field OrderID. It has 8 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| aufk | aufk | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ProductCostCtrlgOrderItem | _RepresentativeOrderItem | $projection.OrderID = _RepresentativeOrderItem.OrderID and _RepresentativeOrderItem.OrderItem = '0001' |
| [1..1] | I_ControllingArea | _ControllingArea | $projection.ControllingArea = _ControllingArea.ControllingArea |
| [1..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [1..1] | E_ProductCostCtrlgOrder | _Extension | $projection.OrderID = _Extension.OrderID |
| [1..1] | I_OrderType | _OrderType | $projection.OrderType = _OrderType.OrderType |
| [1..1] | I_OrderCategory | _OrderCategory | $projection.OrderCategory = _OrderCategory.OrderCategory |
| [1..1] | I_FiscCalendarDateForCompCode | _FiscCalendarDateForCompCode | $projection.CreationDate = _FiscCalendarDateForCompCode.CalendarDate and $projection.CompanyCode = _FiscCalendarDateForCompCode.CompanyCode |
| [0..1] | I_MaintenanceOrder | _MaintenanceOrder | $projection.OrderID = _MaintenanceOrder.MaintenanceOrder |
Annotations (21)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICTRLGORDER | view | |
| ClientHandling.type | #CLIENT_DEPENDENT | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.representativeKey | OrderID | view | |
| ObjectModel.semanticKey | OrderID | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| Metadata.allowExtensions | true | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | Controlling Order | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| AbapCatalog.buffering.type | #NONE | view | |
| AbapCatalog.buffering.numberOfKeyFields | 0 | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Analytics.internalName | #LOCAL | view |
Fields (52)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OrderID | |||
| OrderDescription | ||||
| OrderType | aufk | auart | Sales Doc. Type | |
| OrderCategory | ||||
| ReferenceOrder | aufk | refnr | Reference No. | |
| ExternalOrder | ||||
| ObjectInternalID | aufk | objnr | Val. Obj. No. | |
| Currency | aufk | waers | Transaction Currency | |
| Plant | aufk | werks | Receiving Plant | |
| BaseUnit | afko | gmein | Base Unit | |
| ControllingArea | aufk | kokrs | Org. Value | |
| CompanyCode | aufk | bukrs | Value | |
| CompanyCodeCurrency | _CompanyCode | Currency | Valuation Crcy | |
| BusinessArea | aufk | gsber | Business Area | |
| ProfitCenter | aufk | prctr | Profit Centers | |
| ResponsibleCostCenter | ||||
| WBSElementInternalID | WBS Element | |||
| IsMarkedForDeletion | aufk | loekz | Status | |
| MfgOrderHasMultipleItems | ||||
| ActualCostsCostingVariant | ||||
| PlannedCostsCostingVariant | ||||
| OrderIsEventBasedPosting | aufk | eb_post | Event-Based Posting | |
| EventBasedPostingMethod | aufk | eb_post | Event-Based Posting | |
| OrderSettlementTriggerType | aufk | eb_post_type | ||
| MfgOrderInternalID | ||||
| PlannedCompletionDate | ||||
| CreatedByUser | ||||
| CreationDate | ||||
| LastChangedByUser | ||||
| LastChangeDate | ||||
| TechnicalCompletionDate | ||||
| ScheduledBasicEndDate | ||||
| ScheduledReleaseDate | ||||
| ActualStartDate | ||||
| ConfirmedEndDate | ||||
| ActualReleasedDate | ||||
| IsStatisticalOrder | aufk | astkz | Trig. Stat. Key | |
| RequestingCostCenter | aufk | akstl | Req.cost center | |
| CostCenter | aufk | kostl | Substitute CC | |
| ActualPostedCostCenter | aufk | cycle | Single-Character Flag | |
| ResultAnalysisInternalID | aufk | abgsl | Results analysis key | |
| EventBasedProcessingKey | aufk | ebw_key | Event-Based Proc Key | |
| SalesOrder | aufk | kdauf | SD Document | |
| SalesOrderItem | aufk | kdpos | Sales Ord. Item | |
| CostingSheet | aufk | kalsm | Search Proced. | |
| _RepresentativeOrderItem | _RepresentativeOrderItem | |||
| _ControllingArea | _ControllingArea | |||
| _CompanyCode | _CompanyCode | |||
| _OrderType | _OrderType | |||
| _OrderCategory | _OrderCategory | |||
| _FiscCalendarDateForCompCode | _FiscCalendarDateForCompCode | |||
| _MaintenanceOrder | _MaintenanceOrder |
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_ControllingOrder.
-- 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: ICTRLGORDER
CREATE VIEW I_ControllingOrder AS
SELECT
cast(aufk.aufnr as fis_order_number) AS OrderID,
cast(aufk.ktext as fis_order_text) AS OrderDescription,
aufk.auart AS OrderType,
cast(aufk.autyp as fis_auftyp) AS OrderCategory,
aufk.refnr AS ReferenceOrder,
cast(aufk.aufex as fis_external_order_number) AS ExternalOrder,
aufk.objnr AS ObjectInternalID,
aufk.waers AS Currency,
aufk.werks AS Plant,
afko.gmein AS BaseUnit,
aufk.kokrs AS ControllingArea,
aufk.bukrs AS CompanyCode,
_CompanyCode.Currency AS CompanyCodeCurrency,
aufk.gsber AS BusinessArea,
aufk.prctr AS ProfitCenter,
cast(aufk.kostv as fis_resp_cctr) AS ResponsibleCostCenter,
cast(pspel as fis_wbsint_no_conv) AS WBSElementInternalID,
aufk.loekz AS IsMarkedForDeletion,
cast(aufk.flg_mltps as fis_co_mltps) AS MfgOrderHasMultipleItems,
cast(afko.klvari as fis_kalkvarist) AS ActualCostsCostingVariant,
cast(afko.klvarp as kalkvarpln ) AS PlannedCostsCostingVariant,
aufk.eb_post AS OrderIsEventBasedPosting,
aufk.eb_post AS EventBasedPostingMethod,
aufk.eb_post_type AS OrderSettlementTriggerType,
cast(afko.aufpl as pph_aufpl preserving type) AS MfgOrderInternalID,
cast(aufk.pdat2 as fis_aufpdat2) AS PlannedCompletionDate,
cast(aufk.ernam as fclm_bam_created_by) AS CreatedByUser,
cast(aufk.erdat as fis_auferfdat) AS CreationDate,
cast(aufk.aenam as fis_aufaenam) AS LastChangedByUser,
cast(aufk.aedat as fis_aufaedat) AS LastChangeDate,
cast(aufk.idat2 as fis_aufidat2) AS TechnicalCompletionDate,
cast(afko.gltrs as fis_co_gltrs) AS ScheduledBasicEndDate,
cast(afko.ftrms as fis_co_ftrms) AS ScheduledReleaseDate,
cast(afko.gstri as fis_co_gstri) AS ActualStartDate,
cast(afko.getri as fis_getri) AS ConfirmedEndDate,
cast(afko.ftrmi as fis_co_ftrmi) AS ActualReleasedDate,
aufk.astkz AS IsStatisticalOrder,
aufk.akstl AS RequestingCostCenter,
aufk.kostl AS CostCenter,
aufk.cycle AS ActualPostedCostCenter,
aufk.abgsl AS ResultAnalysisInternalID,
aufk.ebw_key AS EventBasedProcessingKey,
aufk.kdauf AS SalesOrder,
aufk.kdpos AS SalesOrderItem,
aufk.kalsm AS CostingSheet
FROM aufk
LEFT OUTER JOIN I_ProductCostCtrlgOrderItem AS _RepresentativeOrderItem ON OrderID = _RepresentativeOrderItem.OrderID AND _RepresentativeOrderItem.OrderItem = '0001' -- association [0..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [1..1]
LEFT OUTER JOIN E_ProductCostCtrlgOrder AS _Extension ON OrderID = _Extension.OrderID -- association [1..1]
LEFT OUTER JOIN I_OrderType AS _OrderType ON OrderType = _OrderType.OrderType -- association [1..1]
LEFT OUTER JOIN I_OrderCategory AS _OrderCategory ON OrderCategory = _OrderCategory.OrderCategory -- association [1..1]
LEFT OUTER JOIN I_FiscCalendarDateForCompCode AS _FiscCalendarDateForCompCode ON CreationDate = _FiscCalendarDateForCompCode.CalendarDate AND CompanyCode = _FiscCalendarDateForCompCode.CompanyCode -- association [1..1]
LEFT OUTER JOIN I_MaintenanceOrder AS _MaintenanceOrder ON OrderID = _MaintenanceOrder.MaintenanceOrder -- 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