C_MassChangeSalesOrderItem

DDL: C_MASSCHANGESALESORDERITEM Type: view CONSUMPTION

Mass Change of Sales Order Item

C_MassChangeSalesOrderItem is a Consumption CDS View that provides data about "Mass Change of Sales Order Item" in SAP S/4HANA. It reads from 1 data source (I_SalesDocumentItem) and exposes 222 fields with key fields SalesOrder, SalesOrderItem. It has 10 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_SalesDocumentItem SalesOrderItem from

Associations (10)

CardinalityTargetAliasCondition
[1..1] I_SalesDocument _SalesOrder $projection.SalesOrder = _SalesOrder.SalesDocument
[1..*] I_SalesDocItemCompletePartner _SalesItemCompletePartner $projection.SalesOrder = _SalesItemCompletePartner.SalesDocument and $projection.SalesOrderItem = _SalesItemCompletePartner.SalesDocumentItem
[0..*] I_SlsDocItmNonStdPartner _NonStdPartner $projection.SalesOrder = _NonStdPartner.SalesDocument and $projection.SalesOrderItem = _NonStdPartner.SalesDocumentItem
[0..1] I_Indicator _Indicator $projection.ItemIsDeliveryRelevant = _Indicator.IndicatorValue
[0..1] E_SalesDocumentItemBasic _ItemExtension $projection.SalesOrder = _ItemExtension.SalesDocument and $projection.SalesOrderItem = _ItemExtension.SalesDocumentItem
[0..1] E_SalesDocumentBasic _Extension $projection.SalesOrder = _Extension.SalesDocument
[0..1] C_SalesDocumentUserVH _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[0..1] C_SalesDocPaymentMethodVH _SalesDocPaymentMethodVH $projection.PaymentMethod = _SalesDocPaymentMethodVH.PaymentMethod and $projection.BillingCompanyCode = _SalesDocPaymentMethodVH.BillingCompanyCode
[0..1] I_ProfitCenterText _ProfitCenterText $projection.ControllingArea = _ProfitCenterText.ControllingArea and $projection.ProfitCenter = _ProfitCenterText.ProfitCenter and _ProfitCenterText.ValidityEndDate >= $session.system_date and _ProfitCenterText.ValidityStartDate <= $session.system_date and _ProfitCenterText.Language = $session.system_language
[0..1] I_WBSElementByExternalID _WBSElementExternalID $projection.WBSElementExternalID = _WBSElementExternalID.WBSElementExternalID

Annotations (19)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Mass Change of Sales Order Item view
VDM.viewType #CONSUMPTION view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName CSDMCSLSORDITM view
AbapCatalog.compiler.compareFilter true view
ObjectModel.compositionRoot true view
ObjectModel.representativeKey SalesOrderItem view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
OData.entitySet.name SlsOrdItem view
Metadata.ignorePropagatedAnnotations true view
Analytics.internalName #LOCAL view
Metadata.allowExtensions true view
Search.searchable true view

Fields (222)

