R_SalesOrderItemTP

DDL: R_SALESORDERITEMTP Type: view_entity TRANSACTIONAL Package: RAP_SD_SLS_SO

Sales Order Item - TP

R_SalesOrderItemTP is a Transactional CDS View that provides data about "Sales Order Item - TP" in SAP S/4HANA. It reads from 1 data source (I_SalesOrderItem) and exposes 197 fields with key fields SalesOrder, SalesOrderItem. It has 14 associations to related views. Part of development package RAP_SD_SLS_SO.

Data Sources (1)

SourceAliasJoin Type
I_SalesOrderItem SalesOrderItem from

Associations (14)

CardinalityTargetAliasCondition
[0..1] R_VariantConfigurationTP _VariantConfiguration $projection.VarConfigurationBusObjectType = _VariantConfiguration.VarConfigurationBusObjectType and $projection.VarConfigurationBusObjectKey = _VariantConfiguration.VarConfigurationBusObjectKey
[0..1] I_SlsDocItemEnhancedFields _ItemEnhancedFields $projection.SalesOrder = _ItemEnhancedFields.SalesDocument and $projection.SalesOrderItem = _ItemEnhancedFields.SalesDocumentItem
[0..1] I_Batch _Batch $projection.Plant = _Batch.Plant and $projection.Product = _Batch.Material and $projection.Batch = _Batch.Batch
[0..1] I_ProductPricingGroup _ProductPricingGroup $projection.MaterialPricingGroup = _ProductPricingGroup.ProductPricingGroup
[0..1] I_ControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea
[0..1] I_SalesDocumentItemCategory _HigherLevelItemCategory $projection.HigherLevelItemCategory = _HigherLevelItemCategory.SalesDocumentItemCategory
[0..1] I_WBSElementByExternalID _WBSElementExternalID $projection.WBSElementExternalID = _WBSElementExternalID.WBSElementExternalID
[1] E_SalesDocumentItemBasic _Extension $projection.SalesOrder = _Extension.SalesDocument and $projection.SalesOrderItem = _Extension.SalesDocumentItem
[0..*] R_SalesOrderItemPartnerTP _ItemPartner
[0..*] R_SalesOrderItemTextTP _ItemText
[0..*] R_SalesOrderItemPrcgElmntTP _ItemPricingElement
[0..1] R_SalesOrderItemBillingPlanTP _ItemBillingPlan
[0..*] R_SalesOrderScheduleLineTP _ScheduleLine
[0..*] R_SalesOrderItmRelatedObjectTP _ItemRelatedObject

Annotations (13)

NameValueLevelField
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
VDM.viewType #TRANSACTIONAL view
ObjectModel.sapObjectNodeType.name SalesOrderItem view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
AbapCatalog.extensibility.extensible true view
AbapCatalog.extensibility.elementSuffix SDI view
AbapCatalog.extensibility.quota.maximumFields 204 view
AbapCatalog.extensibility.quota.maximumBytes 100000 view
Metadata.ignorePropagatedAnnotations true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Sales Order Item - TP view

Fields (197)

