I_SalesQuotation

DDL: I_SALESQUOTATION Type: view BASIC

Sales Quotation

I_SalesQuotation is a Basic CDS View (Dimension) that provides data about "Sales Quotation" in SAP S/4HANA. It reads from 1 data source (I_SalesDocument) and exposes 177 fields with key field SalesQuotation. It has 9 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_SalesDocument SalesDocument from

Associations (9)

CardinalityTargetAliasCondition
[0..*] I_BusinessAreaText _BusinessAreaText $projection.BusinessArea = _BusinessAreaText.BusinessArea
[0..*] I_BusinessAreaText _CostCenterBusinessAreaText $projection.CostCenterBusinessArea = _CostCenterBusinessAreaText.BusinessArea
[0..*] I_CreditControlAreaText _CreditControlAreaText $projection.CreditControlArea = _CreditControlAreaText.CreditControlArea
[0..*] I_SalesQuotationItem _Item $projection.SalesQuotation = _Item.SalesQuotation
[0..1] I_SalesQuotationType _SalesQuotationType $projection.SalesQuotationType = _SalesQuotationType.SalesQuotationType
[1..*] I_SalesQuotationPartner _Partner $projection.SalesQuotation = _Partner.SalesQuotation
[0..*] I_SalesQuotationPrcgElmnt _PricingElement $projection.SalesQuotation = _PricingElement.SalesQuotation
[0..1] I_SlsQtanApprovalReason _SalesQuotationApprovalReason $projection.SalesQuotationApprovalReason = _SalesQuotationApprovalReason.SalesQuotationApprovalReason
[0..1] E_SalesDocumentBasic _Extension SalesDocument.SalesDocument = _Extension.SalesDocument

Annotations (18)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Sales Quotation view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #CHECK view
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName ISDSLSQTAN view
AbapCatalog.compiler.compareFilter true view
ObjectModel.compositionRoot true view
ObjectModel.representativeKey SalesQuotation view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
Metadata.ignorePropagatedAnnotations true view
Analytics.dataCategory #DIMENSION view
Metadata.allowExtensions true view
ObjectModel.sapObjectNodeType.name SalesQuotation view
Analytics.dataExtraction.enabled true view

Fields (177)

