I_InternalOrder

DDL: I_INTERNALORDER SQL: IFIINTERNALORDER Type: view BASIC

Internal Order

I_InternalOrder (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Internal Order · Accounting and Financial Close

I_InternalOrder is a Basic CDS View (Dimension) that provides data about "Internal Order" in SAP S/4HANA. It reads from 1 data source (aufk) and exposes 128 fields with key field InternalOrder. It has 52 associations to related views.

SAP Help Documentation

CategoryCDS Views for Overhead Cost Controlling
Data CategoryDimension
Corresponding DataSource2CIFIINTERNALORDER
Purpose
This CDS view helps you retrieve master data of an internal order object. To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessAccounting and Financial Close
Application ComponentFI-FIO-GL-IS
CapabilitiesData Source for Defining CDS Entities, Data Source for Data Extraction
PackageAccounting and Financial Close for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view helps you retrieve master data of an internal order object.</p> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
aufk aufk from

Associations (52)

CardinalityTargetAliasCondition
[0..1] I_ControllingArea _ControllingAreaText $projection.ControllingArea = _ControllingAreaText.ControllingArea
[0..*] I_InternalOrderTypeText _InternalOrderTypeText $projection.OrderType = _InternalOrderTypeText.OrderType
[0..1] I_ControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..*] I_ProfitCenter _ProfitCenter $projection.ControllingArea = _ProfitCenter.ControllingArea and $projection.ProfitCenter = _ProfitCenter.ProfitCenter
[0..1] I_FunctionalArea _FunctionalArea $projection.FunctionalArea = _FunctionalArea.FunctionalArea
[0..1] I_ControllingObjectClass _ControllingObjectClass $projection.ControllingObjectClass = _ControllingObjectClass.ControllingObjectClass
[0..1] I_InternalOrderType _InternalOrderType $projection.OrderType = _InternalOrderType.OrderType
[0..*] I_CostCenter _CostCenter $projection.ControllingArea = _CostCenter.ControllingArea and $projection.ResponsibleCostCenter = _CostCenter.CostCenter
[0..*] I_InternalOrderSystemStatus _SystemStatus $projection.ControllingObject = _SystemStatus.ControllingObject
[1..1] E_LogisticsOrder _Extension $projection.InternalOrder = _Extension.OrderID
[0..*] I_ProfitCenterText _CurProfitCenterText $projection.ControllingArea = _CurProfitCenterText.ControllingArea and $projection.ProfitCenter = _CurProfitCenterText.ProfitCenter and _CurProfitCenterText.ValidityStartDate <= $session.system_date and _CurProfitCenterText.ValidityEndDate >= $session.system_date
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_User _User $projection.InternalOrderResponsibleUser = _User.UserID
[0..1] I_BusinessArea _BusinessArea $projection.BusinessArea = _BusinessArea.BusinessArea
[0..1] I_Currency _Currency $projection.Currency = _Currency.Currency
[0..1] I_OrderCategory _OrderCategory $projection.OrderCategory = _OrderCategory.OrderCategory
[0..*] I_CostCenterText _CurRespCostCenterText $projection.ControllingArea = _CurRespCostCenterText.ControllingArea and $projection.ResponsibleCostCenter = _CurRespCostCenterText.CostCenter and _CurRespCostCenterText.ValidityStartDate <= $session.system_date and _CurRespCostCenterText.ValidityEndDate >= $session.system_date
[0..1] I_WBSElementBasicData _WBSElementBasicData $projection.WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID
[0..*] I_CostCenter _RequestingCostCenter $projection.RequestingCostCenter = _RequestingCostCenter.CostCenter and $projection.ControllingArea = _RequestingCostCenter.ControllingArea
[0..*] I_CostCenterText _CurRequestingCostCenterText $projection.ControllingArea = _CurRequestingCostCenterText.ControllingArea and $projection.RequestingCostCenter = _CurRequestingCostCenterText.CostCenter and _CurRequestingCostCenterText.ValidityStartDate <= $session.system_date and _CurRequestingCostCenterText.ValidityEndDate >= $session.system_date
[0..1] I_CompanyCode _RequestingCompanyCode $projection.RequestingCompanyCode = _RequestingCompanyCode.CompanyCode
[0..1] I_Order _RequestingOrder $projection.RequestingOrder = _RequestingOrder.OrderID
[0..1] I_Location _Location $projection.InternalOrderLocation = _Location.Location and $projection.LocationPlant = _Location.Plant
[0..1] I_Plant _LocationPlant $projection.LocationPlant = _LocationPlant.Plant
[0..*] I_CostCenter _ActualPostedCostCenter $projection.ControllingArea = _ActualPostedCostCenter.ControllingArea and $projection.ActualPostedCostCenter = _ActualPostedCostCenter.CostCenter
[0..*] I_CostCenterText _CurActualPostedCostCenterText $projection.ControllingArea = _CurActualPostedCostCenterText.ControllingArea and $projection.ActualPostedCostCenter = _CurActualPostedCostCenterText.CostCenter and _CurActualPostedCostCenterText.ValidityStartDate <= $session.system_date and _CurActualPostedCostCenterText.ValidityEndDate >= $session.system_date
[0..*] I_CostCenter _CostCenterData $projection.ControllingArea = _CostCenterData.ControllingArea and $projection.CostCenter = _CostCenterData.CostCenter
[0..*] I_CostCenterText _CurCostCenterDataText $projection.ControllingArea = _CurCostCenterDataText.ControllingArea and $projection.CostCenter = _CurCostCenterDataText.CostCenter and _CurCostCenterDataText.ValidityStartDate <= $session.system_date and _CurCostCenterDataText.ValidityEndDate >= $session.system_date
[0..1] I_LogicalSystem _LogicalSystem $projection.LogicalSystem = _LogicalSystem.LogicalSystem
[0..1] I_ConditionUsage _ConditionUsage $projection.ConditionUsage = _ConditionUsage.ConditionUsage
[0..1] I_ConditionApplication _ConditionApplication $projection.ConditionApplication = _ConditionApplication.ConditionApplication
[0..1] I_CostingSheetProcedure _CostingSheetProcedure $projection.ConditionUsage = _CostingSheetProcedure.ConditionUsage and $projection.ConditionApplication = _CostingSheetProcedure.ConditionApplication and $projection.CostingSheet = _CostingSheetProcedure.CostingSheetProcedure
[0..*] I_CostElementOnControllingArea _IntOrderSettlementCostElement $projection.ControllingArea = _IntOrderSettlementCostElement.ControllingArea and $projection.IntOrderSettlementCostElement = _IntOrderSettlementCostElement.CostElement
[0..1] I_GLAccountInCompanyCode _BasicSettlementGLAccount $projection.CompanyCode = _BasicSettlementGLAccount.CompanyCode and $projection.BasicSettlementGLAccount = _BasicSettlementGLAccount.GLAccount
[0..1] I_OrderProcessingGroup _OrderProcessingGroup $projection.ControllingArea = _OrderProcessingGroup.ControllingArea and $projection.OrderProcessingGroup = _OrderProcessingGroup.OrderProcessingGroup
[0..1] I_InvestmentProfile _InvestmentProfile $projection.InvestmentProfile = _InvestmentProfile.InvestmentProfile
[0..1] I_InvestmentReason _InvestmentReason $projection.InvestmentReason = _InvestmentReason.InvestmentReason
[0..1] I_EnvrnmtlInvestmentReason _EnvrnmtlInvestmentReason $projection.EnvironmentalInvestmentReason = _EnvrnmtlInvestmentReason.EnvrnmtlInvestmentReason
[0..1] I_JointVentureMaster _JointVentureMaster $projection.CompanyCode = _JointVentureMaster.CompanyCode and $projection.JointVenture = _JointVentureMaster.JointVenture
[0..1] I_JointVentureRecovery _JointVentureRecovery $projection.JointVentureRecoveryCode = _JointVentureRecovery.JointVentureRecoveryCode and $projection.CompanyCode = _JointVentureRecovery.CompanyCode
[0..1] I_JntVntrEquityTypeMaster _JntVntrEquityTypeMaster $projection.JointVentureEquityType = _JntVntrEquityTypeMaster.JointVentureEquityType and $projection.CompanyCode = _JntVntrEquityTypeMaster.CompanyCode
[0..1] I_JntVntrCostCtrType _JntVntrCostCtrType $projection.JointVentureObjectType = _JntVntrCostCtrType.JntVntrCostCtrType and $projection.CompanyCode = _JntVntrCostCtrType.CompanyCode
[0..1] I_JntIntrstBillgClass _JntIntrstBillgClass $projection.JointVentureClass = _JntIntrstBillgClass.JntIntrstBillgClass and $projection.CompanyCode = _JntIntrstBillgClass.CompanyCode
[0..1] I_JntIntrstBillgSubclass _JntIntrstBillgSubclass $projection.CompanyCode = _JntIntrstBillgSubclass.CompanyCode and $projection.JointVentureClass = _JntIntrstBillgSubclass.JntIntrstBillgClass and $projection.JointVentureSubClass = _JntIntrstBillgSubclass.JntIntrstBillgSubClass
[0..1] I_UserContactCard _ResponsibleUser $projection.InternalOrderResponsibleUser = _ResponsibleUser.ContactCardID
[0..1] I_UserContactCard _CreatedByUser $projection.CreatedByUser = _CreatedByUser.ContactCardID
[0..1] I_UserContactCard _LastChangedByUser $projection.LastChangedByUser = _LastChangedByUser.ContactCardID
[0..1] I_ResultsAnalysisKey _ResultsAnalysisKey $projection.ResultAnalysisInternalID = _ResultsAnalysisKey.ResultAnalysisInternalID
[0..1] I_InvestmentObjectScale _InvestmentObjectScale $projection.InvestmentScale = _InvestmentObjectScale.InvestmentScale
[0..*] I_IntOrderActiveSystemStatus _IntOrderActiveSystemStatus $projection.ControllingObject = _IntOrderActiveSystemStatus.StatusObject
[0..*] I_IntOrderActiveUserStatus _IntOrderActiveUserStatus $projection.ControllingObject = _IntOrderActiveUserStatus.StatusObject

