R_InternalOrderTP
Internal Order
R_InternalOrderTP is a Transactional CDS View that provides data about "Internal Order" in SAP S/4HANA. It reads from 1 data source (I_InternalOrder) and exposes 129 fields with key fields InternalOrder, InternalOrderDraftInternalUUID. It has 12 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_InternalOrder | I_InternalOrder | from |
Associations (12)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_StatusObjectStatusBasic | _InternalOrderIsLocked | I_InternalOrder.ControllingObject = _InternalOrderIsLocked.StatusObject and _InternalOrderIsLocked.StatusCode = 'I0043' |
| [0..1] | I_StatusObjectStatusBasic | _IntOrdSettlementRuleIsCreated | I_InternalOrder.ControllingObject = _IntOrdSettlementRuleIsCreated.StatusObject and ( _IntOrdSettlementRuleIsCreated.StatusCode = 'I0028' or _IntOrdSettlementRuleIsCreated.StatusCode = 'I0027' ) and _IntOrdSettlementRuleIsCreated.StatusIsInactive = '' |
| [0..1] | I_StatusObjectStatusBasic | _IntOrdDeletionFlagIsSet | I_InternalOrder.ControllingObject = _IntOrdDeletionFlagIsSet.StatusObject and _IntOrdDeletionFlagIsSet.StatusCode = 'I0076' |
| [0..1] | I_StatusObjectStatusBasic | _IntOrdIsMarkedForDeletion | I_InternalOrder.ControllingObject = _IntOrdIsMarkedForDeletion.StatusObject and _IntOrdIsMarkedForDeletion.StatusCode = 'I0013' |
| [0..1] | I_TaxJurisdiction | _TaxJurisdiction | $projection.TaxJurisdiction = _TaxJurisdiction.TaxJurisdiction |
| [1..1] | E_InternalOrder | _IOExtention | $projection.InternalOrder = _IOExtention.InternalOrder |
| [1..1] | E_InternalOrderDraft | _IOExtentionDraft | $projection.InternalOrderDraftInternalUUID = _IOExtentionDraft.DraftUUID |
| [0..*] | R_InternalOrderSystemStatusTP | _InternalOrderSystemStatusTP | |
| [0..*] | R_IntOrderNumberedUserStatusTP | _IntOrderNumberedUserStatusTP | |
| [0..*] | R_IntOrdUnnumberedUserStatusTP | _IntOrdUnnumberedUserStatusTP | |
| [0..*] | R_IntOrdOverallSystemStatusTP | _IntOrdOverallSystemStatusTP | |
| [0..*] | R_IntOrdLongDescriptionDraftTP | _IntOrdLongDescriptionDraftTP | |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Internal Order | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.sapObjectNodeType.name | InternalOrder | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (129)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | InternalOrder | InternalOrder | Order | |
| KEY | InternalOrderDraftInternalUUID | |||
| InternalOrderForEdit | InternalOrder | Order | ||
| InternalOrderDescription | Description | |||
| OrderCategory | OrderCategory | Order Category | ||
| BusinessArea | BusinessArea | Business Area | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| Plant | Plant | Valuation Area | ||
| Currency | Currency | Valuation Crcy | ||
| IsStatisticalOrder | IsStatisticalOrder | Statistical Order | ||
| ReferenceOrder | ReferenceOrder | Reference Order | ||
| SalesOrder | SalesOrder | SD Document | ||
| SalesOrderItem | SalesOrderItem | Sales Order Item | ||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| WBSElementExternalID | _WBSElementBasicData | WBSElementExternalID | WBS Element External ID | |
| RequestingCostCenter | RequestingCostCenter | Req.cost center | ||
| RequestingCompanyCode | RequestingCompanyCode | Req. co.code | ||
| RequestingOrder | RequestingOrder | Req. order | ||
| InternalOrderLocation | InternalOrderLocation | Location | ||
| LocationPlant | LocationPlant | Location Plant | ||
| ExternalOrder | ExternalOrder | Ext. order no. | ||
| ActualPostedCostCenter | ActualPostedCostCenter | Cost Center for Actual Costs Posting | ||
| CostCenter | CostCenter | Cost Center | ||
| LogicalSystem | LogicalSystem | Logical System | ||
| OrdIsUsedInIntegratedPlanning | OrdIsUsedInIntegratedPlanning | Plan-Integrated Order | ||
| ResultAnalysisInternalID | ResultAnalysisInternalID | Results Analysis Key | ||
| ConditionUsage | ConditionUsage | Usage | ||
| ConditionApplication | ConditionApplication | Application | ||
| CostingSheet | CostingSheet | Costing Sheet | ||
| OverheadCode | OverheadCode | Overhead Key | ||
| OrderInterestCalcProfile | OrderInterestCalcProfile | Interest Profile for Order Interest Calculation | ||
| IntOrderSettlementCostElement | IntOrderSettlementCostElement | Settlement Cost Element | ||
| BasicSettlementGLAccount | BasicSettlementGLAccount | G/L Account | ||
| IntOrderIndividualField1Value | IntOrderIndividualField1Value | Applicant | ||
| IntOrderIndividualField2Value | IntOrderIndividualField2Value | Telephone | ||
| IntOrderIndividualField3Value | IntOrderIndividualField3Value | Person resp. | ||
| IntOrderIndividualField4Value | IntOrderIndividualField4Value | Telephone | ||
| IntOrderIndividualField5Amount | IntOrderIndividualField5Amount | Estimated costs | ||
| IntOrderIndividualField6Date | IntOrderIndividualField6Date | ApplicDate | ||
| IntOrderIndividualField7Value | IntOrderIndividualField7Value | Department | ||
| IntOrderIndividualField8Date | IntOrderIndividualField8Date | Work Start | ||
| IntOrderIndividualField9Date | IntOrderIndividualField9Date | End of Work | ||
| IntOrderIndividualField10Value | Work permit | |||
| OrderProcessingGroup | OrderProcessingGroup | Processing Group | ||
| InvestmentProfile | InvestmentProfile | Investment Measure Profile | ||
| InvestmentScale | InvestmentScale | Investment Scale | ||
| InvestmentReason | InvestmentReason | Invest. Reason | ||
| EnvironmentalInvestmentReason | EnvironmentalInvestmentReason | Envir. Invest. | ||
| JointVenture | JointVenture | Joint venture | ||
| JointVentureRecoveryCode | JointVentureRecoveryCode | Recovery Ind. | ||
| JointVentureEquityType | JointVentureEquityType | Joint Venture Equity Type | ||
| JointVentureOriginalCostObject | JointVentureOriginalCostObject | Or. Cost Obj. | ||
| JointVentureObjectType | JointVentureObjectType | JV Object Type | ||
| JointVentureClass | JointVentureClass | JIB/JIBE Class | ||
| JointVentureSubClass | JointVentureSubClass | JIB/JIBE SbClsA | ||
| CreationDate | CreationDate | Time Stamp | ||
| CreationTime | CreationTime | Time of Change | ||
| CreatedByUser | CreatedByUser | User Name | ||
| LastChangedByUser | User Name | |||
| LastChangeDate | LastChangeDate | Time Stamp | ||
| LastChangeTime | LastChangeTime | Time changed | ||
| ControllingObject | ControllingObject | Object number | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| ControllingObjectClass | ControllingObjectClass | Object Class | ||
| OrderType | OrderType | Order Type | ||
| ResponsibleCostCenter | ResponsibleCostCenter | Responsible Cost Center | ||
| InternalOrderResponsibleUser | InternalOrderResponsibleUser | User Responsible | ||
| ControllingObjectStatus | _SystemStatus | ControllingObjectStatus | Status | |
| IntOrderSystemStatusShortName | ||||
| InternalOrderSystemStatusName | ||||
| TaxJurisdiction | TaxJurisdiction | Tax Jurisdiction | ||
| _ActualPostedCostCenter | _ActualPostedCostCenter | |||
| _BasicSettlementGLAccount | _BasicSettlementGLAccount | |||
| _CompanyCode | _CompanyCode | |||
| _ConditionApplication | _ConditionApplication | |||
| _ConditionUsage | _ConditionUsage | |||
| _ControllingArea | _ControllingArea | |||
| _ControllingAreaText | _ControllingAreaText | |||
| _ControllingObjectClass | _ControllingObjectClass | |||
| _CostCenter | _CostCenter | |||
| _CostCenterData | _CostCenterData | |||
| _CostingSheetProcedure | _CostingSheetProcedure | |||
| _EnvrnmtlInvestmentReason | _EnvrnmtlInvestmentReason | |||
| _FunctionalArea | _FunctionalArea | |||
| _InternalOrderType | _InternalOrderType | |||
| _InternalOrderTypeText | _InternalOrderTypeText | |||
| _IntOrderSettlementCostElement | _IntOrderSettlementCostElement | |||
| _InvestmentObjectScale | _InvestmentObjectScale | |||
| _InvestmentProfile | _InvestmentProfile | |||
| _InvestmentReason | _InvestmentReason | |||
| _JntIntrstBillgClass | _JntIntrstBillgClass | |||
| _JntIntrstBillgSubclass | _JntIntrstBillgSubclass | |||
| _JntVntrEquityTypeMaster | _JntVntrEquityTypeMaster | |||
| _JointVentureRecovery | _JointVentureRecovery | |||
| _Location | _Location | |||
| _LocationPlant | _LocationPlant | |||
| _LogicalSystem | _LogicalSystem | |||
| _OrderProcessingGroup | _OrderProcessingGroup | |||
| _ProfitCenter | _ProfitCenter | |||
| _RequestingCompanyCode | _RequestingCompanyCode | |||
| _RequestingCostCenter | _RequestingCostCenter | |||
| _RequestingOrder | _RequestingOrder | |||
| _ResultsAnalysisKey | _ResultsAnalysisKey | |||
| _ResponsibleUser | _ResponsibleUser | |||
| _CreatedByUser | _CreatedByUser | |||
| _LastChangedByUser | _LastChangedByUser | |||
| _CurRespCostCenterText | _CurRespCostCenterText | |||
| _CurRequestingCostCenterText | _CurRequestingCostCenterText | |||
| _CurCostCenterDataText | _CurCostCenterDataText | |||
| _SystemStatus | _SystemStatus | |||
| _WBSElementBasicData | _WBSElementBasicData | |||
| _Currency | _Currency | |||
| _OrderCategory | _OrderCategory | |||
| _Plant | _Plant | |||
| _BusinessArea | _BusinessArea | |||
| _CurProfitCenterText | _CurProfitCenterText | |||
| _CurActualPostedCostCenterText | _CurActualPostedCostCenterText | |||
| _InternalOrderIsLocked | _InternalOrderIsLocked | |||
| _IntOrdSettlementRuleIsCreated | _IntOrdSettlementRuleIsCreated | |||
| _IntOrdDeletionFlagIsSet | _IntOrdDeletionFlagIsSet | |||
| _IntOrdIsMarkedForDeletion | _IntOrdIsMarkedForDeletion | |||
| _InternalOrderSystemStatusTP | _InternalOrderSystemStatusTP | |||
| _IntOrdUnnumberedUserStatusTP | _IntOrdUnnumberedUserStatusTP | |||
| _IntOrderNumberedUserStatusTP | _IntOrderNumberedUserStatusTP | |||
| _IntOrdOverallSystemStatusTP | _IntOrdOverallSystemStatusTP | |||
| _IntOrdLongDescriptionDraftTP | _IntOrdLongDescriptionDraftTP | |||
| _TaxJurisdiction | _TaxJurisdiction |
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 R_InternalOrderTP.
-- 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 R_InternalOrderTP AS
SELECT
InternalOrder,
cast('00000000000000000000000000000000' as sysuuid_c32) AS InternalOrderDraftInternalUUID,
InternalOrder AS InternalOrderForEdit,
cast( InternalOrderDescription as kltxt ) AS InternalOrderDescription,
OrderCategory,
BusinessArea,
ControllingArea,
Plant,
Currency,
IsStatisticalOrder,
ReferenceOrder,
SalesOrder,
SalesOrderItem,
WBSElementInternalID,
_WBSElementBasicData.WBSElementExternalID AS WBSElementExternalID,
RequestingCostCenter,
RequestingCompanyCode,
RequestingOrder,
InternalOrderLocation,
LocationPlant,
ExternalOrder,
ActualPostedCostCenter,
CostCenter,
LogicalSystem,
OrdIsUsedInIntegratedPlanning,
ResultAnalysisInternalID,
ConditionUsage,
ConditionApplication,
CostingSheet,
OverheadCode,
OrderInterestCalcProfile,
IntOrderSettlementCostElement,
BasicSettlementGLAccount,
IntOrderIndividualField1Value,
IntOrderIndividualField2Value,
IntOrderIndividualField3Value,
IntOrderIndividualField4Value,
IntOrderIndividualField5Amount,
IntOrderIndividualField6Date,
IntOrderIndividualField7Value,
IntOrderIndividualField8Date,
IntOrderIndividualField9Date,
cast ( IntOrderIndividualField10Value as fco_io_aufuser9 preserving type ) AS IntOrderIndividualField10Value,
OrderProcessingGroup,
InvestmentProfile,
InvestmentScale,
InvestmentReason,
EnvironmentalInvestmentReason,
JointVenture,
JointVentureRecoveryCode,
JointVentureEquityType,
JointVentureOriginalCostObject,
JointVentureObjectType,
JointVentureClass,
JointVentureSubClass,
CreationDate,
CreationTime,
CreatedByUser,
cast ( LastChangedByUser as fco_io_aufaenam preserving type ) AS LastChangedByUser,
LastChangeDate,
LastChangeTime,
ControllingObject,
CompanyCode,
ProfitCenter,
FunctionalArea,
ControllingObjectClass,
OrderType,
ResponsibleCostCenter,
InternalOrderResponsibleUser,
_SystemStatus.ControllingObjectStatus AS ControllingObjectStatus,
_SystemStatus._Text[1: Language = $session.system_language].SystemStatusShortName AS IntOrderSystemStatusShortName,
_SystemStatus._Text[1: Language = $session.system_language].StatusName AS InternalOrderSystemStatusName,
TaxJurisdiction
FROM I_InternalOrder
LEFT OUTER JOIN I_StatusObjectStatusBasic AS _InternalOrderIsLocked ON I_InternalOrder.ControllingObject = _InternalOrderIsLocked.StatusObject AND _InternalOrderIsLocked.StatusCode = 'I0043' -- association [0..1]
LEFT OUTER JOIN I_StatusObjectStatusBasic AS _IntOrdSettlementRuleIsCreated ON I_InternalOrder.ControllingObject = _IntOrdSettlementRuleIsCreated.StatusObject AND ( _IntOrdSettlementRuleIsCreated.StatusCode = 'I0028' OR _IntOrdSettlementRuleIsCreated.StatusCode = 'I0027' ) AND _IntOrdSettlementRuleIsCreated.StatusIsInactive = '' -- association [0..1]
LEFT OUTER JOIN I_StatusObjectStatusBasic AS _IntOrdDeletionFlagIsSet ON I_InternalOrder.ControllingObject = _IntOrdDeletionFlagIsSet.StatusObject AND _IntOrdDeletionFlagIsSet.StatusCode = 'I0076' -- association [0..1]
LEFT OUTER JOIN I_StatusObjectStatusBasic AS _IntOrdIsMarkedForDeletion ON I_InternalOrder.ControllingObject = _IntOrdIsMarkedForDeletion.StatusObject AND _IntOrdIsMarkedForDeletion.StatusCode = 'I0013' -- association [0..1]
LEFT OUTER JOIN I_TaxJurisdiction AS _TaxJurisdiction ON TaxJurisdiction = _TaxJurisdiction.TaxJurisdiction -- association [0..1]
LEFT OUTER JOIN E_InternalOrder AS _IOExtention ON InternalOrder = _IOExtention.InternalOrder -- association [1..1]
LEFT OUTER JOIN E_InternalOrderDraft AS _IOExtentionDraft ON InternalOrderDraftInternalUUID = _IOExtentionDraft.DraftUUID -- association [1..1]
LEFT OUTER JOIN R_InternalOrderSystemStatusTP AS _InternalOrderSystemStatusTP ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_IntOrderNumberedUserStatusTP AS _IntOrderNumberedUserStatusTP ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_IntOrdUnnumberedUserStatusTP AS _IntOrdUnnumberedUserStatusTP ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_IntOrdOverallSystemStatusTP AS _IntOrdOverallSystemStatusTP ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_IntOrdLongDescriptionDraftTP AS _IntOrdLongDescriptionDraftTP ON /* condition not available in parsed metadata */ -- association [0..*]
;
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