KeyFieldSource TableSource FieldDescription
KEY SalesQuotation
SalesQuotationType SalesDocumentType
CreatedByUser CreatedByUser
LastChangedByUser LastChangedByUser
CreationDate CreationDate
CreationTime CreationTime
LastChangeDate LastChangeDate
LastChangeDateTime LastChangeDateTime
SalesOrganization SalesOrganization
DistributionChannel DistributionChannel
OrganizationDivision OrganizationDivision
SalesGroup SalesGroup
SalesOffice SalesOffice
SoldToParty SoldToParty
CustomerGroup CustomerGroup
AdditionalCustomerGroup1 AdditionalCustomerGroup1
AdditionalCustomerGroup2 AdditionalCustomerGroup2
AdditionalCustomerGroup3 AdditionalCustomerGroup3
AdditionalCustomerGroup4 AdditionalCustomerGroup4
AdditionalCustomerGroup5 AdditionalCustomerGroup5
CreditControlArea CreditControlArea
CustomerRebateAgreement CustomerRebateAgreement
SalesQuotationDate SalesDocumentDate
ServicesRenderedDate ServicesRenderedDate
SDDocumentReason SDDocumentReason
PurchaseOrderByCustomer PurchaseOrderByCustomer
CustomerPurchaseOrderType CustomerPurchaseOrderType
CustomerPurchaseOrderDate CustomerPurchaseOrderDate
CustomerPurchaseOrderSuplmnt CustomerPurchaseOrderSuplmnt
SalesDistrict SalesDistrict
ProductCatalog ProductCatalog
BindingPeriodValidityStartDate BindingPeriodValidityStartDate
BindingPeriodValidityEndDate BindingPeriodValidityEndDate
HdrOrderProbabilityInPercent HdrOrderProbabilityInPercent
TotalNetAmount TotalNetAmount
TransactionCurrency TransactionCurrency
PricingDate PricingDate
RetailPromotion RetailPromotion
PriceDetnExchangeRate PriceDetnExchangeRate
SalesQuotationCondition SalesDocumentCondition
SDPricingProcedure SDPricingProcedure
RequestedDeliveryDate RequestedDeliveryDate
ShippingType ShippingType
ShippingCondition ShippingCondition
IncotermsVersion IncotermsVersion
IncotermsClassification IncotermsClassification
IncotermsTransferLocation IncotermsTransferLocation
IncotermsLocation1 IncotermsLocation1
IncotermsLocation2 IncotermsLocation2
CustomerPriceGroup CustomerPriceGroup
PriceListType PriceListType
CompleteDeliveryIsDefined CompleteDeliveryIsDefined
DeliveryBlockReason DeliveryBlockReason
SalesQuotationApprovalReason SalesDocApprovalReason
BillingDocumentDate BillingDocumentDate
BillingCompanyCode BillingCompanyCode
HeaderBillingBlockReason HeaderBillingBlockReason
CustomerPaymentTerms CustomerPaymentTerms
PaymentMethod PaymentMethod
FixedValueDate FixedValueDate
AdditionalValueDays AdditionalValueDays
CustomerTaxClassification1 CustomerTaxClassification1
CustomerTaxClassification2 CustomerTaxClassification2
CustomerTaxClassification3 CustomerTaxClassification3
CustomerTaxClassification4 CustomerTaxClassification4
CustomerTaxClassification5 CustomerTaxClassification5
CustomerTaxClassification6 CustomerTaxClassification6
CustomerTaxClassification7 CustomerTaxClassification7
CustomerTaxClassification8 CustomerTaxClassification8
CustomerTaxClassification9 CustomerTaxClassification9
FiscalYear FiscalYear
FiscalPeriod FiscalPeriod
ExchangeRateDate ExchangeRateDate
ExchangeRateType ExchangeRateType
BusinessArea BusinessArea
CustomerAccountAssignmentGroup CustomerAccountAssignmentGroup
CostCenterBusinessArea CostCenterBusinessArea
CostCenter CostCenter
ControllingArea ControllingArea
OrderID OrderID
CustomerCreditAccount CustomerCreditAccount
ReferenceSDDocument ReferenceSDDocument
ReferenceSDDocumentCategory ReferenceSDDocumentCategory
OverallSDProcessStatus OverallSDProcessStatus
OverallSDDocumentRejectionSts OverallSDDocumentRejectionSts
TotalBlockStatus TotalBlockStatus
OverallBillingBlockStatus OverallBillingBlockStatus
OverallTotalSDDocRefStatus OverallTotalSDDocRefStatus
OverallSDDocReferenceStatus OverallSDDocReferenceStatus
TotalCreditCheckStatus TotalCreditCheckStatus
MaxDocValueCreditCheckStatus MaxDocValueCreditCheckStatus
PaymentTermCreditCheckStatus PaymentTermCreditCheckStatus
FinDocCreditCheckStatus FinDocCreditCheckStatus
ExprtInsurCreditCheckStatus ExprtInsurCreditCheckStatus
PaytAuthsnCreditCheckSts PaytAuthsnCreditCheckSts
CentralCreditCheckStatus CentralCreditCheckStatus
CentralCreditChkTechErrSts CentralCreditChkTechErrSts
HdrGeneralIncompletionStatus HdrGeneralIncompletionStatus
OverallPricingIncompletionSts OverallPricingIncompletionSts
HeaderBillgIncompletionStatus HeaderBillgIncompletionStatus
OvrlItmGeneralIncompletionSts OvrlItmGeneralIncompletionSts
OvrlItmBillingIncompletionSts OvrlItmBillingIncompletionSts
SalesDocApprovalStatus SalesDocApprovalStatus
OverallChmlCmplncStatus OverallChmlCmplncStatus
OverallDangerousGoodsStatus OverallDangerousGoodsStatus
OverallSafetyDataSheetStatus OverallSafetyDataSheetStatus
OverallTrdCmplncEmbargoSts OverallTrdCmplncEmbargoSts
_Item _Item
_Partner _Partner
_StandardPartner _StandardPartner
_PricingElement _PricingElement
_SalesQuotationType _SalesQuotationType
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_SalesOrganization _SalesOrganization
_DistributionChannel _DistributionChannel
_OrganizationDivision _OrganizationDivision
_SalesGroup _SalesGroup
_SalesOffice _SalesOffice
_SoldToParty _SoldToParty
_CustomerGroup _CustomerGroup
_AdditionalCustomerGroup1 _AdditionalCustomerGroup1
_AdditionalCustomerGroup2 _AdditionalCustomerGroup2
_AdditionalCustomerGroup3 _AdditionalCustomerGroup3
_AdditionalCustomerGroup4 _AdditionalCustomerGroup4
_AdditionalCustomerGroup5 _AdditionalCustomerGroup5
_CreditControlArea _CreditControlArea
_SDDocumentReason _SDDocumentReason
_CustomerPurchaseOrderType _CustomerPurchaseOrderType
_SalesDistrict _SalesDistrict
_TransactionCurrency _TransactionCurrency
_ShippingType _ShippingType
_ShippingCondition _ShippingCondition
_IncotermsClassification _IncotermsClassification
_IncotermsVersion _IncotermsVersion
_DeliveryBlockReason _DeliveryBlockReason
_BillingCompanyCode _BillingCompanyCode
_HeaderBillingBlockReason _HeaderBillingBlockReason
_SalesQuotationApprovalReason _SalesQuotationApprovalReason
_CustomerPaymentTerms _CustomerPaymentTerms
_ExchangeRateType _ExchangeRateType
_BusinessArea _BusinessArea
_CustomerAccountAssgmtGroup _CustomerAccountAssgmtGroup
_CostCenterBusinessArea _CostCenterBusinessArea
_CostCenter _CostCenter
_ControllingArea _ControllingArea
_ReferenceSDDocumentCategory _ReferenceSDDocumentCategory
_OverallSDProcessStatus _OverallSDProcessStatus
_OverallSDDocumentRejectionSts _OverallSDDocumentRejectionSts
_TotalBlockStatus _TotalBlockStatus
_OverallBillingBlockStatus _OverallBillingBlockStatus
_OverallTotalSDDocRefStatus _OverallTotalSDDocRefStatus
_OverallSDDocReferenceStatus _OverallSDDocReferenceStatus
_TotalCreditCheckStatus _TotalCreditCheckStatus
_MaxDocValueCreditCheckStatus _MaxDocValueCreditCheckStatus
_PaymentTermCreditCheckStatus _PaymentTermCreditCheckStatus
_FinDocCreditCheckStatus _FinDocCreditCheckStatus
_ExprtInsurCreditCheckStatus _ExprtInsurCreditCheckStatus
_PaytAuthsnCreditCheckSts _PaytAuthsnCreditCheckSts
_CentralCreditCheckStatus _CentralCreditCheckStatus
_CentralCreditChkTechErrSts _CentralCreditChkTechErrSts
_HdrGeneralIncompletionStatus _HdrGeneralIncompletionStatus
_OverallPricingIncompletionSts _OverallPricingIncompletionSts
_HeaderBillgIncompletionStatus _HeaderBillgIncompletionStatus
_OvrlItmGeneralIncompletionSts _OvrlItmGeneralIncompletionSts
_OvrlItmBillingIncompletionSts _OvrlItmBillingIncompletionSts
_OvrlTradeCmplncEmbargoStatus _OvrlTradeCmplncEmbargoStatus
_SalesDocApprovalStatus _SalesDocApprovalStatus
_SDPricingProcedure _SDPricingProcedure
_CustomerPriceGroup _CustomerPriceGroup
_OverallChmlCmplncStatus _OverallChmlCmplncStatus
_OverallDangerousGoodsStatus _OverallDangerousGoodsStatus
_OvrlSftyDataSheetSts _OvrlSftyDataSheetSts
_BusinessAreaText _BusinessAreaText
_CostCenterBusinessAreaText _CostCenterBusinessAreaText
_CreditControlAreaText _CreditControlAreaText
_CustomerCreditAccount _CustomerCreditAccount
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Sales Quotation'
@VDM: {
  viewType: #BASIC,
  lifecycle.contract.type: #PUBLIC_LOCAL_API
}
@AccessControl: {
  authorizationCheck: #CHECK,
  personalData.blocking: #('TRANSACTIONAL_DATA'),
  privilegedAssociations: [ '_CreatedByUser', '_LastChangedByUser', '_BusinessAreaText','_CostCenterBusinessAreaText','_CreditControlAreaText']
}
@AbapCatalog: {
  preserveKey: true,
  sqlViewName: 'ISDSLSQTAN',
  compiler.compareFilter: true
}
@ObjectModel: {
  compositionRoot: true,
  representativeKey: 'SalesQuotation',
  usageType: {
    dataClass:      #TRANSACTIONAL,
    serviceQuality: #B,
    sizeCategory:   #L
   },
   supportedCapabilities: [ #ANALYTICAL_DIMENSION, #CDS_MODELING_ASSOCIATION_TARGET, #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #EXTRACTION_DATA_SOURCE ],
   modelingPattern: [ #ANALYTICAL_DIMENSION ]  
}
 
@Metadata.ignorePropagatedAnnotations: true
@Analytics.dataCategory:#DIMENSION
@Metadata.allowExtensions:true
@ObjectModel.sapObjectNodeType.name: 'SalesQuotation'   

@Analytics: {
    dataExtraction: {
        enabled: true,
        delta.changeDataCapture: {
            mapping:[
                {
                    table: 'vbak', role: #MAIN,
                    viewElement: ['SalesQuotation'],
                    tableElement: ['vbeln']  },
                    
                {   filter: [{operator: #EQ, tableElement: 'posnr', value: '000000'}],
                    table: 'vbkd', role: #LEFT_OUTER_TO_ONE_JOIN,
                    viewElement: ['SalesQuotation'],
                    tableElement: ['vbeln']
                },   
                
                {   filter: [{operator: #EQ, tableElement: 'vposn', value: '000000'}],
                    table: 'veda', role: #LEFT_OUTER_TO_ONE_JOIN,
                    viewElement: ['SalesQuotation'],
                    tableElement: ['vbeln']
                }              
            ]
        }
    }
 }
     

define view I_SalesQuotation
  as select from I_SalesDocument as SalesDocument


  //--[ GENERATED:012:GFBfhxvv7jY4oziNhuJJl0

  association [0..*] to I_BusinessAreaText        as _BusinessAreaText             on $projection.BusinessArea = _BusinessAreaText.BusinessArea
  association [0..*] to I_BusinessAreaText        as _CostCenterBusinessAreaText   on $projection.CostCenterBusinessArea = _CostCenterBusinessAreaText.BusinessArea
  association [0..*] to I_CreditControlAreaText   as _CreditControlAreaText        on $projection.CreditControlArea = _CreditControlAreaText.CreditControlArea
  // ]--GENERATED

  association [0..*] to I_SalesQuotationItem      as _Item                         on $projection.SalesQuotation = _Item.SalesQuotation
  association [0..1] to I_SalesQuotationType      as _SalesQuotationType           on $projection.SalesQuotationType = _SalesQuotationType.SalesQuotationType
  association [1..*] to I_SalesQuotationPartner   as _Partner                      on $projection.SalesQuotation = _Partner.SalesQuotation
  association [0..*] to I_SalesQuotationPrcgElmnt as _PricingElement               on $projection.SalesQuotation = _PricingElement.SalesQuotation
  association [0..1] to I_SlsQtanApprovalReason   as _SalesQuotationApprovalReason on $projection.SalesQuotationApprovalReason = _SalesQuotationApprovalReason.SalesQuotationApprovalReason

  //Extensibility

  association [0..1] to E_SalesDocumentBasic      as _Extension                    on SalesDocument.SalesDocument = _Extension.SalesDocument

{
       //Key

  key  cast(SalesDocument as sales_quotation preserving type ) as  SalesQuotation,

       //Category    

       @ObjectModel.foreignKey.association: '_SalesQuotationType'
       SalesDocumentType                                       as  SalesQuotationType,

       //Admin

       CreatedByUser,
       LastChangedByUser,
       @Semantics.systemDate.createdAt: true
       CreationDate,
       @Semantics.systemTime.createdAt: true
       CreationTime,
       @Semantics.systemDate.lastChangedAt: true
       LastChangeDate,
       @Semantics.systemDateTime.lastChangedAt: true
       LastChangeDateTime,

       // Organization

       @ObjectModel.foreignKey.association: '_SalesOrganization'
       SalesOrganization,
       @ObjectModel.foreignKey.association: '_DistributionChannel'
       DistributionChannel,
       @ObjectModel.foreignKey.association: '_OrganizationDivision'
       OrganizationDivision,
       @ObjectModel.foreignKey.association: '_SalesGroup'
       SalesGroup,
       @ObjectModel.foreignKey.association: '_SalesOffice'
       SalesOffice,

       //Sales

       //--[ GENERATED:012:GFBfhxvv7jY4oziNhuJJl0

       @Consumption.valueHelpDefinition: [
         { entity:  { name:    'I_Customer_VH',
                      element: 'Customer' }
         }]
       // ]--GENERATED

       @ObjectModel.foreignKey.association: '_SoldToParty'
       SoldToParty,
       @ObjectModel.foreignKey.association: '_CustomerGroup'
       CustomerGroup,
       @ObjectModel.foreignKey.association: '_AdditionalCustomerGroup1'
       AdditionalCustomerGroup1,
       @ObjectModel.foreignKey.association: '_AdditionalCustomerGroup2'
       AdditionalCustomerGroup2,
       @ObjectModel.foreignKey.association: '_AdditionalCustomerGroup3'
       AdditionalCustomerGroup3,
       @ObjectModel.foreignKey.association: '_AdditionalCustomerGroup4'
       AdditionalCustomerGroup4,
       @ObjectModel.foreignKey.association: '_AdditionalCustomerGroup5'
       AdditionalCustomerGroup5,
       //--[ GENERATED:012:GFBfhxvv7jY4oziNhuJJl0

       @Consumption.valueHelpDefinition: [
         { entity:  { name:    'I_CreditControlAreaStdVH',
                      element: 'CreditControlArea' }
         }]
       @ObjectModel.text.association: '_CreditControlAreaText'
       // ]--GENERATED

       @ObjectModel.foreignKey.association: '_CreditControlArea'
       CreditControlArea,
       CustomerRebateAgreement,
       SalesDocumentDate                                       as  SalesQuotationDate,
       ServicesRenderedDate,
       @ObjectModel.foreignKey.association: '_SDDocumentReason'
       SDDocumentReason,
       PurchaseOrderByCustomer,
       @ObjectModel.foreignKey.association: '_CustomerPurchaseOrderType'
       CustomerPurchaseOrderType,
       CustomerPurchaseOrderDate,
       CustomerPurchaseOrderSuplmnt,
       @ObjectModel.foreignKey.association: '_SalesDistrict'
       SalesDistrict,
       ProductCatalog,

       //Quotation

       BindingPeriodValidityStartDate,
       BindingPeriodValidityEndDate,
       HdrOrderProbabilityInPercent,

       //Pricing

       @DefaultAggregation: #SUM
       @Semantics.amount.currencyCode: 'TransactionCurrency'
       TotalNetAmount,
       @Semantics.currencyCode: true
       @ObjectModel.foreignKey.association: '_TransactionCurrency'
       TransactionCurrency,
       PricingDate,
       RetailPromotion,
       PriceDetnExchangeRate,
       SalesDocumentCondition                                  as  SalesQuotationCondition,
       @Analytics.internalName: #LOCAL
       @ObjectModel.foreignKey.association: '_SDPricingProcedure'
       SDPricingProcedure,
      
       //Shipping

       RequestedDeliveryDate,
       @ObjectModel.foreignKey.association: '_ShippingType'
       ShippingType,
       @ObjectModel.foreignKey.association: '_ShippingCondition'
       ShippingCondition,
       @ObjectModel.foreignKey.association: '_IncotermsVersion'
       IncotermsVersion,
       @ObjectModel.foreignKey.association: '_IncotermsClassification'
       IncotermsClassification,
       IncotermsTransferLocation,
       IncotermsLocation1,
       IncotermsLocation2,
       @ObjectModel.foreignKey.association: '_CustomerPriceGroup'
       CustomerPriceGroup, 
       PriceListType,
       CompleteDeliveryIsDefined,
       @ObjectModel.foreignKey.association: '_DeliveryBlockReason'
       DeliveryBlockReason,

       //Approval Management

       @Analytics.internalName: #LOCAL
       @ObjectModel.foreignKey.association: '_SalesQuotationApprovalReason'
       SalesDocApprovalReason                                  as  SalesQuotationApprovalReason,

       //Billing

       BillingDocumentDate,
       //--[ GENERATED:012:GFBfhxvv7jY4oziNhuJJl0

       @Consumption.valueHelpDefinition: [
         { entity:  { name:    'I_CompanyCodeStdVH',
                      element: 'CompanyCode' }
         }]
       // ]--GENERATED

       @ObjectModel.foreignKey.association: '_BillingCompanyCode'
       BillingCompanyCode,
       @ObjectModel.foreignKey.association: '_HeaderBillingBlockReason'
       HeaderBillingBlockReason,

       //Payment

       @ObjectModel.foreignKey.association: '_CustomerPaymentTerms'
       CustomerPaymentTerms,
       PaymentMethod,
       FixedValueDate,
       AdditionalValueDays,
       
       //Tax Classfication

       CustomerTaxClassification1,
       CustomerTaxClassification2,
       CustomerTaxClassification3,
       CustomerTaxClassification4,
       CustomerTaxClassification5,
       CustomerTaxClassification6,
       CustomerTaxClassification7,
       CustomerTaxClassification8,
       CustomerTaxClassification9,
       
       //Accounting

       FiscalYear,
       FiscalPeriod,
       ExchangeRateDate,
       @ObjectModel.foreignKey.association: '_ExchangeRateType'
       ExchangeRateType,
       //--[ GENERATED:012:GFBfhxvv7jY4oziNhuJJl0

       @Consumption.valueHelpDefinition: [
         { entity:  { name:    'I_BusinessAreaStdVH',
                      element: 'BusinessArea' }
         }]
       @ObjectModel.text.association: '_BusinessAreaText'
       // ]--GENERATED

       @ObjectModel.foreignKey.association: '_BusinessArea'
       BusinessArea,
       @ObjectModel.foreignKey.association: '_CustomerAccountAssgmtGroup'
       CustomerAccountAssignmentGroup,
       //--[ GENERATED:012:GFBfhxvv7jY4oziNhuJJl0

       @Consumption.valueHelpDefinition: [
         { entity:  { name:    'I_BusinessAreaStdVH',
                      element: 'BusinessArea' }
         }]
       @ObjectModel.text.association: '_CostCenterBusinessAreaText'
       // ]--GENERATED

       @ObjectModel.foreignKey.association: '_CostCenterBusinessArea'
       CostCenterBusinessArea,
       CostCenter,
       @ObjectModel.foreignKey.association: '_ControllingArea'
       ControllingArea,
       OrderID,
       
       //Credit Block

       @Analytics.internalName: #LOCAL
       @ObjectModel.foreignKey.association: '_CustomerCreditAccount'
       CustomerCreditAccount,

       //Reference

       ReferenceSDDocument,
       @ObjectModel.foreignKey.association: '_ReferenceSDDocumentCategory'
       ReferenceSDDocumentCategory,

       //Status

       @ObjectModel.foreignKey.association: '_OverallSDProcessStatus'
       OverallSDProcessStatus,
       @ObjectModel.foreignKey.association: '_OverallSDDocumentRejectionSts'
       OverallSDDocumentRejectionSts,
       @ObjectModel.foreignKey.association: '_TotalBlockStatus'
       TotalBlockStatus,
       @ObjectModel.foreignKey.association: '_OverallBillingBlockStatus'
       OverallBillingBlockStatus,
       @ObjectModel.foreignKey.association: '_OverallTotalSDDocRefStatus'
       OverallTotalSDDocRefStatus,
       @ObjectModel.foreignKey.association: '_OverallSDDocReferenceStatus'
       OverallSDDocReferenceStatus,
       @ObjectModel.foreignKey.association: '_TotalCreditCheckStatus'
       TotalCreditCheckStatus,
       @ObjectModel.foreignKey.association: '_MaxDocValueCreditCheckStatus'
       MaxDocValueCreditCheckStatus,
       @ObjectModel.foreignKey.association: '_PaymentTermCreditCheckStatus'
       PaymentTermCreditCheckStatus,
       @ObjectModel.foreignKey.association: '_FinDocCreditCheckStatus'
       FinDocCreditCheckStatus,
       @ObjectModel.foreignKey.association: '_ExprtInsurCreditCheckStatus'
       ExprtInsurCreditCheckStatus,
       @ObjectModel.foreignKey.association: '_PaytAuthsnCreditCheckSts'
       PaytAuthsnCreditCheckSts,
       @ObjectModel.foreignKey.association: '_CentralCreditCheckStatus'
       CentralCreditCheckStatus,
       @ObjectModel.foreignKey.association: '_CentralCreditChkTechErrSts'
       CentralCreditChkTechErrSts,
       @ObjectModel.foreignKey.association: '_HdrGeneralIncompletionStatus'
       HdrGeneralIncompletionStatus,
       @ObjectModel.foreignKey.association: '_OverallPricingIncompletionSts'
       OverallPricingIncompletionSts,
       @ObjectModel.foreignKey.association: '_HeaderBillgIncompletionStatus'
       HeaderBillgIncompletionStatus,
       @ObjectModel.foreignKey.association: '_OvrlItmGeneralIncompletionSts'
       OvrlItmGeneralIncompletionSts,
       @ObjectModel.foreignKey.association: '_OvrlItmBillingIncompletionSts'
       OvrlItmBillingIncompletionSts,
       @Analytics.internalName: #LOCAL
       @ObjectModel.foreignKey.association: '_SalesDocApprovalStatus'
       SalesDocApprovalStatus,
       @ObjectModel.foreignKey.association: '_OverallChmlCmplncStatus'
       OverallChmlCmplncStatus,
       @ObjectModel.foreignKey.association: '_OverallDangerousGoodsStatus'
       OverallDangerousGoodsStatus,
       @ObjectModel.foreignKey.association: '_OvrlSftyDataSheetSts'
       OverallSafetyDataSheetStatus,
       @ObjectModel.foreignKey.association: '_OvrlTradeCmplncEmbargoStatus'
       OverallTrdCmplncEmbargoSts,
      
       //Associations

       @ObjectModel.association.type: [#TO_COMPOSITION_CHILD]
       _Item,
       @ObjectModel.association.type: [#TO_COMPOSITION_CHILD]
       _Partner,
       _StandardPartner,
       @ObjectModel.association.type: [#TO_COMPOSITION_CHILD]
       _PricingElement,
       _SalesQuotationType,
       _CreatedByUser,
       _LastChangedByUser,
       _SalesOrganization,
       _DistributionChannel,
       _OrganizationDivision,
       _SalesGroup,
       _SalesOffice,
       _SoldToParty,
       _CustomerGroup,
       _AdditionalCustomerGroup1,
       _AdditionalCustomerGroup2,
       _AdditionalCustomerGroup3,
       _AdditionalCustomerGroup4,
       _AdditionalCustomerGroup5,
       _CreditControlArea,
       _SDDocumentReason,
       _CustomerPurchaseOrderType,
       _SalesDistrict,
       _TransactionCurrency,
       _ShippingType,
       _ShippingCondition,
       _IncotermsClassification,
       _IncotermsVersion,
       _DeliveryBlockReason,
       _BillingCompanyCode,
       _HeaderBillingBlockReason,
       _SalesQuotationApprovalReason,
       _CustomerPaymentTerms,
       _ExchangeRateType,
       _BusinessArea,
       _CustomerAccountAssgmtGroup,
       _CostCenterBusinessArea,
       _CostCenter,
       _ControllingArea,
       _ReferenceSDDocumentCategory,
       _OverallSDProcessStatus,
       _OverallSDDocumentRejectionSts,
       _TotalBlockStatus,
       _OverallBillingBlockStatus,
       _OverallTotalSDDocRefStatus,
       _OverallSDDocReferenceStatus,
       _TotalCreditCheckStatus,
       _MaxDocValueCreditCheckStatus,
       _PaymentTermCreditCheckStatus,
       _FinDocCreditCheckStatus,
       _ExprtInsurCreditCheckStatus,
       _PaytAuthsnCreditCheckSts,
       _CentralCreditCheckStatus,
       _CentralCreditChkTechErrSts,
       _HdrGeneralIncompletionStatus,
       _OverallPricingIncompletionSts,
       _HeaderBillgIncompletionStatus,
       _OvrlItmGeneralIncompletionSts,
       _OvrlItmBillingIncompletionSts,
       _OvrlTradeCmplncEmbargoStatus,
       _SalesDocApprovalStatus,
       _SDPricingProcedure,
       _CustomerPriceGroup,
       _OverallChmlCmplncStatus,
       _OverallDangerousGoodsStatus,
       _OvrlSftyDataSheetSts,
       //--[ GENERATED:012:GFBfhxvv7jY4oziNhuJJl0

       @Consumption.hidden: true
       _BusinessAreaText,
       @Consumption.hidden: true
       _CostCenterBusinessAreaText,
       @Consumption.hidden: true
       _CreditControlAreaText,
       _CustomerCreditAccount
       // ]--GENERATED



}
where
  SDDocumentCategory = 'B';
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SALESDOCUMENT"
],
"ASSOCIATED":
[
"E_SALESDOCUMENTBASIC",
"I_ADDITIONALCUSTOMERGROUP1",
"I_ADDITIONALCUSTOMERGROUP2",
"I_ADDITIONALCUSTOMERGROUP3",
"I_ADDITIONALCUSTOMERGROUP4",
"I_ADDITIONALCUSTOMERGROUP5",
"I_BILLINGBLOCKREASON",
"I_BUSINESSAREA",
"I_BUSINESSAREATEXT",
"I_CENTRALCREDITCHECKSTATUS",
"I_CENTRALCREDITCHKTECHERRSTS",
"I_COMPANYCODE",
"I_CONTROLLINGAREA",
"I_COSTCENTER",
"I_CREDITCONTROLAREA",
"I_CREDITCONTROLAREATEXT",
"I_CURRENCY",
"I_CUSTOMER",
"I_CUSTOMERACCOUNTASSGMTGROUP",
"I_CUSTOMERGROUP",
"I_CUSTOMERPAYMENTTERMS",
"I_CUSTOMERPRICEGROUP",
"I_CUSTOMERPURCHASEORDERTYPE",
"I_DELIVERYBLOCKREASON",
"I_DISTRIBUTIONCHANNEL",
"I_DIVISION",
"I_EXCHANGERATETYPE",
"I_EXPRTINSURCREDITCHECKSTATUS",
"I_FINDOCCREDITCHECKSTATUS",
"I_HDRBILLGINCOMPLETIONSTATUS",
"I_HDRGENINCOMPLETIONSTATUS",
"I_INCOTERMSCLASSIFICATION",
"I_INCOTERMSVERSION",
"I_MAXDOCVALUECREDITCHECKSTS",
"I_OVERALLBILLINGBLOCKSTATUS",
"I_OVERALLCHMLCMPLNCSTATUS",
"I_OVERALLDANGEROUSGOODSSTATUS",
"I_OVERALLPRCINCOMPLETIONSTS",
"I_OVERALLSDDOCREFERENCESTATUS",
"I_OVERALLSDDOCUMENTRJCNSTATUS",
"I_OVERALLSDPROCESSSTATUS",
"I_OVERALLTOTALSDDOCREFSTATUS",
"I_OVRLITMBILLGINCOMPLTNSTS",
"I_OVRLITMGENINCOMPLETIONSTS",
"I_OVRLSFTYDATASHEETSTS",
"I_OVRLTRADECMPLNCEMBARGOSTATUS",
"I_PAYMENTTERMCREDITCHECKSTS",
"I_PAYTAUTHSNCREDITCHECKSTS",
"I_SALESDISTRICT",
"I_SALESDOCAPPROVALSTATUS",
"I_SALESDOCUMENTSTANDARDPARTNER",
"I_SALESGROUP",
"I_SALESOFFICE",
"I_SALESORGANIZATION",
"I_SALESQUOTATIONITEM",
"I_SALESQUOTATIONPARTNER",
"I_SALESQUOTATIONPRCGELMNT",
"I_SALESQUOTATIONTYPE",
"I_SDDOCUMENTCATEGORY",
"I_SDDOCUMENTREASON",
"I_SHIPPINGCONDITION",
"I_SHIPPINGTYPE",
"I_SLSPRICINGPROCEDURE",
"I_SLSQTANAPPROVALREASON",
"I_TOTALBLOCKSTATUS",
"I_TOTALCREDITCHECKSTATUS",
"I_USER"
],
"BASE":
[
"I_SALESDOCUMENT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/