Annotations (18)

NameValueLevelField
EndUserText.label Internal Order view
AbapCatalog.sqlViewName IFIINTERNALORDER view
AbapCatalog.buffering.type #NONE view
AbapCatalog.buffering.numberOfKeyFields 0 view
AbapCatalog.buffering.status #NOT_ALLOWED view
VDM.viewType #BASIC view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.type #CLIENT_DEPENDENT view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.representativeKey InternalOrder view
ObjectModel.sapObjectNodeType.name InternalOrder view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions true view

Fields (128)

KeyFieldSource TableSource FieldDescription
KEY InternalOrder SettlementOrder
InternalOrderDescription Internal Order Description
OrderCategory autyp Order category
BusinessArea Business Area
ControllingArea Controlling Area
Plant werks Receiving Plant
Currency waers Transaction Currency
IsStatisticalOrder Indicates If the Int. Order Has a Stats. Account Assignment
ReferenceOrder Reference Order Number
SalesOrder kdauf Sales Order Number
SalesOrderItem kdpos Item Number in Sales Order
WBSElement pspel Work Breakdown Structure Element (WBS Element)
WBSElementInternalID WBS Element
RequestingCostCenter akstl Requesting cost center
RequestingCompanyCode abukr Requesting company code
RequestingOrder anfaufnr Requesting order
InternalOrderLocation Plant location for internal order
LocationPlant sowrk SpclPrcmntPlant
ExternalOrder aufex External order number
ActualPostedCostCenter Cost Center for Actual Costs Posting
PlanningWithLineItemsIsActive plgkz Identifier for Planning with Line Items
CostCenter Substitute CC
LogicalSystem logsystem Logical System
OrdIsUsedInIntegratedPlanning Indicates If the Internal Order Is Plan Integrated
TaxJurisdiction Tax Jurisdiction
ResultAnalysisInternalID Results analysis key
ConditionUsage kvewe Usage of the condition table
ConditionApplication kappl Application
CostingSheet kalsm Search Proced.
OverheadCode Overhead key
OrderInterestCalcProfile Interest Profile for Order Interest Calculation
IntOrderSettlementCostElement Settlement Cost Element
BasicSettlementGLAccount saknr G/L Account for Basic Settlement
IntOrderIndividualField1Value user0 Applicant
IntOrderIndividualField2Value user1 Applicant's telephone number
IntOrderIndividualField3Value user2 Person Responsible
IntOrderIndividualField4Value user3 Telephone number of person in charge
IntOrderIndividualField5Amount user4 Estimated total costs of order
IntOrderIndividualField6Date user5 Application date
IntOrderIndividualField7Value user6 Department
IntOrderIndividualField8Date user7 Work Start
IntOrderIndividualField9Date user8 End of Work
IntOrderIndividualField10Value user9 Identifier for work permit issued
OrderProcessingGroup Processing Group
InvestmentProfile Investment Measure Profile
InvestmentScale Scale of investment objects
InvestmentReason izwek Reason for Investment
EnvironmentalInvestmentReason umwkz Reason for Environmental Investment
JointVenture vname Volatility Name
JointVentureRecoveryCode recid Statistical Key Figure Item
JointVentureEquityType etype RDS Entity Type
JointVentureOriginalCostObject jv_oco JV original cost object
JointVentureObjectType otype Joint Venture Object Type
JointVentureClass jv_jibcl JIB/JIBE Class
JointVentureSubClass jv_jibsa JIB/JIBE Subclass A
IsDeleted loekz Deletion Flag
CreationDate erdat Entered On
CreationTime erfzeit Time created
CreatedByUser Created By
LastChangedByUser aenam Last Changed By
LastChangeDate aedat Change Date for Order Master
LastChangeTime aezeit Time changed
ControllingObject objnr Val. Obj. No.
CompanyCode Company Code
ProfitCenter Profit Centers
FunctionalArea Receiving Func. Area
ControllingObjectClass Object Class
OrderType auart Sales Doc. Type
ResponsibleCostCenter Responsible cost center in internal order
InternalOrderResponsibleUser Responsible user for Internal Order
IntOrderPlannedReleaseDate pdat1 Planned release date
IntOrderPlannedCompletionDate pdat2 Planned completion date
IntOrderPlannedClosingDate pdat3 Planned closing date
InternalOrderReleaseDate idat1 Release Date
InternalOrderCompletionDate idat2 Technical Completion Date
InternalOrderClosingDate idat3 Close Date
CostCollector cckey Cost Collector Key
_ControllingArea _ControllingArea
_CompanyCode _CompanyCode
_ProfitCenter _ProfitCenter
_FunctionalArea _FunctionalArea
_ControllingObjectClass _ControllingObjectClass
_InternalOrderType _InternalOrderType
_CostCenter _CostCenter
_User _User
_WBSElementBasicData _WBSElementBasicData
_RequestingCostCenter _RequestingCostCenter
_RequestingCompanyCode _RequestingCompanyCode
_RequestingOrder _RequestingOrder
_Location _Location
_LocationPlant _LocationPlant
_ActualPostedCostCenter _ActualPostedCostCenter
_CostCenterData _CostCenterData
_LogicalSystem _LogicalSystem
_ConditionUsage _ConditionUsage
_ConditionApplication _ConditionApplication
_CostingSheetProcedure _CostingSheetProcedure
_IntOrderSettlementCostElement _IntOrderSettlementCostElement
_BasicSettlementGLAccount _BasicSettlementGLAccount
_OrderProcessingGroup _OrderProcessingGroup
_InvestmentProfile _InvestmentProfile
_InvestmentReason _InvestmentReason
_EnvrnmtlInvestmentReason _EnvrnmtlInvestmentReason
_JointVentureMaster _JointVentureMaster
_JointVentureRecovery _JointVentureRecovery
_JntVntrEquityTypeMaster _JntVntrEquityTypeMaster
_JntVntrCostCtrType _JntVntrCostCtrType
_JntIntrstBillgClass _JntIntrstBillgClass
_JntIntrstBillgSubclass _JntIntrstBillgSubclass
_ResponsibleUser _ResponsibleUser
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_CurRespCostCenterText _CurRespCostCenterText
_CurRequestingCostCenterText _CurRequestingCostCenterText
_CurCostCenterDataText _CurCostCenterDataText
_SystemStatus _SystemStatus
_ResultsAnalysisKey _ResultsAnalysisKey
_InvestmentObjectScale _InvestmentObjectScale
_Currency _Currency
_OrderCategory _OrderCategory
_BusinessArea _BusinessArea
_Plant _Plant
_CurProfitCenterText _CurProfitCenterText
_CurActualPostedCostCenterText _CurActualPostedCostCenterText
_IntOrderActiveSystemStatus _IntOrderActiveSystemStatus
_IntOrderActiveUserStatus _IntOrderActiveUserStatus
_ControllingAreaText _ControllingAreaText
_InternalOrderTypeText _InternalOrderTypeText

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_InternalOrder.
-- 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: IFIINTERNALORDER

