C_MassChangeSlsSchedgAgrmtItem

DDL: C_MASSCHANGESLSSCHEDGAGRMTITEM Type: view CONSUMPTION

Mass Change of Sls Scheduling Agreement Item

C_MassChangeSlsSchedgAgrmtItem is a Consumption CDS View that provides data about "Mass Change of Sls Scheduling Agreement Item" in SAP S/4HANA. It reads from 1 data source (I_SalesDocumentItem) and exposes 195 fields with key fields SalesSchedulingAgreement, SalesSchedulingAgreementItem. It has 9 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_SalesDocumentItem _SalesSchedgAgreementItem from

Associations (9)

CardinalityTargetAliasCondition
[1] I_SalesDocument _SalesSchedgAgreement $projection.SalesSchedulingAgreement = _SalesSchedgAgreement.SalesDocument
[0..*] I_SalesDocItemCompletePartner _SalesItemCompletePartner $projection.SalesSchedulingAgreement = _SalesItemCompletePartner.SalesDocument and $projection.SalesSchedulingAgreementItem = _SalesItemCompletePartner.SalesDocumentItem
[0..*] I_SalesDocumentScheduleLine _ScheduleLine $projection.SalesSchedulingAgreement = _ScheduleLine.SalesDocument and $projection.SalesSchedulingAgreementItem = _ScheduleLine.SalesDocumentItem
[0..*] I_SlsDocItmNonStdPartner _NonStdPartner $projection.SalesSchedulingAgreement = _NonStdPartner.SalesDocument and $projection.SalesSchedulingAgreementItem = _NonStdPartner.SalesDocumentItem
[0..1] E_SalesDocumentItemBasic _ItemExtension $projection.SalesSchedulingAgreement = _ItemExtension.SalesDocument and $projection.SalesSchedulingAgreementItem = _ItemExtension.SalesDocumentItem
[0..1] E_SalesDocumentBasic _Extension $projection.SalesSchedulingAgreement = _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..*] I_ProfitCenterText _ProfitCenterText $projection.ControllingArea = _ProfitCenterText.ControllingArea and $projection.ProfitCenter = _ProfitCenterText.ProfitCenter and _ProfitCenterText.ValidityEndDate >= $session.system_date and _ProfitCenterText.Language = $session.system_language

Annotations (19)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Mass Change of Sls Scheduling Agreement 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 CSDMCSLSSCAGMITM view
AbapCatalog.compiler.compareFilter true view
ObjectModel.compositionRoot true view
ObjectModel.representativeKey SalesSchedulingAgreementItem view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
OData.entitySet.name SlsSchAgrItem view
Analytics.internalName #LOCAL view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
Search.searchable true view

Fields (195)

