P_SLSQTANPRDTVBSCDATA

DDL: P_SLSQTANPRDTVBSCDATA SQL: PSDSLSQPBD Type: view COMPOSITE

P_SLSQTANPRDTVBSCDATA is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_SLSDOCITMBSCDATA) and exposes 145 fields with key fields SalesQuotation, SalesQuotationItem. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_SLSDOCITMBSCDATA SDI from

Associations (6)

CardinalityTargetAliasCondition
[1..1] I_SalesQuotation _SalesQuotation $projection.SalesQuotation = _SalesQuotation.SalesQuotation
[0..1] I_PersonWorkAgreement_1 _ResponsibleEmployee $projection.ResponsibleEmployeePersonnelID = _ResponsibleEmployee.PersonWorkAgreement
[0..1] I_PersonWorkAgreement_1 _SalesEmployee $projection.SalesEmployeePersonnelID = _SalesEmployee.PersonWorkAgreement
[0..*] I_MaterialPlant _MaterialPlant $projection.Material = _MaterialPlant.Material
[0..1] I_SalesInquiry _SalesInquiry $projection.SalesInquiry = _SalesInquiry.SalesInquiry and ItemRefSDDocumentCategory = 'A'
[0..1] I_SalesInquiryItem _SalesInquiryItem $projection.SalesInquiryItem = _SalesInquiryItem.SalesInquiryItem and $projection.SalesInquiry = _SalesInquiryItem.SalesInquiry and ItemRefSDDocumentCategory = 'A'

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PSDSLSQPBD view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (145)