KeyFieldSource TableSource FieldDescription
KEY SalesOrder SD Document
SoldToParty SoldToParty Sold-to Party
ShipToParty ShipToParty Ship-To Party (obsolete)
PurchaseOrderByCustomer PurchaseOrderByCustomer Purchase Order Number
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
ProductName
Product Product Product Sold
CreationDate CreationDate Time Stamp
CreatedByUser CreatedByUser User Name
SalesOrderType Sales Doc. Type
CustomerGroup CustomerGroup Customer Group
AdditionalCustomerGroup1 AdditionalCustomerGroup1 Customer Grp 1
AdditionalCustomerGroup2 AdditionalCustomerGroup2 Customer Grp 2
AdditionalCustomerGroup3 AdditionalCustomerGroup3 Customer Grp 3
AdditionalCustomerGroup4 AdditionalCustomerGroup4 Customer Grp 4
AdditionalCustomerGroup5 AdditionalCustomerGroup5 Customer Grp 5
WBSElementInternalID WBSElementInternalID WBS Internal ID
SalesOrderItemCategory SalesDocumentItemCategory Item Category
SDDocumentReason SDDocumentReason Order Reason
Batch Batch Lot No.
SDDocumentCategory SDDocumentCategory Document Cat.
SalesOrderItemCategoryName
ProfitCenter ProfitCenter Profit Center
BusinessSolutionOrder BusinessSolutionOrder Solution Order
HigherLevelItem HigherLevelItem Higher-Lev.Item
SlsDocMassChgItmIsHigherLvl Item is Higher Level Item
BusinessArea BusinessArea Business Area
ControllingArea ControllingArea Controlling Area
OrganizationDivision Org. Division
SalesGroup SalesGroup Sales Group
SalesOffice SalesOffice Sales Office
SalesDistrict SalesDistrict Sales District
OverallSDDocumentRejectionSts
OverallDeliveryStatus
OverallOrdReltdBillgStatus
TotalCreditCheckStatus
OverallDeliveryBlockStatus
OverallBillingBlockStatus
HdrGeneralIncompletionStatus
HeaderBillgIncompletionStatus
OverallPricingIncompletionSts
HeaderDelivIncompletionStatus
OverallDelivConfStatus
OverallTrdCmplncEmbargoSts
OvrlTrdCmplncSnctndListChkSts
OvrlTrdCmplncLegalCtrlChkSts
OverallChmlCmplncStatus
OverallDangerousGoodsStatus
OverallSafetyDataSheetStatus
ContractDownPaymentStatus
IncotermsClassification IncotermsClassification Incoterms
DeliveryStatus Delivery Status
SDProcessStatus Overall Status
TotalDeliveryStatus Ovrl Deliv. Sts
OrderRelatedBillingStatus OrderRelatedBillingStatus
SDDocumentRejectionStatus SDDocumentRejectionStatus Rejection Sts
DeliveryBlockStatus DeliveryBlockStatus
BillingBlockStatus BillingBlockStatus Billg Block Sts
ItemGeneralIncompletionStatus
ItemBillingIncompletionStatus Billing Doc.
PricingIncompletionStatus Pricing – Item
ItemDeliveryIncompletionStatus Delivery – Item
DeliveryConfirmationStatus Project stock
SDDocReferenceStatus SDDocReferenceStatus Reference Sts
TotalSDDocReferenceStatus TotalSDDocReferenceStatus Ovrl Ref. Sts
TrdCmplncEmbargoSts TrdCmplncEmbargoSts Embargo Status
TrdCmplncSnctndListChkSts TrdCmplncSnctndListChkSts Screening Status
ChmlCmplncStatus ChmlCmplncStatus
DangerousGoodsStatus DangerousGoodsStatus
SafetyDataSheetStatus SafetyDataSheetStatus
ContractItemDownPaymentStatus ContractItemDownPaymentStatus Down Payment Status
TradeCmplncLegalCtrlChkSts OvrlTrdCmplncLegalCtrlChkSts
OvrlTrdCmplncLglCtrlChkStsDesc
PayerParty PayerParty Payer
BillToParty BillToParty Inv. Recipient
ResponsibleEmployee ResponsibleEmployee Employee Resp.
SalesEmployee SalesEmployee Sales Employee
ShipToPartyName
SoldToPartyName
BillToPartyName
PayerPartyName
ResponsibleEmployeeName
SalesEmployeeName
AdditionalPartnerName
PartnerFunction
Customer
Supplier
Personnel
ContactPerson
ScheduleLineCategory
DelivBlockReasonForSchedLine
SalesOrderDate SalesDocumentDate Document Date
RequestedDeliveryDateFoFltr
RequestedDeliveryDateForFilter
BillingDocumentDate BillingDocumentDate Billing Date
PricingDate PricingDate Pricing Date
DeliveryPriorityDesc
DeliveryPriority DeliveryPriority Delivery Prior.
ShippingType Shipping Type
ItemIsDeliveryRelevant Item rel.f.dlv.
Plant Plant Valuation Area
Route Route Vehicle route
ShippingPoint ShippingPoint Shipping Point
StorageLocation StorageLocation StorageLocation
UnloadingPointName
PaymentTerms CustomerPaymentTerms Pyt Terms
CustomerPaymentTerms
IncotermsLocation1 IncotermsLocation1 Inco. Location1
IncotermsLocation2 IncotermsLocation2 Inco. Location2
IncotermsVersion IncotermsVersion Inco. Version
HeaderIncotermsClassification
DeliveryBlockReason
Division Division Internal Division ID
TransactionCurrency TransactionCurrency Transaction Currency
OrderID OrderID Order ID
HeaderBillingBlockReason
SalesOrderApprovalReason
Material Material Vehicle Model
RequestedQuantity Requested Quantity
RequestedQuantityUnit RequestedQuantityUnit Requested Quantity Unit
NetAmount NetAmount Stated Amount
SalesDocumentRjcnReasonName
SalesDocumentRjcnReason SalesDocumentRjcnReason RejectionReason
SlsDocMassChangeRequestUUID
SlsDocMassChgEntityLevel
SalesOrderItemText SalesDocumentItemText Item Descr.
ItemBillingBlockReason Billing Block
ReturnReason ReturnReason Return Reason
IncotermsClassificationName
IncotermsVersionName
SalesDocumentItemCategoryName
_ItemCategory _ItemCategory
_SalesOrganization _SalesOrganization
_DistributionChannel _DistributionChannel
_OrganizationDivision _OrganizationDivision
_Product _Product
_MaterialPlant _MaterialPlant
_Batch _Batch
_RequestedQuantityUnit _RequestedQuantityUnit
_ContractItemDownPaymentStatus _ContractItemDownPaymentStatus
_TransactionCurrency _TransactionCurrency
_ShippingPoint _ShippingPoint
_ShippingType _ShippingType
_DeliveryPriority _DeliveryPriority
_Plant _Plant
_StorageLocation _StorageLocation
_Route _Route
_SalesDocumentRjcnReason _SalesDocumentRjcnReason
_CustomerPaymentTerms _CustomerPaymentTerms
_IncotermsVersion _IncotermsVersion
_IncotermsClassification _IncotermsClassification
_TotalDeliveryStatus _TotalDeliveryStatus
_DeliveryStatus _DeliveryStatus
_SDProcessStatus _SDProcessStatus
_DeliveryBlockStatus _DeliveryBlockStatus
_DeliveryConfirmationStatus _DeliveryConfirmationStatus
_OrderRelatedBillingStatus _OrderRelatedBillingStatus
_BillingBlockStatus _BillingBlockStatus
_SDDocumentRejectionStatus _SDDocumentRejectionStatus
_ItemGeneralIncompletionStatus _ItemGeneralIncompletionStatus
_ItemBillingIncompletionStatus _ItemBillingIncompletionStatus
_PricingIncompletionStatus _PricingIncompletionStatus
_ItemDelivIncompletionSts _ItemDelivIncompletionSts
_TotalSDDocReferenceStatus _TotalSDDocReferenceStatus
_SDDocReferenceStatus _SDDocReferenceStatus
_ChmlCmplncStatus _ChmlCmplncStatus
_DangerousGoodsStatus _DangerousGoodsStatus
_SafetyDataSheetStatus _SafetyDataSheetStatus
_TrdCmplncEmbargoSts _TrdCmplncEmbargoSts
_TrdCmplncSnctndListChkSts _TrdCmplncSnctndListChkSts
_SoldToParty _SoldToParty
_ShipToParty _ShipToParty
_BillToParty _BillToParty
_PayerParty _PayerParty
_ResponsibleEmployee _ResponsibleEmployee
_SalesEmployee _SalesEmployee
_SolutionOrder _SolutionOrder
_ProductText _ProductText
_SalesOrder _SalesOrder
_SalesItemCompletePartner _SalesItemCompletePartner
_NonStdPartner _NonStdPartner
_Material _Material
_SalesDistrict _SalesDistrict
_Indicator _Indicator
_ItemBillingBlockReason _ItemBillingBlockReason
_Division _Division
_WBSElementBasicData_2 _WBSElementBasicData_2
_ProfitCenter _ProfitCenter
_SalesGroup _SalesGroup
_SalesOffice _SalesOffice
_ProfitCenterText _ProfitCenterText
_CreatedByUser _CreatedByUser
_SalesDocumentType _SalesDocumentType
_CustomerGroup _CustomerGroup
_WBSElementExternalID _WBSElementExternalID
_BusinessArea _BusinessArea
_SalesDocPaymentMethodVH _SalesDocPaymentMethodVH
KEY SalesOrderItem I_SalesDocumentItem SalesDocumentItem Sales Document Item
SalesDocumentType I_SalesDocumentItem SalesDocumentType Sales Doc. Type
_ScheduleLine I_SalesDocumentItem _ScheduleLine
_SDDocumentCategory I_SalesDocumentItem _SDDocumentCategory
ProfitCenterName _ProfitCenterText ProfitCenterName Profit Center Name
OverallSDProcessStatus _SalesOrder OverallSDProcessStatus
OverallTotalDeliveryStatus _SalesOrder OverallTotalDeliveryStatus
CustomerPurchaseOrderDate _SalesOrder CustomerPurchaseOrderDate Purchase Order Date
BillingCompanyCode _SalesOrder BillingCompanyCode CCodeToBeBilled
CreditControlArea _SalesOrder CreditControlArea Credit Control Area
CostCenter _SalesOrder CostCenter Cost Center
TotalBlockStatus _SalesOrder TotalBlockStatus
SalesDocApprovalStatus _SalesOrder SalesDocApprovalStatus
ShippingCondition _SalesOrder ShippingCondition Shipping Conditions
SlsOrdShippingType _SalesOrder ShippingType Shipping Type
PaymentMethod _SalesOrder PaymentMethod Pymt Meth.
MasterSalesContract _SalesOrder MasterSalesContract
_OvrlTrdCmplncLegalCtrlChkSts _SalesOrder _OvrlTrdCmplncLegalCtrlChkSts
_HeaderBillingBlockReason _SalesOrder _HeaderBillingBlockReason
_OverallSDDocumentRejectionSts _SalesOrder _OverallSDDocumentRejectionSts
_BillingCompanyCode _SalesOrder _BillingCompanyCode
OrganizationBPName1 _SoldToParty OrganizationBPName1 Name 1
OrganizationBPName2 _SoldToParty OrganizationBPName2 Name 2
WBSElementExternalID _WBSElementBasicData_2 WBSElementExternalID WBS Element External ID

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_MassChangeSalesOrderItem.
-- 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_MassChangeSalesOrderItem AS
SELECT
  cast(SalesDocument as vdm_sales_order preserving type) AS SalesOrder,
  SoldToParty,
  ShipToParty,
  PurchaseOrderByCustomer,
  SalesOrganization,
  DistributionChannel,
  _Product._Text[1:Language = $session.system_language ].ProductName AS ProductName,
  Product,
  CreationDate,
  CreatedByUser,
  cast( SalesDocumentType as sales_order_type preserving type ) AS SalesOrderType,
  CustomerGroup,
  AdditionalCustomerGroup1,
  AdditionalCustomerGroup2,
  AdditionalCustomerGroup3,
  AdditionalCustomerGroup4,
  AdditionalCustomerGroup5,
  WBSElementInternalID,
  SalesDocumentItemCategory AS SalesOrderItemCategory,
  SDDocumentReason,
  Batch,
  SDDocumentCategory,
  _ItemCategory._Text[1:Language = $session.system_language ].SalesDocumentItemCategoryName AS SalesOrderItemCategoryName,
  ProfitCenter,
  BusinessSolutionOrder,
  HigherLevelItem,
  cast( 'X' as lfrel_mcc ) AS SlsDocMassChgItmIsHigherLvl,
  BusinessArea,
  ControllingArea,
  cast(OrganizationDivision as organization_division preserving type ) AS OrganizationDivision,
  SalesGroup,
  SalesOffice,
  SalesDistrict,
  cast(_SalesOrder.OverallSDDocumentRejectionSts as ovrl_sd_doc_rejection_status preserving type ) AS OverallSDDocumentRejectionSts,
  cast(_SalesOrder.OverallDeliveryStatus as overall_delivery_status preserving type ) AS OverallDeliveryStatus,
  cast(_SalesOrder.OverallOrdReltdBillgStatus as ovrl_ord_rel_billg_status preserving type ) AS OverallOrdReltdBillgStatus,
  cast(_SalesOrder.TotalCreditCheckStatus as overall_credit_check_status preserving type ) AS TotalCreditCheckStatus,
  cast(_SalesOrder.OverallDeliveryBlockStatus as overall_delivery_block_status preserving type ) AS OverallDeliveryBlockStatus,
  cast(_SalesOrder.OverallBillingBlockStatus as overall_billing_block_status preserving type ) AS OverallBillingBlockStatus,
  cast(_SalesOrder.HdrGeneralIncompletionStatus as hdr_general_incompltn_status preserving type ) AS HdrGeneralIncompletionStatus,
  cast(_SalesOrder.HeaderBillgIncompletionStatus as hdrbillgincompletionstatus preserving type) AS HeaderBillgIncompletionStatus,
  cast(_SalesOrder.OverallPricingIncompletionSts as ovrl_pricing_incompletion_sts preserving type ) AS OverallPricingIncompletionSts,
  cast(_SalesOrder.HeaderDelivIncompletionStatus as hdrdelivincompletionstatus preserving type) AS HeaderDelivIncompletionStatus,
  cast(_SalesOrder.OverallDelivConfStatus as overall_delivery_conf_status preserving type) AS OverallDelivConfStatus,
  cast(_SalesOrder.OverallTrdCmplncEmbargoSts as overall_embargo_status preserving type ) AS OverallTrdCmplncEmbargoSts,
  cast(_SalesOrder.OvrlTrdCmplncSnctndListChkSts as ovrl_watchlist_screening_sts preserving type ) AS OvrlTrdCmplncSnctndListChkSts,
  cast(_SalesOrder.OvrlTrdCmplncLegalCtrlChkSts as overall_legal_control_status preserving type ) AS OvrlTrdCmplncLegalCtrlChkSts,
  cast(_SalesOrder.OverallChmlCmplncStatus as ovrl_product_marketability_sts preserving type ) AS OverallChmlCmplncStatus,
  cast(_SalesOrder.OverallDangerousGoodsStatus as overall_dangerous_goods_status preserving type ) AS OverallDangerousGoodsStatus,
  cast(_SalesOrder.OverallSafetyDataSheetStatus as ovrl_safety_data_sheet_sts preserving type ) AS OverallSafetyDataSheetStatus,
  cast(_SalesOrder.ContractDownPaymentStatus as hdr_down_payment_status preserving type) AS ContractDownPaymentStatus,
  IncotermsClassification,
  cast(DeliveryStatus as itm_overall_delivery_status preserving type ) AS DeliveryStatus,
  cast(SDProcessStatus as overall_sd_doc_processing_sts preserving type ) AS SDProcessStatus,
  cast(TotalDeliveryStatus as itms_ovrl_delivery_status preserving type ) AS TotalDeliveryStatus,
  OrderRelatedBillingStatus,
  SDDocumentRejectionStatus,
  DeliveryBlockStatus,
  BillingBlockStatus,
  cast(ItemGeneralIncompletionStatus as item_general_incompletion_sts preserving type ) AS ItemGeneralIncompletionStatus,
  cast(ItemBillingIncompletionStatus as itms_incompltn_sts_billg preserving type ) AS ItemBillingIncompletionStatus,
  cast(PricingIncompletionStatus as pricing_incompletion_status preserving type ) AS PricingIncompletionStatus,
  cast(ItemDeliveryIncompletionStatus as itm_deliv_incompletion_status preserving type ) AS ItemDeliveryIncompletionStatus,
  cast(DeliveryConfirmationStatus as delivery_confirmation_status preserving type ) AS DeliveryConfirmationStatus,
  SDDocReferenceStatus,
  TotalSDDocReferenceStatus,
  TrdCmplncEmbargoSts,
  TrdCmplncSnctndListChkSts,
  ChmlCmplncStatus,
  DangerousGoodsStatus,
  SafetyDataSheetStatus,
  ContractItemDownPaymentStatus,
  OvrlTrdCmplncLegalCtrlChkSts AS TradeCmplncLegalCtrlChkSts,
  _OvrlTrdCmplncLegalCtrlChkSts._Text[1:Language=$session.system_language].OvrlTrdCmplncLglCtrlChkStsDesc AS OvrlTrdCmplncLglCtrlChkStsDesc,
  PayerParty,
  BillToParty,
  ResponsibleEmployee,
  SalesEmployee,
  cast('' as ad_namtext ) AS ShipToPartyName,
  cast('' as ad_namtext ) AS SoldToPartyName,
  cast('' as ad_namtext ) AS BillToPartyName,
  cast('' as ad_namtext ) AS PayerPartyName,
  cast('' as ad_namtext ) AS ResponsibleEmployeeName,
  cast('' as ad_namtext ) AS SalesEmployeeName,
  cast( ' ' as abap.char( 100 )) AS AdditionalPartnerName,
  cast( ' ' as parvw_unv preserving type ) AS PartnerFunction,
  cast( ' ' as kunnr) AS Customer,
  cast( ' ' as lifnr) AS Supplier,
  cast( '00000000' as pernr_d) AS Personnel,
  cast( '0000000000' as parnr) AS ContactPerson,
  cast( ' ' as ettyp ) AS ScheduleLineCategory,
  cast( ' ' as schedule_line_del_block_reason ) AS DelivBlockReasonForSchedLine,
  SalesDocumentDate AS SalesOrderDate,
  cast( ' ' as reqd_delivery_date ) AS RequestedDeliveryDateFoFltr,
  cast( _SalesOrder.RequestedDeliveryDate as ovrl_reqd_delivery_date ) AS RequestedDeliveryDateForFilter,
  BillingDocumentDate,
  PricingDate,
  SalesOrderItem._DeliveryPriority._Text[1: Language=$session.system_language].DeliveryPriorityDesc AS DeliveryPriorityDesc,
  DeliveryPriority,
  cast(ShippingType as itm_vsarttr preserving type ) AS ShippingType,
  cast(ItemIsDeliveryRelevant as lfrel_mcc) AS ItemIsDeliveryRelevant,
  Plant,
  Route,
  ShippingPoint,
  StorageLocation,
  _SalesItemCompletePartner[1:PartnerFunction = 'WE'].UnloadingPointName AS UnloadingPointName,
  CustomerPaymentTerms AS PaymentTerms,
  cast(_SalesOrder.CustomerPaymentTerms as hdr_dzterm) AS CustomerPaymentTerms,
  IncotermsLocation1,
  IncotermsLocation2,
  IncotermsVersion,
  cast(_SalesOrder.IncotermsClassification as vdm_header_incoterm1) AS HeaderIncotermsClassification,
  cast(_SalesOrder.DeliveryBlockReason as header_delivery_block_reason ) AS DeliveryBlockReason,
  Division,
  TransactionCurrency,
  OrderID,
  cast(_SalesOrder.HeaderBillingBlockReason as header_billing_block_reason preserving type ) AS HeaderBillingBlockReason,
  cast(_SalesOrder.SalesDocApprovalReason as sd_apm_approval_reason_vdm preserving type ) AS SalesOrderApprovalReason,
  Material,
  cast(RequestedQuantity as requested_quantity) AS RequestedQuantity,
  RequestedQuantityUnit,
  NetAmount,
  SalesOrderItem._SalesDocumentRjcnReason._Text[1: Language=$session.system_language].SalesDocumentRjcnReasonName AS SalesDocumentRjcnReasonName,
  SalesDocumentRjcnReason,
  hextobin( '00000000000000000000000000000000' ) AS SlsDocMassChangeRequestUUID,
  cast ('I' as sd_mcc_entity_level) AS SlsDocMassChgEntityLevel,
  SalesDocumentItemText AS SalesOrderItemText,
  cast( ItemBillingBlockReason as billing_block_reason_item preserving type ) AS ItemBillingBlockReason,
  ReturnReason,
  SalesOrderItem._IncotermsClassification._Text[1:Language = $session.system_language].IncotermsClassificationName AS IncotermsClassificationName,
  SalesOrderItem._IncotermsVersion._Text[1:Language = $session.system_language].IncotermsVersionName AS IncotermsVersionName,
  SalesOrderItem._ItemCategory._Text[1:Language = $session.system_language].SalesDocumentItemCategoryName AS SalesDocumentItemCategoryName,
  SalesOrderItem.SalesDocumentItem AS SalesOrderItem,
  SalesOrderItem.SalesDocumentType AS SalesDocumentType,
  SalesOrderItem._ScheduleLine AS _ScheduleLine,
  SalesOrderItem._SDDocumentCategory AS _SDDocumentCategory,
  _ProfitCenterText.ProfitCenterName AS ProfitCenterName,
  _SalesOrder.OverallSDProcessStatus AS OverallSDProcessStatus,
  _SalesOrder.OverallTotalDeliveryStatus AS OverallTotalDeliveryStatus,
  _SalesOrder.CustomerPurchaseOrderDate AS CustomerPurchaseOrderDate,
  _SalesOrder.BillingCompanyCode AS BillingCompanyCode,
  _SalesOrder.CreditControlArea AS CreditControlArea,
  _SalesOrder.CostCenter AS CostCenter,
  _SalesOrder.TotalBlockStatus AS TotalBlockStatus,
  _SalesOrder.SalesDocApprovalStatus AS SalesDocApprovalStatus,
  _SalesOrder.ShippingCondition AS ShippingCondition,
  _SalesOrder.ShippingType AS SlsOrdShippingType,
  _SalesOrder.PaymentMethod AS PaymentMethod,
  _SalesOrder.MasterSalesContract AS MasterSalesContract,
  _SalesOrder._OvrlTrdCmplncLegalCtrlChkSts AS _OvrlTrdCmplncLegalCtrlChkSts,
  _SalesOrder._HeaderBillingBlockReason AS _HeaderBillingBlockReason,
  _SalesOrder._OverallSDDocumentRejectionSts AS _OverallSDDocumentRejectionSts,
  _SalesOrder._BillingCompanyCode AS _BillingCompanyCode,
  _SoldToParty.OrganizationBPName1 AS OrganizationBPName1,
  _SoldToParty.OrganizationBPName2 AS OrganizationBPName2,
  _WBSElementBasicData_2.WBSElementExternalID AS WBSElementExternalID