KeyFieldSource TableSource FieldDescription
KEY SalesOrder I_SalesOrderItem SalesOrder SD Document
KEY SalesOrderItem I_SalesOrderItem SalesOrderItem Sales Order Item
HigherLevelItem I_SalesOrderItem HigherLevelItem Higher-Lev.Item
SalesOrderItemCategory I_SalesOrderItem SalesOrderItemCategory Item Category
SalesOrderItemText I_SalesOrderItem SalesOrderItemText Item Descr.
Product I_SalesOrderItem Product Product Sold
OriginallyRequestedMaterial I_SalesOrderItem OriginallyRequestedMaterial
ProductGroup I_SalesOrderItem ProductGroup Product Sold Group
AdditionalMaterialGroup1 I_SalesOrderItem AdditionalMaterialGroup1 MaterialGroup 1
AdditionalMaterialGroup2 I_SalesOrderItem AdditionalMaterialGroup2 MaterialGroup 2
AdditionalMaterialGroup3 I_SalesOrderItem AdditionalMaterialGroup3 MaterialGroup 3
AdditionalMaterialGroup4 I_SalesOrderItem AdditionalMaterialGroup4 MaterialGroup 4
AdditionalMaterialGroup5 I_SalesOrderItem AdditionalMaterialGroup5 MaterialGroup 5
MaterialByCustomer I_SalesOrderItem MaterialByCustomer Customer Mat.
InternationalArticleNumber I_SalesOrderItem InternationalArticleNumber EAN/UPC
PurchaseOrderByCustomer I_SalesOrderItem PurchaseOrderByCustomer Purchase Order Number
UnderlyingPurchaseOrderItem I_SalesOrderItem UnderlyingPurchaseOrderItem PO Item
UndrlgPurOrdItmByShipToParty I_SalesOrderItem UndrlgPurOrdItmByShipToParty
PurchaseOrderByShipToParty I_SalesOrderItem PurchaseOrderByShipToParty
CorrespncExternalReference I_SalesOrderItem CorrespncExternalReference Your Reference
CorrespncExtRefByShipToParty I_SalesOrderItem CorrespncExtRefByShipToParty
RequestedDeliveryDate
ConfirmedDeliveryDate
ConfdDelivQtyInOrderQtyUnit I_SalesOrderItem ConfdDelivQtyInOrderQtyUnit Confd Quantity
OrderQuantityUnit I_SalesOrderItem OrderQuantityUnit Sales Unit
RequestedQuantity I_SalesOrderItem RequestedQuantity Requested Quantity
RequestedQuantityUnit I_SalesOrderItem RequestedQuantityUnit Requested Quantity Unit
ReferenceSDDocument I_SalesOrderItem ReferenceSDDocument Reference Doc.
ReferenceSDDocumentItem I_SalesOrderItem ReferenceSDDocumentItem Reference Item
ReferenceSDDocumentCategory I_SalesOrderItem ReferenceSDDocumentCategory Prec.Doc.Categ.
ItemGrossWeight I_SalesOrderItem ItemGrossWeight Gross Weight
ItemNetWeight I_SalesOrderItem ItemNetWeight Net Weight
ItemWeightUnit I_SalesOrderItem ItemWeightUnit Unit of Weight
ItemVolume I_SalesOrderItem ItemVolume Volume
ItemVolumeUnit I_SalesOrderItem ItemVolumeUnit Volume Unit
PricingDate I_SalesOrderItem PricingDate Pricing Date
ServicesRenderedDate I_SalesOrderItem ServicesRenderedDate Services Rendered Date
BillingDocumentDate I_SalesOrderItem BillingDocumentDate Billing Date
FixedValueDate I_SalesOrderItem FixedValueDate Fixed Val. Date
BillingPlan I_SalesOrderItem BillingPlan Bill. Plan No.
CustomerGroup I_SalesOrderItem CustomerGroup Customer Group
Batch I_SalesOrderItem Batch Lot No.
Plant I_SalesOrderItem Plant Valuation Area
TransitPlant I_SalesOrderItem TransitPlant
StorageLocation I_SalesOrderItem StorageLocation StorageLocation
ShippingPoint I_SalesOrderItem ShippingPoint Shipping Point
ShippingType I_SalesOrderItem ShippingType Shipping Type
Route I_SalesOrderItem Route Vehicle route
DeliveryPriority I_SalesOrderItem DeliveryPriority Delivery Prior.
PartialDeliveryIsAllowed I_SalesOrderItem PartialDeliveryIsAllowed Partial Deliv.
MaxNmbrOfPartialDelivery I_SalesOrderItem MaxNmbrOfPartialDelivery Max.Part.Deliv.
DeliveryDateQuantityIsFixed I_SalesOrderItem DeliveryDateQuantityIsFixed Fixed Date
DeliveryDateTypeRule I_SalesOrderItem DeliveryDateTypeRule Deliv Date Rule
ReceivingPoint I_SalesOrderItem ReceivingPoint Recv. Point
DeliveryGroup I_SalesOrderItem DeliveryGroup Delivery Group
ProductConfiguration I_SalesOrderItem ProductConfiguration
IncotermsClassification I_SalesOrderItem IncotermsClassification Incoterms
IncotermsLocation1 I_SalesOrderItem IncotermsLocation1 Inco. Location1
IncotermsLocation2 I_SalesOrderItem IncotermsLocation2 Inco. Location2
OrderCombinationIsAllowed I_SalesOrderItem OrderCombinationIsAllowed Order Combinat.
IncotermsVersion I_SalesOrderItem IncotermsVersion Inco. Version
CustomerPaymentTerms I_SalesOrderItem CustomerPaymentTerms Pyt Terms
CustomerPriceGroup I_SalesOrderItem CustomerPriceGroup CustPrice Group
MaterialPricingGroup
ItemIsBillingRelevant I_SalesOrderItem ItemIsBillingRelevant
ItemBillingBlockReason I_SalesOrderItem ItemBillingBlockReason Billing Block
SalesDocumentRjcnReason I_SalesOrderItem SalesDocumentRjcnReason RejectionReason
SalesDocItemSupplyBlockReason I_SalesOrderItem SalesDocItemSupplyBlockReason
TransactionCurrency I_SalesOrderItem TransactionCurrency Transaction Currency
NetAmount I_SalesOrderItem NetAmount Stated Amount
EntProjTypeCustProjExpdNetAmt
EnPrjTpCustPrjExpdNetAmtCrcy I_SalesOrderItem TransactionCurrency Transaction Currency
DownPaymentProcessingVariant I_SalesOrderItem DownPaymentProcessingVariant
TaxAmount I_SalesOrderItem TaxAmount Tax Amt in Rptg Crcy
ProductTaxClassification1 I_SalesOrderItem ProductTaxClassification1
ProductTaxClassification2 I_SalesOrderItem ProductTaxClassification2
ProductTaxClassification3 I_SalesOrderItem ProductTaxClassification3
ProductTaxClassification4 I_SalesOrderItem ProductTaxClassification4
ProductTaxClassification5 I_SalesOrderItem ProductTaxClassification5
ProductTaxClassification6 I_SalesOrderItem ProductTaxClassification6
ProductTaxClassification7 I_SalesOrderItem ProductTaxClassification7
ProductTaxClassification8 I_SalesOrderItem ProductTaxClassification8
ProductTaxClassification9 I_SalesOrderItem ProductTaxClassification9
Subtotal1Amount I_SalesOrderItem Subtotal1Amount Subtotal 1 Amount
Subtotal2Amount I_SalesOrderItem Subtotal2Amount Subtotal 2 Amount
Subtotal3Amount I_SalesOrderItem Subtotal3Amount Subtotal 3 Amount
Subtotal4Amount I_SalesOrderItem Subtotal4Amount Subtotal 4 Amount
Subtotal5Amount I_SalesOrderItem Subtotal5Amount Subtotal 5 Amount
Subtotal6Amount I_SalesOrderItem Subtotal6Amount Subtotal 6 Amount
MRPArea I_SalesOrderItem MRPArea MRP Area
SDProcessStatus I_SalesOrderItem SDProcessStatus
PurchaseConfirmationStatus I_SalesOrderItem PurchaseConfirmationStatus
SDDocumentRejectionStatus I_SalesOrderItem SDDocumentRejectionStatus
DeliveryStatus I_SalesOrderItem DeliveryStatus Delivery Status
BillingBlockStatus I_SalesOrderItem BillingBlockStatus
ItemGeneralIncompletionStatus I_SalesOrderItem ItemGeneralIncompletionStatus
DeliveryBlockStatus I_SalesOrderItem DeliveryBlockStatus
SlsOrderItemDownPaymentStatus I_SalesOrderItem SlsOrderItemDownPaymentStatus
OrderRelatedBillingStatus I_SalesOrderItem OrderRelatedBillingStatus
ChmlCmplncStatus I_SalesOrderItem ChmlCmplncStatus
DangerousGoodsStatus I_SalesOrderItem DangerousGoodsStatus
SafetyDataSheetStatus I_SalesOrderItem SafetyDataSheetStatus
TrdCmplncEmbargoSts I_SalesOrderItem TrdCmplncEmbargoSts Embargo Status
TrdCmplncSnctndListChkSts I_SalesOrderItem TrdCmplncSnctndListChkSts Screening Status
OvrlTrdCmplncLegalCtrlChkSts I_SalesOrderItem OvrlTrdCmplncLegalCtrlChkSts
SlsDocItmOvrlSupplyBlockStatus I_SalesOrderItem SlsDocItmOvrlSupplyBlockStatus
BusinessArea I_SalesOrderItem BusinessArea Business Area
ProfitCenter I_SalesOrderItem ProfitCenter Profit Center
ControllingArea I_SalesOrderItem ControllingArea Controlling Area
MatlAccountAssignmentGroup I_SalesOrderItem MatlAccountAssignmentGroup
WBSElementInternalID I_SalesOrderItem WBSElementInternalID WBS Internal ID
WBSElementExternalID
SDPricingProcedure
ItemCategoryGroup _ItemEnhancedFields ItemCategoryGroup Item Cat. Group
SDDocumentItemUsage _ItemEnhancedFields SDDocumentItemUsage
HigherLevelItemCategory
BusinessSolutionOrderItem I_SalesOrderItem BusinessSolutionOrderItem Solution Order Item
BusSolnOrdItemBundleItem I_SalesOrderItem BusSolnOrdItemBundleItem
SlsContrAutoAssgmtIDForSlsOrd I_SalesOrderItem SlsContrAutoAssgmtIDForSlsOrd
_SalesOrder _SalesOrder
_ItemPartner _ItemPartner
_ItemText _ItemText
_ItemPricingElement _ItemPricingElement
_ItemBillingPlan _ItemBillingPlan
_ScheduleLine _ScheduleLine
_VariantConfiguration _VariantConfiguration
_ItemRelatedObject _ItemRelatedObject
SalesOrderType _SalesOrder SalesOrderType Sales Order Type
OrganizationDivision _SalesOrder OrganizationDivision Org. Division
SalesOrganization _SalesOrder SalesOrganization Sales Organization
DistributionChannel _SalesOrder DistributionChannel RefDistCh-Cust/Mat.
_HigherLevelItem I_SalesOrderItem _HigherLevelItem
_Product I_SalesOrderItem _Product
_OriginallyRequestedMaterial I_SalesOrderItem _OriginallyRequestedMaterial
_ProductGroup I_SalesOrderItem _ProductGroup
_AdditionalMaterialGroup1 I_SalesOrderItem _AdditionalMaterialGroup1
_AdditionalMaterialGroup2 I_SalesOrderItem _AdditionalMaterialGroup2
_AdditionalMaterialGroup3 I_SalesOrderItem _AdditionalMaterialGroup3
_AdditionalMaterialGroup4 I_SalesOrderItem _AdditionalMaterialGroup4
_AdditionalMaterialGroup5 I_SalesOrderItem _AdditionalMaterialGroup5
_RequestedQuantityUnit I_SalesOrderItem _RequestedQuantityUnit
_TransactionCurrency I_SalesOrderItem _TransactionCurrency
_DownPaymentProcessingVariant I_SalesOrderItem _DownPaymentProcessingVariant
_ItemCategory I_SalesOrderItem _ItemCategory
_ShippingPoint I_SalesOrderItem _ShippingPoint
_CustomerGroup I_SalesOrderItem _CustomerGroup
_DeliveryPriority I_SalesOrderItem _DeliveryPriority
_ShippingType I_SalesOrderItem _ShippingType
_Route I_SalesOrderItem _Route
_DeliveryDateTypeRule I_SalesOrderItem _DeliveryDateTypeRule
_ItemIsBillingRelevant I_SalesOrderItem _ItemIsBillingRelevant
_ItemBillingBlockReason I_SalesOrderItem _ItemBillingBlockReason
_SalesDocumentRjcnReason I_SalesOrderItem _SalesDocumentRjcnReason
_SlsDocItemSupplyBlockReason I_SalesOrderItem _SlsDocItemSupplyBlockReason
_IncotermsClassification I_SalesOrderItem _IncotermsClassification
_IncotermsVersion I_SalesOrderItem _IncotermsVersion
_BusinessArea I_SalesOrderItem _BusinessArea
_WBSElementBasicData_2 I_SalesOrderItem _WBSElementBasicData_2
_MRPArea I_SalesOrderItem _MRPArea
_ProfitCenter I_SalesOrderItem _ProfitCenter
_MatlAccountAssignmentGroup I_SalesOrderItem _MatlAccountAssignmentGroup
_CustomerPaymentTerms I_SalesOrderItem _CustomerPaymentTerms
_CustomerPriceGroup I_SalesOrderItem _CustomerPriceGroup
_StorageLocation I_SalesOrderItem _StorageLocation
_Plant I_SalesOrderItem _Plant
_TransitPlant I_SalesOrderItem _TransitPlant
_PartialDeliveryItem I_SalesOrderItem _PartialDeliveryItem
_OrderQuantityUnit I_SalesOrderItem _OrderQuantityUnit
_ItemWeightUnit I_SalesOrderItem _ItemWeightUnit
_ItemVolumeUnit I_SalesOrderItem _ItemVolumeUnit
_SDProcessStatus I_SalesOrderItem _SDProcessStatus
_PurchaseConfirmationStatus I_SalesOrderItem _PurchaseConfirmationStatus
_SDDocumentRejectionStatus I_SalesOrderItem _SDDocumentRejectionStatus
_DeliveryStatus I_SalesOrderItem _DeliveryStatus
_BillingBlockStatus I_SalesOrderItem _BillingBlockStatus
_ItemGeneralIncompletionStatus I_SalesOrderItem _ItemGeneralIncompletionStatus
_DeliveryBlockStatus I_SalesOrderItem _DeliveryBlockStatus
_ChmlCmplncStatus I_SalesOrderItem _ChmlCmplncStatus
_DangerousGoodsStatus I_SalesOrderItem _DangerousGoodsStatus
_SafetyDataSheetStatus I_SalesOrderItem _SafetyDataSheetStatus
_OvrlTrdCmplncLegalCtrlChkSts I_SalesOrderItem _OvrlTrdCmplncLegalCtrlChkSts
_TrdCmplncSnctndListChkSts I_SalesOrderItem _TrdCmplncSnctndListChkSts
_TrdCmplncEmbargoSts I_SalesOrderItem _TrdCmplncEmbargoSts
_ItemDownPaymentStatus I_SalesOrderItem _ItemDownPaymentStatus
_OrderRelatedBillingStatus I_SalesOrderItem _OrderRelatedBillingStatus
_SlsDocItmOvrlSupplyBlockSts I_SalesOrderItem _SlsDocItmOvrlSupplyBlockSts
_SDPricingProcedure
_ReferenceSDDocument I_SalesOrderItem _ReferenceSDDocument
_ReferenceSDDocumentItem I_SalesOrderItem _ReferenceSDDocumentItem
_ReferenceSDDocumentCategory I_SalesOrderItem _ReferenceSDDocumentCategory
_ItemCategoryGroup _ItemEnhancedFields _ItemCategoryGroup
_SDDocumentItemUsage _ItemEnhancedFields _SDDocumentItemUsage
_ControllingArea _ControllingArea
_Batch _Batch
_ProductPricingGroup _ProductPricingGroup
_HigherLevelItemCategory _HigherLevelItemCategory
_WBSElementExternalID _WBSElementExternalID

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_SalesOrderItemTP.
-- 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_SalesOrderItemTP AS
SELECT
  SalesOrderItem.SalesOrder AS SalesOrder,
  SalesOrderItem.SalesOrderItem AS SalesOrderItem,
  SalesOrderItem.HigherLevelItem AS HigherLevelItem,
  SalesOrderItem.SalesOrderItemCategory AS SalesOrderItemCategory,
  SalesOrderItem.SalesOrderItemText AS SalesOrderItemText,
  SalesOrderItem.Product AS Product,
  SalesOrderItem.OriginallyRequestedMaterial AS OriginallyRequestedMaterial,
  SalesOrderItem.ProductGroup AS ProductGroup,
  SalesOrderItem.AdditionalMaterialGroup1 AS AdditionalMaterialGroup1,
  SalesOrderItem.AdditionalMaterialGroup2 AS AdditionalMaterialGroup2,
  SalesOrderItem.AdditionalMaterialGroup3 AS AdditionalMaterialGroup3,
  SalesOrderItem.AdditionalMaterialGroup4 AS AdditionalMaterialGroup4,
  SalesOrderItem.AdditionalMaterialGroup5 AS AdditionalMaterialGroup5,
  SalesOrderItem.MaterialByCustomer AS MaterialByCustomer,
  SalesOrderItem.InternationalArticleNumber AS InternationalArticleNumber,
  SalesOrderItem.PurchaseOrderByCustomer AS PurchaseOrderByCustomer,
  SalesOrderItem.UnderlyingPurchaseOrderItem AS UnderlyingPurchaseOrderItem,
  SalesOrderItem.UndrlgPurOrdItmByShipToParty AS UndrlgPurOrdItmByShipToParty,
  SalesOrderItem.PurchaseOrderByShipToParty AS PurchaseOrderByShipToParty,
  SalesOrderItem.CorrespncExternalReference AS CorrespncExternalReference,
  SalesOrderItem.CorrespncExtRefByShipToParty AS CorrespncExtRefByShipToParty,
  _ItemEnhancedFields._RequestedDeliveryDate.RequestedDeliveryDate AS RequestedDeliveryDate,
  _ItemEnhancedFields._ConfirmedDeliveryDate.ConfirmedDeliveryDate AS ConfirmedDeliveryDate,
  SalesOrderItem.ConfdDelivQtyInOrderQtyUnit AS ConfdDelivQtyInOrderQtyUnit,
  SalesOrderItem.OrderQuantityUnit AS OrderQuantityUnit,
  SalesOrderItem.RequestedQuantity AS RequestedQuantity,
  SalesOrderItem.RequestedQuantityUnit AS RequestedQuantityUnit,
  SalesOrderItem.ReferenceSDDocument AS ReferenceSDDocument,
  SalesOrderItem.ReferenceSDDocumentItem AS ReferenceSDDocumentItem,
  SalesOrderItem.ReferenceSDDocumentCategory AS ReferenceSDDocumentCategory,
  SalesOrderItem.ItemGrossWeight AS ItemGrossWeight,
  SalesOrderItem.ItemNetWeight AS ItemNetWeight,
  SalesOrderItem.ItemWeightUnit AS ItemWeightUnit,
  SalesOrderItem.ItemVolume AS ItemVolume,
  SalesOrderItem.ItemVolumeUnit AS ItemVolumeUnit,
  SalesOrderItem.PricingDate AS PricingDate,
  SalesOrderItem.ServicesRenderedDate AS ServicesRenderedDate,
  SalesOrderItem.BillingDocumentDate AS BillingDocumentDate,
  SalesOrderItem.FixedValueDate AS FixedValueDate,
  SalesOrderItem.BillingPlan AS BillingPlan,
  SalesOrderItem.CustomerGroup AS CustomerGroup,
  SalesOrderItem.Batch AS Batch,
  SalesOrderItem.Plant AS Plant,
  SalesOrderItem.TransitPlant AS TransitPlant,
  SalesOrderItem.StorageLocation AS StorageLocation,
  SalesOrderItem.ShippingPoint AS ShippingPoint,
  SalesOrderItem.ShippingType AS ShippingType,
  SalesOrderItem.Route AS Route,
  SalesOrderItem.DeliveryPriority AS DeliveryPriority,
  SalesOrderItem.PartialDeliveryIsAllowed AS PartialDeliveryIsAllowed,
  SalesOrderItem.MaxNmbrOfPartialDelivery AS MaxNmbrOfPartialDelivery,
  SalesOrderItem.DeliveryDateQuantityIsFixed AS DeliveryDateQuantityIsFixed,
  SalesOrderItem.DeliveryDateTypeRule AS DeliveryDateTypeRule,
  SalesOrderItem.ReceivingPoint AS ReceivingPoint,
  SalesOrderItem.DeliveryGroup AS DeliveryGroup,
  SalesOrderItem.ProductConfiguration AS ProductConfiguration,
  SalesOrderItem.IncotermsClassification AS IncotermsClassification,
  SalesOrderItem.IncotermsLocation1 AS IncotermsLocation1,
  SalesOrderItem.IncotermsLocation2 AS IncotermsLocation2,
  SalesOrderItem.OrderCombinationIsAllowed AS OrderCombinationIsAllowed,
  SalesOrderItem.IncotermsVersion AS IncotermsVersion,
  SalesOrderItem.CustomerPaymentTerms AS CustomerPaymentTerms,
  SalesOrderItem.CustomerPriceGroup AS CustomerPriceGroup,
  cast(MaterialPricingGroup as productpricinggroup preserving type) AS MaterialPricingGroup,
  SalesOrderItem.ItemIsBillingRelevant AS ItemIsBillingRelevant,
  SalesOrderItem.ItemBillingBlockReason AS ItemBillingBlockReason,
  SalesOrderItem.SalesDocumentRjcnReason AS SalesDocumentRjcnReason,
  SalesOrderItem.SalesDocItemSupplyBlockReason AS SalesDocItemSupplyBlockReason,
  SalesOrderItem.TransactionCurrency AS TransactionCurrency,
  SalesOrderItem.NetAmount AS NetAmount,
  cast(0 as sd_amount_to_be_billed ) AS EntProjTypeCustProjExpdNetAmt,
  SalesOrderItem.TransactionCurrency AS EnPrjTpCustPrjExpdNetAmtCrcy,
  SalesOrderItem.DownPaymentProcessingVariant AS DownPaymentProcessingVariant,
  SalesOrderItem.TaxAmount AS TaxAmount,
  SalesOrderItem.ProductTaxClassification1 AS ProductTaxClassification1,
  SalesOrderItem.ProductTaxClassification2 AS ProductTaxClassification2,
  SalesOrderItem.ProductTaxClassification3 AS ProductTaxClassification3,
  SalesOrderItem.ProductTaxClassification4 AS ProductTaxClassification4,
  SalesOrderItem.ProductTaxClassification5 AS ProductTaxClassification5,
  SalesOrderItem.ProductTaxClassification6 AS ProductTaxClassification6,
  SalesOrderItem.ProductTaxClassification7 AS ProductTaxClassification7,
  SalesOrderItem.ProductTaxClassification8 AS ProductTaxClassification8,
  SalesOrderItem.ProductTaxClassification9 AS ProductTaxClassification9,
  SalesOrderItem.Subtotal1Amount AS Subtotal1Amount,
  SalesOrderItem.Subtotal2Amount AS Subtotal2Amount,
  SalesOrderItem.Subtotal3Amount AS Subtotal3Amount,
  SalesOrderItem.Subtotal4Amount AS Subtotal4Amount,
  SalesOrderItem.Subtotal5Amount AS Subtotal5Amount,
  SalesOrderItem.Subtotal6Amount AS Subtotal6Amount,
  SalesOrderItem.MRPArea AS MRPArea,
  SalesOrderItem.SDProcessStatus AS SDProcessStatus,
  SalesOrderItem.PurchaseConfirmationStatus AS PurchaseConfirmationStatus,
  SalesOrderItem.SDDocumentRejectionStatus AS SDDocumentRejectionStatus,
  SalesOrderItem.DeliveryStatus AS DeliveryStatus,
  SalesOrderItem.BillingBlockStatus AS BillingBlockStatus,
  SalesOrderItem.ItemGeneralIncompletionStatus AS ItemGeneralIncompletionStatus,
  SalesOrderItem.DeliveryBlockStatus AS DeliveryBlockStatus,
  SalesOrderItem.SlsOrderItemDownPaymentStatus AS SlsOrderItemDownPaymentStatus,
  SalesOrderItem.OrderRelatedBillingStatus AS OrderRelatedBillingStatus,
  SalesOrderItem.ChmlCmplncStatus AS ChmlCmplncStatus,
  SalesOrderItem.DangerousGoodsStatus AS DangerousGoodsStatus,
  SalesOrderItem.SafetyDataSheetStatus AS SafetyDataSheetStatus,
  SalesOrderItem.TrdCmplncEmbargoSts AS TrdCmplncEmbargoSts,
  SalesOrderItem.TrdCmplncSnctndListChkSts AS TrdCmplncSnctndListChkSts,
  SalesOrderItem.OvrlTrdCmplncLegalCtrlChkSts AS OvrlTrdCmplncLegalCtrlChkSts,
  SalesOrderItem.SlsDocItmOvrlSupplyBlockStatus AS SlsDocItmOvrlSupplyBlockStatus,
  SalesOrderItem.BusinessArea AS BusinessArea,
  SalesOrderItem.ProfitCenter AS ProfitCenter,
  SalesOrderItem.ControllingArea AS ControllingArea,
  SalesOrderItem.MatlAccountAssignmentGroup AS MatlAccountAssignmentGroup,
  SalesOrderItem.WBSElementInternalID AS WBSElementInternalID,
  SalesOrderItem._WBSElementBasicData_2.WBSElementExternalID AS WBSElementExternalID,
  SalesOrderItem._SalesOrder.SDPricingProcedure AS SDPricingProcedure,
  _ItemEnhancedFields.ItemCategoryGroup AS ItemCategoryGroup,
  _ItemEnhancedFields.SDDocumentItemUsage AS SDDocumentItemUsage,
  SalesOrderItem._HigherLevelItem.SalesOrderItemCategory AS HigherLevelItemCategory,
  SalesOrderItem.BusinessSolutionOrderItem AS BusinessSolutionOrderItem,
  SalesOrderItem.BusSolnOrdItemBundleItem AS BusSolnOrdItemBundleItem,
  SalesOrderItem.SlsContrAutoAssgmtIDForSlsOrd AS SlsContrAutoAssgmtIDForSlsOrd,
  _SalesOrder.SalesOrderType AS SalesOrderType,
  _SalesOrder.OrganizationDivision AS OrganizationDivision,
  _SalesOrder.SalesOrganization AS SalesOrganization,
  _SalesOrder.DistributionChannel AS DistributionChannel,
  SalesOrderItem._HigherLevelItem AS _HigherLevelItem,
  SalesOrderItem._Product AS _Product,
  SalesOrderItem._OriginallyRequestedMaterial AS _OriginallyRequestedMaterial,
  SalesOrderItem._ProductGroup AS _ProductGroup,
  SalesOrderItem._AdditionalMaterialGroup1 AS _AdditionalMaterialGroup1,
  SalesOrderItem._AdditionalMaterialGroup2 AS _AdditionalMaterialGroup2,
  SalesOrderItem._AdditionalMaterialGroup3 AS _AdditionalMaterialGroup3,
  SalesOrderItem._AdditionalMaterialGroup4 AS _AdditionalMaterialGroup4,
  SalesOrderItem._AdditionalMaterialGroup5 AS _AdditionalMaterialGroup5,
  SalesOrderItem._RequestedQuantityUnit AS _RequestedQuantityUnit,
  SalesOrderItem._TransactionCurrency AS _TransactionCurrency,
  SalesOrderItem._DownPaymentProcessingVariant AS _DownPaymentProcessingVariant,
  SalesOrderItem._ItemCategory AS _ItemCategory,
  SalesOrderItem._ShippingPoint AS _ShippingPoint,
  SalesOrderItem._CustomerGroup AS _CustomerGroup,
  SalesOrderItem._DeliveryPriority AS _DeliveryPriority,
  SalesOrderItem._ShippingType AS _ShippingType,
  SalesOrderItem._Route AS _Route,
  SalesOrderItem._DeliveryDateTypeRule AS _DeliveryDateTypeRule,
  SalesOrderItem._ItemIsBillingRelevant AS _ItemIsBillingRelevant,
  SalesOrderItem._ItemBillingBlockReason AS _ItemBillingBlockReason,
  SalesOrderItem._SalesDocumentRjcnReason AS _SalesDocumentRjcnReason,
  SalesOrderItem._SlsDocItemSupplyBlockReason AS _SlsDocItemSupplyBlockReason,
  SalesOrderItem._IncotermsClassification AS _IncotermsClassification,
  SalesOrderItem._IncotermsVersion AS _IncotermsVersion,
  SalesOrderItem._BusinessArea AS _BusinessArea,
  SalesOrderItem._WBSElementBasicData_2 AS _WBSElementBasicData_2,
  SalesOrderItem._MRPArea AS _MRPArea,
  SalesOrderItem._ProfitCenter AS _ProfitCenter,
  SalesOrderItem._MatlAccountAssignmentGroup AS _MatlAccountAssignmentGroup,
  SalesOrderItem._CustomerPaymentTerms AS _CustomerPaymentTerms,
  SalesOrderItem._CustomerPriceGroup AS _CustomerPriceGroup,
  SalesOrderItem._StorageLocation AS _StorageLocation,
  SalesOrderItem._Plant AS _Plant,
  SalesOrderItem._TransitPlant AS _TransitPlant,
  SalesOrderItem._PartialDeliveryItem AS _PartialDeliveryItem,
  SalesOrderItem._OrderQuantityUnit AS _OrderQuantityUnit,
  SalesOrderItem._ItemWeightUnit AS _ItemWeightUnit,
  SalesOrderItem._ItemVolumeUnit AS _ItemVolumeUnit,
  SalesOrderItem._SDProcessStatus AS _SDProcessStatus,
  SalesOrderItem._PurchaseConfirmationStatus AS _PurchaseConfirmationStatus,
  SalesOrderItem._SDDocumentRejectionStatus AS _SDDocumentRejectionStatus,
  SalesOrderItem._DeliveryStatus AS _DeliveryStatus,
  SalesOrderItem._BillingBlockStatus AS _BillingBlockStatus,
  SalesOrderItem._ItemGeneralIncompletionStatus AS _ItemGeneralIncompletionStatus,
  SalesOrderItem._DeliveryBlockStatus AS _DeliveryBlockStatus,
  SalesOrderItem._ChmlCmplncStatus AS _ChmlCmplncStatus,
  SalesOrderItem._DangerousGoodsStatus AS _DangerousGoodsStatus,
  SalesOrderItem._SafetyDataSheetStatus AS _SafetyDataSheetStatus,
  SalesOrderItem._OvrlTrdCmplncLegalCtrlChkSts AS _OvrlTrdCmplncLegalCtrlChkSts,
  SalesOrderItem._TrdCmplncSnctndListChkSts AS _TrdCmplncSnctndListChkSts,
  SalesOrderItem._TrdCmplncEmbargoSts AS _TrdCmplncEmbargoSts,
  SalesOrderItem._ItemDownPaymentStatus AS _ItemDownPaymentStatus,
  SalesOrderItem._OrderRelatedBillingStatus AS _OrderRelatedBillingStatus,
  SalesOrderItem._SlsDocItmOvrlSupplyBlockSts AS _SlsDocItmOvrlSupplyBlockSts,
  SalesOrderItem._SalesOrder._SDPricingProcedure AS _SDPricingProcedure,
  SalesOrderItem._ReferenceSDDocument AS _ReferenceSDDocument,
  SalesOrderItem._ReferenceSDDocumentItem AS _ReferenceSDDocumentItem,
  SalesOrderItem._ReferenceSDDocumentCategory AS _ReferenceSDDocumentCategory,
  _ItemEnhancedFields._ItemCategoryGroup AS _ItemCategoryGroup,
  _ItemEnhancedFields._SDDocumentItemUsage AS _SDDocumentItemUsage