KeyFieldSource TableSource FieldDescription
KEY SalesQuotation
_SalesQuotation _SalesQuotation
KEY SalesQuotationItem
ItemCreatedByUser P_SLSDOCITMBSCDATA CreatedByUser User Name
_CreatedByUser P_SLSDOCITMBSCDATA _CreatedByUser
ItemCreationDate P_SLSDOCITMBSCDATA CreationDate Time Stamp
ItemCreationTime
ItemLastChangeDate P_SLSDOCITMBSCDATA LastChangeDate Time Stamp
ItemCreationDateYear
ItemCreationDateYearQuarter
ItemCreationDateYearMonth
ItemCreationCalendarQuarter CalendarDate CalendarQuarter Calendar Quarter
ItemCreationCalendarMonth CalendarDate CalendarMonth Calendar Month
ItemCreationCalendarWeek CalendarDate CalendarWeek Calendar Week
ItemCreationCalendarDay CalendarDate CalendarDay Occur Day in a Month
SalesQuotationType P_SLSDOCITMBSCDATA SalesDocumentType Sales Doc. Type
SalesQuotationItemType P_SLSDOCITMBSCDATA SalesDocumentItemType
SalesQuotationItemCategory P_SLSDOCITMBSCDATA SalesDocumentItemCategory Item Category
_ItemCategory P_SLSDOCITMBSCDATA _ItemCategory
SalesOrganization P_SLSDOCITMBSCDATA SalesOrganization Sales Organization
_SalesOrganization P_SLSDOCITMBSCDATA _SalesOrganization
DistributionChannel P_SLSDOCITMBSCDATA DistributionChannel RefDistCh-Cust/Mat.
_DistributionChannel P_SLSDOCITMBSCDATA _DistributionChannel
OrganizationDivision
_OrganizationDivision P_SLSDOCITMBSCDATA _OrganizationDivision
SalesOffice P_SLSDOCITMBSCDATA SalesOffice Sales Office
_SalesOffice P_SLSDOCITMBSCDATA _SalesOffice
SalesGroup P_SLSDOCITMBSCDATA SalesGroup Sales Group
_SalesGroup P_SLSDOCITMBSCDATA _SalesGroup
Division P_SLSDOCITMBSCDATA Division Internal Division ID
_Division P_SLSDOCITMBSCDATA _Division
BindingPeriodValidityStartDate P_SLSDOCITMBSCDATA BindingPeriodValidityStartDate
BindingPerdValdtyStartYear PeriodStartCalendarDate CalendarYear Year
BindingPerdValdtyStartQuarter PeriodStartCalendarDate CalendarQuarter Calendar Quarter
BindingPerdValdtyStartMonth PeriodStartCalendarDate CalendarMonth Calendar Month
BindingPerdValdtyStartWeek PeriodStartCalendarDate CalendarWeek Calendar Week
BindingPerdValdtyStartDay PeriodStartCalendarDate CalendarDay Occur Day in a Month
BindingPeriodValidityEndDate P_SLSDOCITMBSCDATA BindingPeriodValidityEndDate Binding Period
BindingPerdValdtyEndYear PeriodEndCalendarDate CalendarYear Year
BindingPerdValdtyEndQuarter PeriodEndCalendarDate CalendarQuarter Calendar Quarter
BindingPerdValdtyEndMonth PeriodEndCalendarDate CalendarMonth Calendar Month
BindingPerdValdtyEndWeek PeriodEndCalendarDate CalendarWeek Calendar Week
BindingPerdValdtyEndDay PeriodEndCalendarDate CalendarDay Occur Day in a Month
HdrOrderProbabilityInPercent
OutlineAgreementTargetAmount P_SLSDOCITMBSCDATA OutlineAgreementTargetAmount
TransactionCurrency
InventorySpecialStockType P_SLSDOCITMBSCDATA InventorySpecialStockType Special Stock Type
DeliveryDateQuantityIsFixed P_SLSDOCITMBSCDATA DeliveryDateQuantityIsFixed Fixed Date
ProfitCenter P_SLSDOCITMBSCDATA ProfitCenter Profit Center
WBSElement P_SLSDOCITMBSCDATA WBSElement WBS Internal ID
ControllingObject P_SLSDOCITMBSCDATA ControllingObject Object number
ProfitabilitySegment P_SLSDOCITMBSCDATA ProfitabilitySegment Profitability Segment
OriginSDDocument P_SLSDOCITMBSCDATA OriginSDDocument Originating Doc
OriginSDDocumentItem P_SLSDOCITMBSCDATA OriginSDDocumentItem Origin. Item
SalesInquiry
QuotationRefSDDocumentCategory
SalesInquiryItem P_SLSDOCITMBSCDATA ReferenceSDDocumentItem Reference Item
ItemRefSDDocumentCategory P_SLSDOCITMBSCDATA ReferenceSDDocumentCategory Prec.Doc.Categ.
HigherLevelItem P_SLSDOCITMBSCDATA HigherLevelItem Higher-Lev.Item
_SalesInquiry _SalesInquiry
_SalesInquiryItem _SalesInquiryItem
SoldToParty P_SLSDOCITMBSCDATA SoldToParty Sold-to Party
_SoldToParty P_SLSDOCITMBSCDATA _SoldToParty
ResponsibleEmployeePersonnelID P_SLSDOCITMBSCDATA ResponsibleEmployee Employee Resp.
_ResponsibleEmployee _ResponsibleEmployee
SalesEmployeePersonnelID P_SLSDOCITMBSCDATA SalesEmployee Sales Employee
_SalesEmployee _SalesEmployee
BillToParty P_SLSDOCITMBSCDATA BillToParty Inv. Recipient
PayerParty P_SLSDOCITMBSCDATA PayerParty Payer
ShipToParty P_SLSDOCITMBSCDATA ShipToParty Ship-To Party (obsolete)
Material P_SLSDOCITMBSCDATA Material Vehicle Model
_Material P_SLSDOCITMBSCDATA _Material
MaterialGroup P_SLSDOCITMBSCDATA MaterialGroup Product Group
_MaterialGroup P_SLSDOCITMBSCDATA _MaterialGroup
_MaterialPlant _MaterialPlant
OriginallyRequestedMaterial P_SLSDOCITMBSCDATA OriginallyRequestedMaterial
_OriginallyRequestedMaterial P_SLSDOCITMBSCDATA _OriginallyRequestedMaterial
SDDocumentReason P_SLSDOCITMBSCDATA SDDocumentReason Order Reason
_SDDocumentReason P_SLSDOCITMBSCDATA _SDDocumentReason
SalesQuotationItemText P_SLSDOCITMBSCDATA SalesDocumentItemText Item Descr.
SalesDocumentRjcnReason P_SLSDOCITMBSCDATA SalesDocumentRjcnReason RejectionReason
_SalesDocumentRjcnReason P_SLSDOCITMBSCDATA _SalesDocumentRjcnReason
ItemWeightUnit P_SLSDOCITMBSCDATA ItemWeightUnit Unit of Weight
_ItemWeightUnit P_SLSDOCITMBSCDATA _ItemWeightUnit
ItemGrossWeight P_SLSDOCITMBSCDATA ItemGrossWeight Gross Weight
ItemNetWeight P_SLSDOCITMBSCDATA ItemNetWeight Net Weight
ItemVolumeUnit P_SLSDOCITMBSCDATA ItemVolumeUnit Volume Unit
_ItemVolumeUnit P_SLSDOCITMBSCDATA _ItemVolumeUnit
ItemVolume P_SLSDOCITMBSCDATA ItemVolume Volume
NetAmount P_SLSDOCITMBSCDATA NetAmount Stated Amount
NetPriceAmount P_SLSDOCITMBSCDATA NetPriceAmount Net Price
NetPriceQuantity P_SLSDOCITMBSCDATA NetPriceQuantity Price Unit
NetPriceQuantityUnit P_SLSDOCITMBSCDATA NetPriceQuantityUnit SettlmtPrcUnit
_NetPriceQuantityUnit P_SLSDOCITMBSCDATA _NetPriceQuantityUnit
StatisticalValueControl P_SLSDOCITMBSCDATA StatisticalValueControl
_StatisticalValueControl P_SLSDOCITMBSCDATA _StatisticalValueControl
TaxAmount P_SLSDOCITMBSCDATA TaxAmount Tax Amt in Rptg Crcy
CostAmount P_SLSDOCITMBSCDATA CostAmount
Subtotal1Amount P_SLSDOCITMBSCDATA Subtotal1Amount Subtotal 1 Amount
Subtotal2Amount P_SLSDOCITMBSCDATA Subtotal2Amount Subtotal 2 Amount
Subtotal3Amount P_SLSDOCITMBSCDATA Subtotal3Amount Subtotal 3 Amount
Subtotal4Amount P_SLSDOCITMBSCDATA Subtotal4Amount Subtotal 4 Amount
Subtotal5Amount P_SLSDOCITMBSCDATA Subtotal5Amount Subtotal 5 Amount
Subtotal6Amount P_SLSDOCITMBSCDATA Subtotal6Amount Subtotal 6 Amount
BaseUnit P_SLSDOCITMBSCDATA BaseUnit Unit of Measure
_BaseUnit P_SLSDOCITMBSCDATA _BaseUnit
ItemTransactionCurrency P_SLSDOCITMBSCDATA TransactionCurrency Transaction Currency
_TransactionCurrency P_SLSDOCITMBSCDATA _TransactionCurrency
SDProcessStatus
_SDProcessStatus P_SLSDOCITMBSCDATA _SDProcessStatus
DeliveryConfirmationStatus
_DeliveryConfirmationStatus P_SLSDOCITMBSCDATA _DeliveryConfirmationStatus
PurchaseConfirmationStatus
_PurchaseConfirmationStatus P_SLSDOCITMBSCDATA _PurchaseConfirmationStatus
TotalDeliveryStatus P_SLSDOCITMBSCDATA TotalDeliveryStatus
_TotalDeliveryStatus P_SLSDOCITMBSCDATA _TotalDeliveryStatus
DeliveryStatus P_SLSDOCITMBSCDATA DeliveryStatus Delivery Status
_DeliveryStatus P_SLSDOCITMBSCDATA _DeliveryStatus
DeliveryBlockStatus P_SLSDOCITMBSCDATA DeliveryBlockStatus
_DeliveryBlockStatus P_SLSDOCITMBSCDATA _DeliveryBlockStatus
OrderRelatedBillingStatus P_SLSDOCITMBSCDATA OrderRelatedBillingStatus
_OrderRelatedBillingStatus P_SLSDOCITMBSCDATA _OrderRelatedBillingStatus
BillingBlockStatus P_SLSDOCITMBSCDATA BillingBlockStatus
_BillingBlockStatus P_SLSDOCITMBSCDATA _BillingBlockStatus
ItemGeneralIncompletionStatus
_ItemGeneralIncompletionStatus P_SLSDOCITMBSCDATA _ItemGeneralIncompletionStatus
ItemBillingIncompletionStatus
_ItemBillingIncompletionStatus P_SLSDOCITMBSCDATA _ItemBillingIncompletionStatus
PricingIncompletionStatus
_PricingIncompletionStatus P_SLSDOCITMBSCDATA _PricingIncompletionStatus
ItemDeliveryIncompletionStatus
_ItemDelivIncompletionSts P_SLSDOCITMBSCDATA _ItemDelivIncompletionSts
TotalSDDocReferenceStatus P_SLSDOCITMBSCDATA TotalSDDocReferenceStatus
_TotalSDDocReferenceStatus P_SLSDOCITMBSCDATA _TotalSDDocReferenceStatus
OverallSDProcessStatus
_OverallSDProcessStatus P_SLSDOCITMBSCDATA _OverallSDProcessStatus
OverallSDDocumentRejectionSts
_OverallSDDocumentRejectionSts P_SLSDOCITMBSCDATA _OverallSDDocumentRejectionSts
OverallSDDocReferenceStatus
_OverallSDDocReferenceStatus P_SLSDOCITMBSCDATA _OverallSDDocReferenceStatus
SalesQuotationQuantity P_SLSDOCITMBSCDATA SalesQuotationQuantity
SalesQuotationNetAmount P_SLSDOCITMBSCDATA SalesQuotationNetAmount
SlsQtanToOrdProbltyInPercent P_SLSDOCITMBSCDATA SlsQtanToOrdProbltyInPercent
CnvrtdSalesQuotationQuantity P_SLSDOCITMBSCDATA CnvrtdSalesQuotationQuantity
CnvrtdSalesQuotationNetAmount P_SLSDOCITMBSCDATA CnvrtdSalesQuotationNetAmount

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 P_SLSQTANPRDTVBSCDATA.
-- 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: PSDSLSQPBD