CREATE VIEW I_InternalOrder AS
SELECT
  cast( aufnr as fins_int_aufnr preserving type ) AS InternalOrder,
  cast(ktext as fis_internalorder_text) AS InternalOrderDescription,
  autyp AS OrderCategory,
  cast(gsber as fis_rbusa) AS BusinessArea,
  cast(kokrs as fis_kokrs preserving type ) AS ControllingArea,
  werks AS Plant,
  waers AS Currency,
  cast (astkz as fins_co_xaufnr_stat preserving type ) AS IsStatisticalOrder,
  cast(refnr as fis_aufrefnr preserving type ) AS ReferenceOrder,
  kdauf AS SalesOrder,
  kdpos AS SalesOrderItem,
  pspel AS WBSElement,
  cast ( pspel as ps_s4_pspnr preserving type ) AS WBSElementInternalID,
  akstl AS RequestingCostCenter,
  abukr AS RequestingCompanyCode,
  anfaufnr AS RequestingOrder,
  cast( stort as fco_io_aufstort preserving type ) AS InternalOrderLocation,
  sowrk AS LocationPlant,
  aufex AS ExternalOrder,
  cast( cycle as fins_st_kostl preserving type ) AS ActualPostedCostCenter,
  plgkz AS PlanningWithLineItemsIsActive,
  cast(kostl as fis_kostl preserving type ) AS CostCenter,
  logsystem AS LogicalSystem,
  cast(plint as fco_plint preserving type ) AS OrdIsUsedInIntegratedPlanning,
  cast ( txjcd as fis_txjcd preserving type ) AS TaxJurisdiction,
  cast(abgsl as fco_abgr_schl preserving type ) AS ResultAnalysisInternalID,
  kvewe AS ConditionUsage,
  kappl AS ConditionApplication,
  kalsm AS CostingSheet,
  cast(zschl as fco_aufzschl preserving type ) AS OverheadCode,
  cast(zschm as fco_io_ps_zschm preserving type ) AS OrderInterestCalcProfile,
  cast(kstar as fco_aufkstar preserving type ) AS IntOrderSettlementCostElement,
  saknr AS BasicSettlementGLAccount,
  user0 AS IntOrderIndividualField1Value,
  user1 AS IntOrderIndividualField2Value,
  user2 AS IntOrderIndividualField3Value,
  user3 AS IntOrderIndividualField4Value,
  user4 AS IntOrderIndividualField5Amount,
  user5 AS IntOrderIndividualField6Date,
  user6 AS IntOrderIndividualField7Value,
  user7 AS IntOrderIndividualField8Date,
  user8 AS IntOrderIndividualField9Date,
  user9 AS IntOrderIndividualField10Value,
  cast(abkrs as fco_aufabkrs preserving type ) AS OrderProcessingGroup,
  cast(ivpro as fco_im_profil preserving type ) AS InvestmentProfile,
  cast(sizecl as fco_im_sizecl preserving type ) AS InvestmentScale,
  izwek AS InvestmentReason,
  umwkz AS EnvironmentalInvestmentReason,
  vname AS JointVenture,
  recid AS JointVentureRecoveryCode,
  etype AS JointVentureEquityType,
  jv_oco AS JointVentureOriginalCostObject,
  otype AS JointVentureObjectType,
  jv_jibcl AS JointVentureClass,
  jv_jibsa AS JointVentureSubClass,
  loekz AS IsDeleted,
  erdat AS CreationDate,
  erfzeit AS CreationTime,
  cast(ernam as fin_usnam preserving type ) AS CreatedByUser,
  aenam AS LastChangedByUser,
  aedat AS LastChangeDate,
  aezeit AS LastChangeTime,
  objnr AS ControllingObject,
  cast(bukrs as fis_bukrs preserving type ) AS CompanyCode,
  cast(prctr as fis_prctr) AS ProfitCenter,
  cast(func_area as fm_farea) AS FunctionalArea,
  cast(scope as fis_scope_cv_conv) AS ControllingObjectClass,
  auart AS OrderType,
  cast( kostv as fin_io_aufkostv preserving type ) AS ResponsibleCostCenter,
  cast( veraa_user as fco_veraa_user preserving type ) AS InternalOrderResponsibleUser,
  pdat1 AS IntOrderPlannedReleaseDate,
  pdat2 AS IntOrderPlannedCompletionDate,
  pdat3 AS IntOrderPlannedClosingDate,
  idat1 AS InternalOrderReleaseDate,
  idat2 AS InternalOrderCompletionDate,
  idat3 AS InternalOrderClosingDate,
  cckey AS CostCollector