KeyFieldSource TableSource FieldDescription
KEY SalesSchedulingAgreement
SalesSchedgAgrmtType
DelivSchedTypeMRPRlvnceCode
SalesSchedgAgrmtProcessingType
OrderID OrderID Order ID
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
SalesSchedgAgrmtItemCategory SalesDocumentItemCategory Item Category
ProductName
Product Product Product Sold
Batch Batch Lot No.
Division Division Internal Division ID
ProfitCenter ProfitCenter Profit Center
SalesOrganization SalesOrganization Sales Organization
PurchaseOrderByCustomer PurchaseOrderByCustomer Purchase Order Number
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
OrganizationDivision Org. Division
SalesGroup SalesGroup Sales Group
SalesOffice SalesOffice Sales Office
SalesDistrict SalesDistrict Sales District
ControllingArea ControllingArea Controlling Area
BusinessArea BusinessArea Business Area
DeliveryBlockReason
OverallDeliveryStatus
OverallSDDocumentRejectionSts
TotalCreditCheckStatus
OverallDeliveryBlockStatus
OverallBillingBlockStatus
HeaderBillgIncompletionStatus
OverallPricingIncompletionSts
HeaderDelivIncompletionStatus
OverallDelivConfStatus
OverallTrdCmplncEmbargoSts
OvrlTrdCmplncSnctndListChkSts
OvrlTrdCmplncLegalCtrlChkSts
OverallChmlCmplncStatus
OverallDangerousGoodsStatus
OverallSafetyDataSheetStatus
HdrGeneralIncompletionStatus
SDProcessStatus Overall Status
OrderRelatedBillingStatus OrderRelatedBillingStatus
SalesDocumentRjcnReasonName
SalesDocumentRjcnReason SalesDocumentRjcnReason RejectionReason
SDDocumentRejectionStatus SDDocumentRejectionStatus Rejection Sts
DeliveryBlockStatus DeliveryBlockStatus
BillingBlockStatus BillingBlockStatus Billg Block Sts
ItemGeneralIncompletionStatus
ItemBillingIncompletionStatus Billing Doc.
PricingIncompletionStatus Pricing – Item
ItemDeliveryIncompletionStatus Delivery – Item
DeliveryConfirmationStatus 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
SoldToParty SoldToParty Sold-to Party
ShipToParty ShipToParty Ship-To Party (obsolete)
PayerParty PayerParty Payer
BillToParty BillToParty Inv. Recipient
ResponsibleEmployee ResponsibleEmployee Employee Resp.
SalesEmployee SalesEmployee Sales Employee
ShipToPartyName
SoldToPartyName
BillToPartyName
PayerPartyName
ResponsibleEmployeeName
SalesEmployeeName
BillingDocumentDate BillingDocumentDate Billing Date
PricingDate PricingDate Pricing Date
SalesSchedgAgrmtDate SalesDocumentDate Document Date
ShippingCondition ShippingCondition Shipping Conditions
ShippingType
Plant Plant Valuation Area
StorageLocation StorageLocation StorageLocation
DeliveryPriorityDesc
DeliveryPriority DeliveryPriority Delivery Prior.
Route Route Vehicle route
UnloadingPointName
ItemIsDeliveryRelevant Item rel.f.dlv.
ShippingPoint ShippingPoint Shipping Point
CustomerPaymentTerms
HeaderIncotermsClassification
IncotermsLocation1 IncotermsLocation1 Inco. Location1
IncotermsLocation2 IncotermsLocation2 Inco. Location2
PartnerFunction
Customer
Supplier
Personnel
ContactPerson
SlsDocMassChangeRequestUUID
SlsDocMassChgEntityLevel
AdditionalPartnerName
DelivBlockReasonForSchedLine
TransactionCurrency TransactionCurrency Transaction Currency
HigherLevelItem HigherLevelItem Higher-Lev.Item
SlsDocMassChgItmIsHigherLvl Item is Higher Level Item
SchedgAgrmtItemCategoryName
Material Material Vehicle Model
RequestedQuantity Requested Quantity
RequestedQuantityUnit RequestedQuantityUnit Requested Quantity Unit
NetAmount NetAmount Stated Amount
ContractItemDownPaymentStatus ContractItemDownPaymentStatus Down Payment Status
SDDocumentCategory SDDocumentCategory Document Cat.
SalesDocApprovalReason
ItemBillingBlockReason ItemBillingBlockReason Billing Block
_ProfitCenterText _ProfitCenterText
_SalesOrganization _SalesOrganization
_CustomerGroup _CustomerGroup
_CreatedByUser _CreatedByUser
_ItemCategory _ItemCategory
_OrganizationDivision _OrganizationDivision
_Division _Division
_Product _Product
_MaterialPlant _MaterialPlant
_Material _Material
_RequestedQuantityUnit _RequestedQuantityUnit
_ContractItemDownPaymentStatus _ContractItemDownPaymentStatus
_TransactionCurrency _TransactionCurrency
_ShippingPoint _ShippingPoint
_DeliveryPriority _DeliveryPriority
_Plant _Plant
_StorageLocation _StorageLocation
_Route _Route
_ControllingArea _ControllingArea
_CustomerPaymentTerms _CustomerPaymentTerms
_IncotermsVersion _IncotermsVersion
_IncotermsClassification _IncotermsClassification
_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
_OvrlTrdCmplncLegalCtrlChkSts _OvrlTrdCmplncLegalCtrlChkSts
_SoldToParty _SoldToParty
_ShippingCondition _ShippingCondition
_ShipToParty _ShipToParty
_BillToParty _BillToParty
_PayerParty _PayerParty
_ResponsibleEmployee _ResponsibleEmployee
_SalesEmployee _SalesEmployee
_ProductText _ProductText
_SalesDistrict _SalesDistrict
_SalesSchedgAgreement _SalesSchedgAgreement
_SalesItemCompletePartner _SalesItemCompletePartner
_NonStdPartner _NonStdPartner
_ScheduleLine _ScheduleLine
_ProfitCenter _ProfitCenter
_ShippingType _ShippingType
_SalesDocumentRjcnReason _SalesDocumentRjcnReason
_SalesDocPaymentMethodVH _SalesDocPaymentMethodVH
KEY SalesSchedulingAgreementItem I_SalesDocumentItem SalesDocumentItem Sales Document Item
TradeCmplncLegalCtrlChkSts I_SalesDocumentItem OvrlTrdCmplncLegalCtrlChkSts
PaymentTerms I_SalesDocumentItem CustomerPaymentTerms Pyt Terms
PaymentMethod I_SalesDocumentItem PaymentMethod Pymt Meth.
IncotermsClassification I_SalesDocumentItem IncotermsClassification Incoterms
IncotermsVersion I_SalesDocumentItem IncotermsVersion Inco. Version
_SDDocumentCategory I_SalesDocumentItem _SDDocumentCategory
ProfitCenterName _ProfitCenterText ProfitCenterName Profit Center Name
SDDocumentReason _SalesSchedgAgreement SDDocumentReason Order Reason
CreationDate _SalesSchedgAgreement CreationDate Time Stamp
CreatedByUser _SalesSchedgAgreement CreatedByUser User Name
CustomerPurchaseOrderDate _SalesSchedgAgreement CustomerPurchaseOrderDate Purchase Order Date
BillingCompanyCode _SalesSchedgAgreement BillingCompanyCode CCodeToBeBilled
CostCenter _SalesSchedgAgreement CostCenter Cost Center
CreditControlArea _SalesSchedgAgreement CreditControlArea Credit Control Area
OverallSDProcessStatus _SalesSchedgAgreement OverallSDProcessStatus
OverallTotalDeliveryStatus _SalesSchedgAgreement OverallTotalDeliveryStatus
SalesDocApprovalStatus _SalesSchedgAgreement SalesDocApprovalStatus
TotalBlockStatus _SalesSchedgAgreement TotalBlockStatus
SalesDocumentType _SalesSchedgAgreement SalesDocumentType Sales Doc. Type
_SalesDocApprovalStatus _SalesSchedgAgreement _SalesDocApprovalStatus
_HdrGeneralIncompletionStatus _SalesSchedgAgreement _HdrGeneralIncompletionStatus
_DelivSchedTypeMRPRlvnceCode _SalesSchedgAgreement _DelivSchedTypeMRPRlvnceCode
_BillingCompanyCode _SalesSchedgAgreement _BillingCompanyCode
OrganizationBPName1 _SoldToParty OrganizationBPName1 Name 1
OrganizationBPName2 _SoldToParty OrganizationBPName2 Name 2

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_MassChangeSlsSchedgAgrmtItem.
-- 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_MassChangeSlsSchedgAgrmtItem AS
SELECT
  cast(_SalesSchedgAgreementItem.SalesDocument as vdm_sales_schedg_agrmt preserving type) AS SalesSchedulingAgreement,
  cast( _SalesSchedgAgreement.SalesDocumentType as vdm_sales_schedg_agrmt_type preserving type) AS SalesSchedgAgrmtType,
  cast( _SalesSchedgAgreement.DelivSchedTypeMRPRlvnceCode as mrp_del_sch_type preserving type ) AS DelivSchedTypeMRPRlvnceCode,
  cast( _SalesSchedgAgreement.SalesDocumentProcessingType as sd_schedg_agrmt_proc_type preserving type) AS SalesSchedgAgrmtProcessingType,
  OrderID,
  CustomerGroup,
  AdditionalCustomerGroup1,
  AdditionalCustomerGroup2,
  AdditionalCustomerGroup3,
  AdditionalCustomerGroup4,
  AdditionalCustomerGroup5,
  SalesDocumentItemCategory AS SalesSchedgAgrmtItemCategory,
  _Product._Text[1:Language = $session.system_language ].ProductName AS ProductName,
  Product,
  Batch,
  Division,
  ProfitCenter,
  SalesOrganization,
  PurchaseOrderByCustomer,
  DistributionChannel,
  cast( OrganizationDivision as organization_division preserving type ) AS OrganizationDivision,
  SalesGroup,
  SalesOffice,
  SalesDistrict,
  ControllingArea,
  BusinessArea,
  cast(_SalesSchedgAgreement.DeliveryBlockReason as header_delivery_block_reason) AS DeliveryBlockReason,
  cast( _SalesSchedgAgreement.OverallDeliveryStatus as overall_delivery_status preserving type ) AS OverallDeliveryStatus,
  cast( _SalesSchedgAgreement.OverallSDDocumentRejectionSts as ovrl_sd_doc_rejection_status preserving type ) AS OverallSDDocumentRejectionSts,
  cast(_SalesSchedgAgreement.TotalCreditCheckStatus as overall_credit_check_status preserving type ) AS TotalCreditCheckStatus,
  cast( _SalesSchedgAgreement.OverallDeliveryBlockStatus as overall_delivery_block_status preserving type ) AS OverallDeliveryBlockStatus,
  cast( _SalesSchedgAgreement.OverallBillingBlockStatus as overall_billing_block_status preserving type ) AS OverallBillingBlockStatus,
  cast( _SalesSchedgAgreement.HeaderBillgIncompletionStatus as hdrbillgincompletionstatus preserving type ) AS HeaderBillgIncompletionStatus,
  cast( _SalesSchedgAgreement.OverallPricingIncompletionSts as ovrl_pricing_incompletion_sts preserving type ) AS OverallPricingIncompletionSts,
  cast( _SalesSchedgAgreement.HeaderDelivIncompletionStatus as hdrdelivincompletionstatus preserving type ) AS HeaderDelivIncompletionStatus,
  cast( _SalesSchedgAgreement.OverallDelivConfStatus as overall_delivery_conf_status preserving type ) AS OverallDelivConfStatus,
  cast( _SalesSchedgAgreement.OverallTrdCmplncEmbargoSts as overall_embargo_status preserving type ) AS OverallTrdCmplncEmbargoSts,
  cast( _SalesSchedgAgreement.OvrlTrdCmplncSnctndListChkSts as ovrl_watchlist_screening_sts preserving type ) AS OvrlTrdCmplncSnctndListChkSts,
  cast( _SalesSchedgAgreement.OvrlTrdCmplncLegalCtrlChkSts as overall_legal_control_status preserving type ) AS OvrlTrdCmplncLegalCtrlChkSts,
  cast( _SalesSchedgAgreement.OverallChmlCmplncStatus as ovrl_product_marketability_sts preserving type ) AS OverallChmlCmplncStatus,
  cast( _SalesSchedgAgreement.OverallDangerousGoodsStatus as overall_dangerous_goods_status preserving type ) AS OverallDangerousGoodsStatus,
  cast( _SalesSchedgAgreement.OverallSafetyDataSheetStatus as ovrl_safety_data_sheet_sts preserving type ) AS OverallSafetyDataSheetStatus,
  cast( _SalesSchedgAgreement.HdrGeneralIncompletionStatus as hdr_general_incompltn_status preserving type ) AS HdrGeneralIncompletionStatus,
  cast( SDProcessStatus as overall_sd_doc_processing_sts preserving type ) AS SDProcessStatus,
  OrderRelatedBillingStatus,
  _SalesSchedgAgreementItem._SalesDocumentRjcnReason._Text[1: Language=$session.system_language].SalesDocumentRjcnReasonName AS SalesDocumentRjcnReasonName,
  SalesDocumentRjcnReason,
  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,
  DeliveryConfirmationStatus,
  SDDocReferenceStatus,
  TotalSDDocReferenceStatus,
  TrdCmplncEmbargoSts,
  TrdCmplncSnctndListChkSts,
  ChmlCmplncStatus,
  DangerousGoodsStatus,
  SafetyDataSheetStatus,
  SoldToParty,
  ShipToParty,
  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,
  BillingDocumentDate,
  PricingDate,
  SalesDocumentDate AS SalesSchedgAgrmtDate,
  ShippingCondition,
  cast(_SalesSchedgAgreementItem.ShippingType as itm_vsarttr preserving type ) AS ShippingType,
  Plant,
  StorageLocation,
  _SalesSchedgAgreementItem._DeliveryPriority._Text[1: Language=$session.system_language].DeliveryPriorityDesc AS DeliveryPriorityDesc,
  DeliveryPriority,
  Route,
  _SalesItemCompletePartner[1:PartnerFunction = 'WE'].UnloadingPointName AS UnloadingPointName,
  cast(ItemIsDeliveryRelevant as lfrel_mcc) AS ItemIsDeliveryRelevant,
  ShippingPoint,
  cast(_SalesSchedgAgreement.CustomerPaymentTerms as hdr_dzterm ) AS CustomerPaymentTerms,
  cast(_SalesSchedgAgreement.IncotermsClassification as vdm_header_incoterm1 ) AS HeaderIncotermsClassification,
  IncotermsLocation1,
  IncotermsLocation2,
  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,
  hextobin( '00000000000000000000000000000000' ) AS SlsDocMassChangeRequestUUID,
  cast ('I' as sd_mcc_entity_level) AS SlsDocMassChgEntityLevel,
  cast( ' ' as abap.char( 100 )) AS AdditionalPartnerName,
  cast( ' ' as schedule_line_del_block_reason ) AS DelivBlockReasonForSchedLine,
  TransactionCurrency,
  HigherLevelItem,
  cast( 'X' as lfrel_mcc ) AS SlsDocMassChgItmIsHigherLvl,
  _ItemCategory._Text[1:Language = $session.system_language ].SalesDocumentItemCategoryName AS SchedgAgrmtItemCategoryName,
  Material,
  cast(RequestedQuantity as requested_quantity) AS RequestedQuantity,
  RequestedQuantityUnit,
  NetAmount,
  ContractItemDownPaymentStatus,
  SDDocumentCategory,
  cast(_SalesSchedgAgreement.SalesDocApprovalReason as sd_apm_approval_reason_vdm) AS SalesDocApprovalReason,
  ItemBillingBlockReason,
  _SalesSchedgAgreementItem.SalesDocumentItem AS SalesSchedulingAgreementItem,
  _SalesSchedgAgreementItem.OvrlTrdCmplncLegalCtrlChkSts AS TradeCmplncLegalCtrlChkSts,
  _SalesSchedgAgreementItem.CustomerPaymentTerms AS PaymentTerms,
  _SalesSchedgAgreementItem.PaymentMethod AS PaymentMethod,
  _SalesSchedgAgreementItem.IncotermsClassification AS IncotermsClassification,
  _SalesSchedgAgreementItem.IncotermsVersion AS IncotermsVersion,
  _SalesSchedgAgreementItem._SDDocumentCategory AS _SDDocumentCategory,
  _ProfitCenterText.ProfitCenterName AS ProfitCenterName,
  _SalesSchedgAgreement.SDDocumentReason AS SDDocumentReason,
  _SalesSchedgAgreement.CreationDate AS CreationDate,
  _SalesSchedgAgreement.CreatedByUser AS CreatedByUser,
  _SalesSchedgAgreement.CustomerPurchaseOrderDate AS CustomerPurchaseOrderDate,
  _SalesSchedgAgreement.BillingCompanyCode AS BillingCompanyCode,
  _SalesSchedgAgreement.CostCenter AS CostCenter,
  _SalesSchedgAgreement.CreditControlArea AS CreditControlArea,
  _SalesSchedgAgreement.OverallSDProcessStatus AS OverallSDProcessStatus,
  _SalesSchedgAgreement.OverallTotalDeliveryStatus AS OverallTotalDeliveryStatus,
  _SalesSchedgAgreement.SalesDocApprovalStatus AS SalesDocApprovalStatus,
  _SalesSchedgAgreement.TotalBlockStatus AS TotalBlockStatus,
  _SalesSchedgAgreement.SalesDocumentType AS SalesDocumentType,
  _SalesSchedgAgreement._SalesDocApprovalStatus AS _SalesDocApprovalStatus,
  _SalesSchedgAgreement._HdrGeneralIncompletionStatus AS _HdrGeneralIncompletionStatus,
  _SalesSchedgAgreement._DelivSchedTypeMRPRlvnceCode AS _DelivSchedTypeMRPRlvnceCode,
  _SalesSchedgAgreement._BillingCompanyCode AS _BillingCompanyCode,
  _SoldToParty.OrganizationBPName1 AS OrganizationBPName1,
  _SoldToParty.OrganizationBPName2 AS OrganizationBPName2