CREATE VIEW P_SLSQTANPRDTVBSCDATA AS
SELECT
  cast(SDI.SalesDocument as sales_quotation ) AS SalesQuotation,
  cast(SDI.SalesDocumentItem as sales_quotation_item ) AS SalesQuotationItem,
  SDI.CreatedByUser AS ItemCreatedByUser,
  SDI._CreatedByUser AS _CreatedByUser,
  SDI.CreationDate AS ItemCreationDate,
  cast(SDI.CreationTime as creation_time) AS ItemCreationTime,
  SDI.LastChangeDate AS ItemLastChangeDate,
  cast(CalendarDate.CalendarYear as creation_date_year) AS ItemCreationDateYear,
  cast(CalendarDate.YearQuarter as creation_date_year_quarter) AS ItemCreationDateYearQuarter,
  cast(CalendarDate.YearMonth as creation_date_year_month) AS ItemCreationDateYearMonth,
  CalendarDate.CalendarQuarter AS ItemCreationCalendarQuarter,
  CalendarDate.CalendarMonth AS ItemCreationCalendarMonth,
  CalendarDate.CalendarWeek AS ItemCreationCalendarWeek,
  CalendarDate.CalendarDay AS ItemCreationCalendarDay,
  SDI.SalesDocumentType AS SalesQuotationType,
  SDI.SalesDocumentItemType AS SalesQuotationItemType,
  SDI.SalesDocumentItemCategory AS SalesQuotationItemCategory,
  SDI._ItemCategory AS _ItemCategory,
  SDI.SalesOrganization AS SalesOrganization,
  SDI._SalesOrganization AS _SalesOrganization,
  SDI.DistributionChannel AS DistributionChannel,
  SDI._DistributionChannel AS _DistributionChannel,
  cast(SDI.OrganizationDivision as organization_division preserving type ) AS OrganizationDivision,
  SDI._OrganizationDivision AS _OrganizationDivision,
  SDI.SalesOffice AS SalesOffice,
  SDI._SalesOffice AS _SalesOffice,
  SDI.SalesGroup AS SalesGroup,
  SDI._SalesGroup AS _SalesGroup,
  SDI.Division AS Division,
  SDI._Division AS _Division,
  SDI.BindingPeriodValidityStartDate AS BindingPeriodValidityStartDate,
  PeriodStartCalendarDate.CalendarYear AS BindingPerdValdtyStartYear,
  PeriodStartCalendarDate.CalendarQuarter AS BindingPerdValdtyStartQuarter,
  PeriodStartCalendarDate.CalendarMonth AS BindingPerdValdtyStartMonth,
  PeriodStartCalendarDate.CalendarWeek AS BindingPerdValdtyStartWeek,
  PeriodStartCalendarDate.CalendarDay AS BindingPerdValdtyStartDay,
  SDI.BindingPeriodValidityEndDate AS BindingPeriodValidityEndDate,
  PeriodEndCalendarDate.CalendarYear AS BindingPerdValdtyEndYear,
  PeriodEndCalendarDate.CalendarQuarter AS BindingPerdValdtyEndQuarter,
  PeriodEndCalendarDate.CalendarMonth AS BindingPerdValdtyEndMonth,
  PeriodEndCalendarDate.CalendarWeek AS BindingPerdValdtyEndWeek,
  PeriodEndCalendarDate.CalendarDay AS BindingPerdValdtyEndDay,
  SDI._SalesDocument.HdrOrderProbabilityInPercent AS HdrOrderProbabilityInPercent,
  SDI.OutlineAgreementTargetAmount AS OutlineAgreementTargetAmount,
  SDI._SalesDocument.TransactionCurrency AS TransactionCurrency,
  SDI.InventorySpecialStockType AS InventorySpecialStockType,
  SDI.DeliveryDateQuantityIsFixed AS DeliveryDateQuantityIsFixed,
  SDI.ProfitCenter AS ProfitCenter,
  SDI.WBSElement AS WBSElement,
  SDI.ControllingObject AS ControllingObject,
  SDI.ProfitabilitySegment AS ProfitabilitySegment,
  SDI.OriginSDDocument AS OriginSDDocument,
  SDI.OriginSDDocumentItem AS OriginSDDocumentItem,
  SDI._SalesDocument.ReferenceSDDocument AS SalesInquiry,
  SDI._SalesDocument.ReferenceSDDocumentCategory AS QuotationRefSDDocumentCategory,
  SDI.ReferenceSDDocumentItem AS SalesInquiryItem,
  SDI.ReferenceSDDocumentCategory AS ItemRefSDDocumentCategory,
  SDI.HigherLevelItem AS HigherLevelItem,
  SDI.SoldToParty AS SoldToParty,
  SDI._SoldToParty AS _SoldToParty,
  SDI.ResponsibleEmployee AS ResponsibleEmployeePersonnelID,
  SDI.SalesEmployee AS SalesEmployeePersonnelID,
  SDI.BillToParty AS BillToParty,
  SDI.PayerParty AS PayerParty,
  SDI.ShipToParty AS ShipToParty,
  SDI.Material AS Material,
  SDI._Material AS _Material,
  SDI.MaterialGroup AS MaterialGroup,
  SDI._MaterialGroup AS _MaterialGroup,
  SDI.OriginallyRequestedMaterial AS OriginallyRequestedMaterial,
  SDI._OriginallyRequestedMaterial AS _OriginallyRequestedMaterial,
  SDI.SDDocumentReason AS SDDocumentReason,
  SDI._SDDocumentReason AS _SDDocumentReason,
  SDI.SalesDocumentItemText AS SalesQuotationItemText,
  SDI.SalesDocumentRjcnReason AS SalesDocumentRjcnReason,
  SDI._SalesDocumentRjcnReason AS _SalesDocumentRjcnReason,
  SDI.ItemWeightUnit AS ItemWeightUnit,
  SDI._ItemWeightUnit AS _ItemWeightUnit,
  SDI.ItemGrossWeight AS ItemGrossWeight,
  SDI.ItemNetWeight AS ItemNetWeight,
  SDI.ItemVolumeUnit AS ItemVolumeUnit,
  SDI._ItemVolumeUnit AS _ItemVolumeUnit,
  SDI.ItemVolume AS ItemVolume,
  SDI.NetAmount AS NetAmount,
  SDI.NetPriceAmount AS NetPriceAmount,
  SDI.NetPriceQuantity AS NetPriceQuantity,
  SDI.NetPriceQuantityUnit AS NetPriceQuantityUnit,
  SDI._NetPriceQuantityUnit AS _NetPriceQuantityUnit,
  SDI.StatisticalValueControl AS StatisticalValueControl,
  SDI._StatisticalValueControl AS _StatisticalValueControl,
  SDI.TaxAmount AS TaxAmount,
  SDI.CostAmount AS CostAmount,
  SDI.Subtotal1Amount AS Subtotal1Amount,
  SDI.Subtotal2Amount AS Subtotal2Amount,
  SDI.Subtotal3Amount AS Subtotal3Amount,
  SDI.Subtotal4Amount AS Subtotal4Amount,
  SDI.Subtotal5Amount AS Subtotal5Amount,
  SDI.Subtotal6Amount AS Subtotal6Amount,
  SDI.BaseUnit AS BaseUnit,
  SDI._BaseUnit AS _BaseUnit,
  SDI.TransactionCurrency AS ItemTransactionCurrency,
  SDI._TransactionCurrency AS _TransactionCurrency,
  cast(SDI.SDProcessStatus as sd_doc_process_status preserving type) AS SDProcessStatus,
  SDI._SDProcessStatus AS _SDProcessStatus,
  cast(SDI.DeliveryConfirmationStatus as delivery_confirmation_status preserving type) AS DeliveryConfirmationStatus,
  SDI._DeliveryConfirmationStatus AS _DeliveryConfirmationStatus,
  cast(SDI.PurchaseConfirmationStatus as purchase_confirmation_status preserving type) AS PurchaseConfirmationStatus,
  SDI._PurchaseConfirmationStatus AS _PurchaseConfirmationStatus,
  SDI.TotalDeliveryStatus AS TotalDeliveryStatus,
  SDI._TotalDeliveryStatus AS _TotalDeliveryStatus,
  SDI.DeliveryStatus AS DeliveryStatus,
  SDI._DeliveryStatus AS _DeliveryStatus,
  SDI.DeliveryBlockStatus AS DeliveryBlockStatus,
  SDI._DeliveryBlockStatus AS _DeliveryBlockStatus,
  SDI.OrderRelatedBillingStatus AS OrderRelatedBillingStatus,
  SDI._OrderRelatedBillingStatus AS _OrderRelatedBillingStatus,
  SDI.BillingBlockStatus AS BillingBlockStatus,
  SDI._BillingBlockStatus AS _BillingBlockStatus,
  cast(SDI.ItemGeneralIncompletionStatus as item_general_incompletion_sts preserving type) AS ItemGeneralIncompletionStatus,
  SDI._ItemGeneralIncompletionStatus AS _ItemGeneralIncompletionStatus,
  cast(SDI.ItemBillingIncompletionStatus as itms_incompltn_sts_billg preserving type) AS ItemBillingIncompletionStatus,
  SDI._ItemBillingIncompletionStatus AS _ItemBillingIncompletionStatus,
  cast(SDI.PricingIncompletionStatus as pricing_incompletion_status preserving type) AS PricingIncompletionStatus,
  SDI._PricingIncompletionStatus AS _PricingIncompletionStatus,
  cast(SDI.ItemDeliveryIncompletionStatus as itm_deliv_incompletion_status preserving type) AS ItemDeliveryIncompletionStatus,
  SDI._ItemDelivIncompletionSts AS _ItemDelivIncompletionSts,
  SDI.TotalSDDocReferenceStatus AS TotalSDDocReferenceStatus,
  SDI._TotalSDDocReferenceStatus AS _TotalSDDocReferenceStatus,
  cast(SDI.OverallSDProcessStatus as overall_sd_process_status preserving type) AS OverallSDProcessStatus,
  SDI._OverallSDProcessStatus AS _OverallSDProcessStatus,
  cast(SDI.OverallSDDocumentRejectionSts as ovrl_sd_doc_rejection_status preserving type) AS OverallSDDocumentRejectionSts,
  SDI._OverallSDDocumentRejectionSts AS _OverallSDDocumentRejectionSts,
  cast(SDI.OverallSDDocReferenceStatus as ovrl_sd_doc_reference_status preserving type) AS OverallSDDocReferenceStatus,
  SDI._OverallSDDocReferenceStatus AS _OverallSDDocReferenceStatus,
  SDI.SalesQuotationQuantity AS SalesQuotationQuantity,
  SDI.SalesQuotationNetAmount AS SalesQuotationNetAmount,
  SDI.SlsQtanToOrdProbltyInPercent AS SlsQtanToOrdProbltyInPercent,
  SDI.CnvrtdSalesQuotationQuantity AS CnvrtdSalesQuotationQuantity,
  SDI.CnvrtdSalesQuotationNetAmount AS CnvrtdSalesQuotationNetAmount