FROM aufk
LEFT OUTER JOIN I_ControllingArea AS _ControllingAreaText ON ControllingArea = _ControllingAreaText.ControllingArea  -- association [0..1]
LEFT OUTER JOIN I_InternalOrderTypeText AS _InternalOrderTypeText ON OrderType = _InternalOrderTypeText.OrderType  -- association [0..*]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_ProfitCenter AS _ProfitCenter ON ControllingArea = _ProfitCenter.ControllingArea AND ProfitCenter = _ProfitCenter.ProfitCenter  -- association [0..*]
LEFT OUTER JOIN I_FunctionalArea AS _FunctionalArea ON FunctionalArea = _FunctionalArea.FunctionalArea  -- association [0..1]
LEFT OUTER JOIN I_ControllingObjectClass AS _ControllingObjectClass ON ControllingObjectClass = _ControllingObjectClass.ControllingObjectClass  -- association [0..1]
LEFT OUTER JOIN I_InternalOrderType AS _InternalOrderType ON OrderType = _InternalOrderType.OrderType  -- association [0..1]
LEFT OUTER JOIN I_CostCenter AS _CostCenter ON ControllingArea = _CostCenter.ControllingArea AND ResponsibleCostCenter = _CostCenter.CostCenter  -- association [0..*]
LEFT OUTER JOIN I_InternalOrderSystemStatus AS _SystemStatus ON ControllingObject = _SystemStatus.ControllingObject  -- association [0..*]
LEFT OUTER JOIN E_LogisticsOrder AS _Extension ON InternalOrder = _Extension.OrderID  -- association [1..1]
LEFT OUTER JOIN I_ProfitCenterText AS _CurProfitCenterText ON ControllingArea = _CurProfitCenterText.ControllingArea AND ProfitCenter = _CurProfitCenterText.ProfitCenter AND _CurProfitCenterText.ValidityStartDate <= $session.system_date AND _CurProfitCenterText.ValidityEndDate >= $session.system_date  -- association [0..*]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_User AS _User ON InternalOrderResponsibleUser = _User.UserID  -- association [0..1]
LEFT OUTER JOIN I_BusinessArea AS _BusinessArea ON BusinessArea = _BusinessArea.BusinessArea  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON Currency = _Currency.Currency  -- association [0..1]
LEFT OUTER JOIN I_OrderCategory AS _OrderCategory ON OrderCategory = _OrderCategory.OrderCategory  -- association [0..1]
LEFT OUTER JOIN I_CostCenterText AS _CurRespCostCenterText ON ControllingArea = _CurRespCostCenterText.ControllingArea AND ResponsibleCostCenter = _CurRespCostCenterText.CostCenter AND _CurRespCostCenterText.ValidityStartDate <= $session.system_date AND _CurRespCostCenterText.ValidityEndDate >= $session.system_date  -- association [0..*]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElementBasicData ON WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID  -- association [0..1]
LEFT OUTER JOIN I_CostCenter AS _RequestingCostCenter ON RequestingCostCenter = _RequestingCostCenter.CostCenter AND ControllingArea = _RequestingCostCenter.ControllingArea  -- association [0..*]
LEFT OUTER JOIN I_CostCenterText AS _CurRequestingCostCenterText ON ControllingArea = _CurRequestingCostCenterText.ControllingArea AND RequestingCostCenter = _CurRequestingCostCenterText.CostCenter AND _CurRequestingCostCenterText.ValidityStartDate <= $session.system_date AND _CurRequestingCostCenterText.ValidityEndDate >= $session.system_date  -- association [0..*]
LEFT OUTER JOIN I_CompanyCode AS _RequestingCompanyCode ON RequestingCompanyCode = _RequestingCompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_Order AS _RequestingOrder ON RequestingOrder = _RequestingOrder.OrderID  -- association [0..1]
LEFT OUTER JOIN I_Location AS _Location ON InternalOrderLocation = _Location.Location AND LocationPlant = _Location.Plant  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _LocationPlant ON LocationPlant = _LocationPlant.Plant  -- association [0..1]
LEFT OUTER JOIN I_CostCenter AS _ActualPostedCostCenter ON ControllingArea = _ActualPostedCostCenter.ControllingArea AND ActualPostedCostCenter = _ActualPostedCostCenter.CostCenter  -- association [0..*]
LEFT OUTER JOIN I_CostCenterText AS _CurActualPostedCostCenterText ON ControllingArea = _CurActualPostedCostCenterText.ControllingArea AND ActualPostedCostCenter = _CurActualPostedCostCenterText.CostCenter AND _CurActualPostedCostCenterText.ValidityStartDate <= $session.system_date AND _CurActualPostedCostCenterText.ValidityEndDate >= $session.system_date  -- association [0..*]
LEFT OUTER JOIN I_CostCenter AS _CostCenterData ON ControllingArea = _CostCenterData.ControllingArea AND CostCenter = _CostCenterData.CostCenter  -- association [0..*]
LEFT OUTER JOIN I_CostCenterText AS _CurCostCenterDataText ON ControllingArea = _CurCostCenterDataText.ControllingArea AND CostCenter = _CurCostCenterDataText.CostCenter AND _CurCostCenterDataText.ValidityStartDate <= $session.system_date AND _CurCostCenterDataText.ValidityEndDate >= $session.system_date  -- association [0..*]
LEFT OUTER JOIN I_LogicalSystem AS _LogicalSystem ON LogicalSystem = _LogicalSystem.LogicalSystem  -- association [0..1]
LEFT OUTER JOIN I_ConditionUsage AS _ConditionUsage ON ConditionUsage = _ConditionUsage.ConditionUsage  -- association [0..1]
LEFT OUTER JOIN I_ConditionApplication AS _ConditionApplication ON ConditionApplication = _ConditionApplication.ConditionApplication  -- association [0..1]
LEFT OUTER JOIN I_CostingSheetProcedure AS _CostingSheetProcedure ON ConditionUsage = _CostingSheetProcedure.ConditionUsage AND ConditionApplication = _CostingSheetProcedure.ConditionApplication AND CostingSheet = _CostingSheetProcedure.CostingSheetProcedure  -- association [0..1]
LEFT OUTER JOIN I_CostElementOnControllingArea AS _IntOrderSettlementCostElement ON ControllingArea = _IntOrderSettlementCostElement.ControllingArea AND IntOrderSettlementCostElement = _IntOrderSettlementCostElement.CostElement  -- association [0..*]
LEFT OUTER JOIN I_GLAccountInCompanyCode AS _BasicSettlementGLAccount ON CompanyCode = _BasicSettlementGLAccount.CompanyCode AND BasicSettlementGLAccount = _BasicSettlementGLAccount.GLAccount  -- association [0..1]
LEFT OUTER JOIN I_OrderProcessingGroup AS _OrderProcessingGroup ON ControllingArea = _OrderProcessingGroup.ControllingArea AND OrderProcessingGroup = _OrderProcessingGroup.OrderProcessingGroup  -- association [0..1]
LEFT OUTER JOIN I_InvestmentProfile AS _InvestmentProfile ON InvestmentProfile = _InvestmentProfile.InvestmentProfile  -- association [0..1]
LEFT OUTER JOIN I_InvestmentReason AS _InvestmentReason ON InvestmentReason = _InvestmentReason.InvestmentReason  -- association [0..1]
LEFT OUTER JOIN I_EnvrnmtlInvestmentReason AS _EnvrnmtlInvestmentReason ON EnvironmentalInvestmentReason = _EnvrnmtlInvestmentReason.EnvrnmtlInvestmentReason  -- association [0..1]
LEFT OUTER JOIN I_JointVentureMaster AS _JointVentureMaster ON CompanyCode = _JointVentureMaster.CompanyCode AND JointVenture = _JointVentureMaster.JointVenture  -- association [0..1]
LEFT OUTER JOIN I_JointVentureRecovery AS _JointVentureRecovery ON JointVentureRecoveryCode = _JointVentureRecovery.JointVentureRecoveryCode AND CompanyCode = _JointVentureRecovery.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_JntVntrEquityTypeMaster AS _JntVntrEquityTypeMaster ON JointVentureEquityType = _JntVntrEquityTypeMaster.JointVentureEquityType AND CompanyCode = _JntVntrEquityTypeMaster.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_JntVntrCostCtrType AS _JntVntrCostCtrType ON JointVentureObjectType = _JntVntrCostCtrType.JntVntrCostCtrType AND CompanyCode = _JntVntrCostCtrType.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_JntIntrstBillgClass AS _JntIntrstBillgClass ON JointVentureClass = _JntIntrstBillgClass.JntIntrstBillgClass AND CompanyCode = _JntIntrstBillgClass.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_JntIntrstBillgSubclass AS _JntIntrstBillgSubclass ON CompanyCode = _JntIntrstBillgSubclass.CompanyCode AND JointVentureClass = _JntIntrstBillgSubclass.JntIntrstBillgClass AND JointVentureSubClass = _JntIntrstBillgSubclass.JntIntrstBillgSubClass  -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _ResponsibleUser ON InternalOrderResponsibleUser = _ResponsibleUser.ContactCardID  -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _CreatedByUser ON CreatedByUser = _CreatedByUser.ContactCardID  -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.ContactCardID  -- association [0..1]
LEFT OUTER JOIN I_ResultsAnalysisKey AS _ResultsAnalysisKey ON ResultAnalysisInternalID = _ResultsAnalysisKey.ResultAnalysisInternalID  -- association [0..1]
LEFT OUTER JOIN I_InvestmentObjectScale AS _InvestmentObjectScale ON InvestmentScale = _InvestmentObjectScale.InvestmentScale  -- association [0..1]
LEFT OUTER JOIN I_IntOrderActiveSystemStatus AS _IntOrderActiveSystemStatus ON ControllingObject = _IntOrderActiveSystemStatus.StatusObject  -- association [0..*]
LEFT OUTER JOIN I_IntOrderActiveUserStatus AS _IntOrderActiveUserStatus ON ControllingObject = _IntOrderActiveUserStatus.StatusObject  -- association [0..*]
;