FROM I_SalesDocumentItem AS _SalesSchedgAgreementItem
LEFT OUTER JOIN I_SalesDocument AS _SalesSchedgAgreement ON SalesSchedulingAgreement = _SalesSchedgAgreement.SalesDocument  -- association [1]
LEFT OUTER JOIN I_SalesDocItemCompletePartner AS _SalesItemCompletePartner ON SalesSchedulingAgreement = _SalesItemCompletePartner.SalesDocument AND SalesSchedulingAgreementItem = _SalesItemCompletePartner.SalesDocumentItem  -- association [0..*]
LEFT OUTER JOIN I_SalesDocumentScheduleLine AS _ScheduleLine ON SalesSchedulingAgreement = _ScheduleLine.SalesDocument AND SalesSchedulingAgreementItem = _ScheduleLine.SalesDocumentItem  -- association [0..*]
LEFT OUTER JOIN I_SlsDocItmNonStdPartner AS _NonStdPartner ON SalesSchedulingAgreement = _NonStdPartner.SalesDocument AND SalesSchedulingAgreementItem = _NonStdPartner.SalesDocumentItem  -- association [0..*]
LEFT OUTER JOIN E_SalesDocumentItemBasic AS _ItemExtension ON SalesSchedulingAgreement = _ItemExtension.SalesDocument AND SalesSchedulingAgreementItem = _ItemExtension.SalesDocumentItem  -- association [0..1]
LEFT OUTER JOIN E_SalesDocumentBasic AS _Extension ON SalesSchedulingAgreement = _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.Language = $session.system_language  -- association [0..*]
;