FROM P_SLSDOCITMBSCDATA AS SDI
LEFT OUTER JOIN I_SalesQuotation AS _SalesQuotation ON SalesQuotation = _SalesQuotation.SalesQuotation  -- association [1..1]
LEFT OUTER JOIN I_PersonWorkAgreement_1 AS _ResponsibleEmployee ON ResponsibleEmployeePersonnelID = _ResponsibleEmployee.PersonWorkAgreement  -- association [0..1]
LEFT OUTER JOIN I_PersonWorkAgreement_1 AS _SalesEmployee ON SalesEmployeePersonnelID = _SalesEmployee.PersonWorkAgreement  -- association [0..1]
LEFT OUTER JOIN I_MaterialPlant AS _MaterialPlant ON Material = _MaterialPlant.Material  -- association [0..*]
LEFT OUTER JOIN I_SalesInquiry AS _SalesInquiry ON SalesInquiry = _SalesInquiry.SalesInquiry AND ItemRefSDDocumentCategory = 'A'  -- association [0..1]
LEFT OUTER JOIN I_SalesInquiryItem AS _SalesInquiryItem ON SalesInquiryItem = _SalesInquiryItem.SalesInquiryItem AND SalesInquiry = _SalesInquiryItem.SalesInquiry AND ItemRefSDDocumentCategory = 'A'  -- association [0..1]
;