FROM I_SalesDocumentItem AS SalesOrderItem
LEFT OUTER JOIN I_SalesDocument AS _SalesOrder ON SalesOrder = _SalesOrder.SalesDocument  -- association [1..1]
LEFT OUTER JOIN I_SalesDocItemCompletePartner AS _SalesItemCompletePartner ON SalesOrder = _SalesItemCompletePartner.SalesDocument AND SalesOrderItem = _SalesItemCompletePartner.SalesDocumentItem  -- association [1..*]
LEFT OUTER JOIN I_SlsDocItmNonStdPartner AS _NonStdPartner ON SalesOrder = _NonStdPartner.SalesDocument AND SalesOrderItem = _NonStdPartner.SalesDocumentItem  -- association [0..*]
LEFT OUTER JOIN I_Indicator AS _Indicator ON ItemIsDeliveryRelevant = _Indicator.IndicatorValue  -- association [0..1]
LEFT OUTER JOIN E_SalesDocumentItemBasic AS _ItemExtension ON SalesOrder = _ItemExtension.SalesDocument AND SalesOrderItem = _ItemExtension.SalesDocumentItem  -- association [0..1]
LEFT OUTER JOIN E_SalesDocumentBasic AS _Extension ON SalesOrder = _Extension.SalesDocument  -- association [0..1]
LEFT OUTER JOIN C_SalesDocumentUserVH AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN C_SalesDocPaymentMethodVH AS _SalesDocPaymentMethodVH ON PaymentMethod = _SalesDocPaymentMethodVH.PaymentMethod AND BillingCompanyCode = _SalesDocPaymentMethodVH.BillingCompanyCode  -- association [0..1]
LEFT OUTER JOIN I_ProfitCenterText AS _ProfitCenterText ON ControllingArea = _ProfitCenterText.ControllingArea AND ProfitCenter = _ProfitCenterText.ProfitCenter AND _ProfitCenterText.ValidityEndDate >= $session.system_date AND _ProfitCenterText.ValidityStartDate <= $session.system_date AND _ProfitCenterText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_WBSElementByExternalID AS _WBSElementExternalID ON WBSElementExternalID = _WBSElementExternalID.WBSElementExternalID  -- association [0..1]
;