FROM I_SalesOrderItem AS SalesOrderItem
LEFT OUTER JOIN R_VariantConfigurationTP AS _VariantConfiguration ON VarConfigurationBusObjectType = _VariantConfiguration.VarConfigurationBusObjectType AND VarConfigurationBusObjectKey = _VariantConfiguration.VarConfigurationBusObjectKey  -- association [0..1]
LEFT OUTER JOIN I_SlsDocItemEnhancedFields AS _ItemEnhancedFields ON SalesOrder = _ItemEnhancedFields.SalesDocument AND SalesOrderItem = _ItemEnhancedFields.SalesDocumentItem  -- association [0..1]
LEFT OUTER JOIN I_Batch AS _Batch ON Plant = _Batch.Plant AND Product = _Batch.Material AND Batch = _Batch.Batch  -- association [0..1]
LEFT OUTER JOIN I_ProductPricingGroup AS _ProductPricingGroup ON MaterialPricingGroup = _ProductPricingGroup.ProductPricingGroup  -- association [0..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea  -- association [0..1]
LEFT OUTER JOIN I_SalesDocumentItemCategory AS _HigherLevelItemCategory ON HigherLevelItemCategory = _HigherLevelItemCategory.SalesDocumentItemCategory  -- association [0..1]
LEFT OUTER JOIN I_WBSElementByExternalID AS _WBSElementExternalID ON WBSElementExternalID = _WBSElementExternalID.WBSElementExternalID  -- association [0..1]
LEFT OUTER JOIN E_SalesDocumentItemBasic AS _Extension ON SalesOrder = _Extension.SalesDocument AND SalesOrderItem = _Extension.SalesDocumentItem  -- association [1]
LEFT OUTER JOIN R_SalesOrderItemPartnerTP AS _ItemPartner ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SalesOrderItemTextTP AS _ItemText ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SalesOrderItemPrcgElmntTP AS _ItemPricingElement ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SalesOrderItemBillingPlanTP AS _ItemBillingPlan ON /* condition not available in parsed metadata */  -- association [0..1]
LEFT OUTER JOIN R_SalesOrderScheduleLineTP AS _ScheduleLine ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SalesOrderItmRelatedObjectTP AS _ItemRelatedObject ON /* condition not available in parsed metadata */  -- association [0..*]
;