I_SalesContract

DDL: I_SALESCONTRACT Type: view BASIC

Sales Contract

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

Data Sources (1)

SourceAliasJoin Type
I_SalesDocument SalesDocument from

Associations (9)

CardinalityTargetAliasCondition
[0..*] I_SalesContractItem _Item $projection.SalesContract = _Item.SalesContract
[0..1] I_SalesContractType _SalesContractType $projection.SalesContractType = _SalesContractType.SalesContractType
[0..*] I_SalesContractPartner _Partner $projection.SalesContract = _Partner.SalesContract
[0..1] I_SalesDocument _MasterSalesContract $projection.MasterSalesContract = _MasterSalesContract.SalesDocument
[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..1] I_SalesContractApprovalReason _SalesContractApprovalReason $projection.SalesContractApprovalReason = _SalesContractApprovalReason.SalesContractApprovalReason
[0..1] E_SalesDocumentBasic _Extension SalesDocument.SalesDocument = _Extension.SalesDocument

Annotations (17)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Sales Contract view
AbapCatalog.sqlViewName ISDSALESCONTRACT view
AbapCatalog.compiler.compareFilter true view
ObjectModel.compositionRoot true view
ObjectModel.representativeKey SalesContract view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #BASIC view
Analytics.dataCategory #DIMENSION view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.sapObjectNodeType.name SalesContract view
Analytics.dataExtraction.enabled true view

Fields (199)

KeyFieldSource TableSource FieldDescription
KEY SalesContract
SalesContractType
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
SalesContractDate SalesDocumentDate
ServicesRenderedDate ServicesRenderedDate
SDDocumentReason SDDocumentReason
PurchaseOrderByCustomer PurchaseOrderByCustomer
PurchaseOrderByShipToParty PurchaseOrderByShipToParty
CustomerPurchaseOrderType CustomerPurchaseOrderType
CustomerPurchaseOrderDate CustomerPurchaseOrderDate
CustomerPurchaseOrderSuplmnt CustomerPurchaseOrderSuplmnt
SalesDistrict SalesDistrict
ProductCatalog ProductCatalog
SalesContractSignedDate SalesContractSignedDate
ContractPartnerCanclnDocDate ContractPartnerCanclnDocDate
NmbrOfSalesContractValdtyPerd NmbrOfSalesContractValdtyPerd
SalesContractValidityPerdUnit SalesContractValidityPerdUnit
SalesContractValidityPerdCat SalesContractValidityPerdCat
SalesContractValidityStartDate AgrmtValdtyStartDate
SalesContractValidityEndDate AgrmtValdtyEndDate
SlsContractCanclnReqRcptDate SlsContractCanclnReqRcptDate
RequestedCancellationDate RequestedCancellationDate
SalesContractCanclnParty SalesContractCanclnParty
SalesContractCanclnReason SalesContractCanclnReason
SalesContractCanclnProcedure SalesContractCanclnProcedure
EquipmentInstallationDate EquipmentInstallationDate
EquipmentDeliveryAccptcDate EquipmentDeliveryAccptcDate
EquipmentDismantlingDate EquipmentDismantlingDate
SalesContractFollowUpAction SalesContractFollowUpAction
SlsContractFollowUpActionDate SlsContractFollowUpActionDate
CanclnDocByContrPartner CanclnDocByContrPartner
MasterSalesContract MasterSalesContract
TotalNetAmount TotalNetAmount
TransactionCurrency TransactionCurrency
PricingDate PricingDate
SDPricingProcedure SDPricingProcedure
CustomerPriceGroup CustomerPriceGroup
RetailPromotion RetailPromotion
PriceDetnExchangeRate PriceDetnExchangeRate
SalesContractCondition SalesDocumentCondition
PriceListType PriceListType
TaxDepartureCountry TaxDepartureCountry
VATRegistrationCountry VATRegistrationCountry
ShippingCondition ShippingCondition
IncotermsClassification IncotermsClassification
IncotermsTransferLocation IncotermsTransferLocation
IncotermsLocation1 IncotermsLocation1
IncotermsLocation2 IncotermsLocation2
IncotermsVersion IncotermsVersion
CompleteDeliveryIsDefined CompleteDeliveryIsDefined
ShippingType ShippingType
BillingDocumentDate BillingDocumentDate
BillingCompanyCode BillingCompanyCode
CustomerPaymentTerms CustomerPaymentTerms
PaymentMethod PaymentMethod
FixedValueDate FixedValueDate
AdditionalValueDays AdditionalValueDays
FiscalYear FiscalYear
FiscalPeriod FiscalPeriod
ExchangeRateDate ExchangeRateDate
ExchangeRateType ExchangeRateType
BusinessArea BusinessArea
CustomerAccountAssignmentGroup CustomerAccountAssignmentGroup
CostCenterBusinessArea CostCenterBusinessArea
CostCenter CostCenter
ControllingArea ControllingArea
OrderID OrderID
AssignmentReference AssignmentReference
ReferenceSDDocument ReferenceSDDocument
ReferenceSDDocumentCategory ReferenceSDDocumentCategory
AccountingDocExternalReference AccountingDocExternalReference
OverallSDProcessStatus OverallSDProcessStatus
OverallSDDocumentRejectionSts OverallSDDocumentRejectionSts
TotalBlockStatus TotalBlockStatus
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
ContractDownPaymentStatus ContractDownPaymentStatus
SalesDocApprovalStatus SalesDocApprovalStatus
SalesContractApprovalReason SalesDocApprovalReason
ContractManualCompletion ContractManualCompletion
OverallBillingBlockStatus OverallBillingBlockStatus
HeaderBillingBlockReason HeaderBillingBlockReason
OverallChmlCmplncStatus OverallChmlCmplncStatus
OverallDangerousGoodsStatus OverallDangerousGoodsStatus
OverallSafetyDataSheetStatus OverallSafetyDataSheetStatus
OverallTrdCmplncEmbargoSts OverallTrdCmplncEmbargoSts
OvrlTrdCmplncSnctndListChkSts OvrlTrdCmplncSnctndListChkSts
OvrlTrdCmplncLegalCtrlChkSts OvrlTrdCmplncLegalCtrlChkSts
_Item _Item
_Partner _Partner
_StandardPartner _StandardPartner
_SalesContractType _SalesContractType
_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
_SalesContractValidityPerdUnit _SalesContractValidityPerdUnit
_SalesContractValidityPerdCat _SalesContractValidityPerdCat
_SalesContractCanclnParty _SalesContractCanclnParty
_SalesContractCanclnReason _SalesContractCanclnReason
_SalesContractFollowUpAction _SalesContractFollowUpAction
_MasterSalesContract _MasterSalesContract
_TransactionCurrency _TransactionCurrency
_IncotermsClassification _IncotermsClassification
_IncotermsVersion _IncotermsVersion
_BillingCompanyCode _BillingCompanyCode
_CustomerPaymentTerms _CustomerPaymentTerms
_ExchangeRateType _ExchangeRateType
_BusinessArea _BusinessArea
_CustomerAccountAssgmtGroup _CustomerAccountAssgmtGroup
_CostCenterBusinessArea _CostCenterBusinessArea
_CostCenter _CostCenter
_ControllingArea _ControllingArea
_ReferenceSDDocumentCategory _ReferenceSDDocumentCategory
_OverallSDProcessStatus _OverallSDProcessStatus
_OverallSDDocumentRejectionSts _OverallSDDocumentRejectionSts
_TotalBlockStatus _TotalBlockStatus
_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
_DownPaymentStatus _DownPaymentStatus
_SalesDocApprovalStatus _SalesDocApprovalStatus
_SalesContractApprovalReason _SalesContractApprovalReason
_ShippingCondition _ShippingCondition
_SDPricingProcedure _SDPricingProcedure
_CustomerPriceGroup _CustomerPriceGroup
_PriceListType _PriceListType
_OverallBillingBlockStatus _OverallBillingBlockStatus
_HeaderBillingBlockReason _HeaderBillingBlockReason
_OverallChmlCmplncStatus _OverallChmlCmplncStatus
_OverallDangerousGoodsStatus _OverallDangerousGoodsStatus
_OvrlSftyDataSheetSts _OvrlSftyDataSheetSts
_OvrlTradeCmplncEmbargoStatus _OvrlTradeCmplncEmbargoStatus
_OvTrdCmplncSnctndListChkSts _OvTrdCmplncSnctndListChkSts
_OvrlTrdCmplncLegalCtrlChkSts _OvrlTrdCmplncLegalCtrlChkSts
_BusinessAreaText _BusinessAreaText
_CostCenterBusinessAreaText _CostCenterBusinessAreaText
_CreditControlAreaText _CreditControlAreaText
_TaxDepartureCountry _TaxDepartureCountry
_VATRegistrationCountry _VATRegistrationCountry
_ShippingType _ShippingType
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Sales Contract'
@AbapCatalog:{
    sqlViewName: 'ISDSALESCONTRACT',
    compiler.compareFilter: true
}
@ObjectModel:{
    compositionRoot: true,
    representativeKey: 'SalesContract',
    usageType:{
        dataClass: #TRANSACTIONAL,
        serviceQuality: #B,
        sizeCategory: #M
         },
    supportedCapabilities: [#SQL_DATA_SOURCE,#CDS_MODELING_DATA_SOURCE,#CDS_MODELING_ASSOCIATION_TARGET,#ANALYTICAL_DIMENSION, #EXTRACTION_DATA_SOURCE],
    modelingPattern: #ANALYTICAL_DIMENSION
}
@AccessControl:{
    authorizationCheck:#CHECK,
      personalData.blocking: #('TRANSACTIONAL_DATA'),
      privilegedAssociations: [ '_Partner', '_CreatedByUser', '_LastChangedByUser', '_BusinessAreaText','_CostCenterBusinessAreaText','_CreditControlAreaText' ]
}
@VDM.viewType: #BASIC
@Analytics.dataCategory:#DIMENSION
@Metadata.allowExtensions:true
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.sapObjectNodeType.name: 'SalesContract'       

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


define view I_SalesContract
  as select from I_SalesDocument as SalesDocument
  //Associations

  association [0..*] to I_SalesContractItem           as _Item                        on $projection.SalesContract = _Item.SalesContract
  association [0..1] to I_SalesContractType           as _SalesContractType           on $projection.SalesContractType = _SalesContractType.SalesContractType
  association [0..*] to I_SalesContractPartner        as _Partner                     on $projection.SalesContract = _Partner.SalesContract
  association [0..1] to I_SalesDocument               as _MasterSalesContract         on $projection.MasterSalesContract = _MasterSalesContract.SalesDocument

  //VH adoption - 1805 CL

  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
  association [0..1] to I_SalesContractApprovalReason as _SalesContractApprovalReason on $projection.SalesContractApprovalReason = _SalesContractApprovalReason.SalesContractApprovalReason


  //Extensibility

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

{
      //Key

  key cast(SalesDocument as sales_contract preserving type)           as SalesContract,

      //Category

      @ObjectModel.foreignKey.association: '_SalesContractType'
      cast(SalesDocumentType as sales_contract_type preserving type ) as SalesContractType,

      //Admin

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

      //Org

      @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

      @Consumption.valueHelpDefinition: [
       { entity:  { name:    'I_Customer_VH',
                    element: 'Customer' }
       }]
      @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,

      @Consumption.valueHelpDefinition: [
       { entity:  { name:    'I_CreditControlAreaStdVH',
                    element: 'CreditControlArea' }
       }]
      @ObjectModel.text.association: '_CreditControlAreaText'
      @ObjectModel.foreignKey.association: '_CreditControlArea'
      CreditControlArea,
      CustomerRebateAgreement,
      SalesDocumentDate                                               as SalesContractDate,
      ServicesRenderedDate,
      @ObjectModel.foreignKey.association: '_SDDocumentReason'
      SDDocumentReason,
      PurchaseOrderByCustomer,
      PurchaseOrderByShipToParty,
      CustomerPurchaseOrderType,
      CustomerPurchaseOrderDate,
      CustomerPurchaseOrderSuplmnt,
      @ObjectModel.foreignKey.association: '_SalesDistrict'
      SalesDistrict,
      ProductCatalog,

      //Contract

      SalesContractSignedDate,
      ContractPartnerCanclnDocDate,
      NmbrOfSalesContractValdtyPerd,
      @ObjectModel.foreignKey.association: '_SalesContractValidityPerdUnit'
      SalesContractValidityPerdUnit,
      @ObjectModel.foreignKey.association: '_SalesContractValidityPerdCat'
      SalesContractValidityPerdCat,
      AgrmtValdtyStartDate                                            as SalesContractValidityStartDate,
      AgrmtValdtyEndDate                                              as SalesContractValidityEndDate,
      SlsContractCanclnReqRcptDate,
      RequestedCancellationDate,
      @ObjectModel.foreignKey.association: '_SalesContractCanclnParty'
      SalesContractCanclnParty,
      @ObjectModel.foreignKey.association: '_SalesContractCanclnReason'
      SalesContractCanclnReason,
      SalesContractCanclnProcedure,
      EquipmentInstallationDate,
      EquipmentDeliveryAccptcDate,
      EquipmentDismantlingDate,
      @ObjectModel.foreignKey.association: '_SalesContractFollowUpAction'
      SalesContractFollowUpAction,
      SlsContractFollowUpActionDate,
      CanclnDocByContrPartner,
      @Analytics.internalName: #LOCAL
      @ObjectModel.foreignKey.association: '_MasterSalesContract'
      MasterSalesContract,

      //Pricing

      @DefaultAggregation: #SUM
      @Semantics.amount.currencyCode: 'TransactionCurrency'
      TotalNetAmount,
      @Semantics.currencyCode: true
      @ObjectModel.foreignKey.association: '_TransactionCurrency'
      TransactionCurrency,
      PricingDate,
      @Analytics.internalName: #LOCAL
      @ObjectModel.foreignKey.association: '_SDPricingProcedure'
      SDPricingProcedure,
      @Analytics.internalName: #LOCAL
      @ObjectModel.foreignKey.association: '_CustomerPriceGroup'
      CustomerPriceGroup,
      RetailPromotion,
      PriceDetnExchangeRate,
      SalesDocumentCondition                                          as SalesContractCondition,
      @Analytics.internalName: #LOCAL
      @ObjectModel.foreignKey.association: '_PriceListType'
      PriceListType,
      
      @Analytics.internalName: #LOCAL
      @ObjectModel.foreignKey.association: '_TaxDepartureCountry'
      TaxDepartureCountry,
      @Analytics.internalName: #LOCAL
      @ObjectModel.foreignKey.association: '_VATRegistrationCountry'
      VATRegistrationCountry,

      //Shipping

      @ObjectModel.foreignKey.association: '_ShippingCondition'
      ShippingCondition,
      @ObjectModel.foreignKey.association: '_IncotermsClassification'
      IncotermsClassification,
      IncotermsTransferLocation,
      IncotermsLocation1,
      IncotermsLocation2,
      @ObjectModel.foreignKey.association: '_IncotermsVersion'
      IncotermsVersion,
      CompleteDeliveryIsDefined,
      @ObjectModel.foreignKey.association: '_ShippingType'
      ShippingType,

      //Billing

      BillingDocumentDate,
      @Consumption.valueHelpDefinition: [
      { entity:  { name:    'I_CompanyCodeStdVH',
                   element: 'CompanyCode' }
      }]
      @ObjectModel.foreignKey.association: '_BillingCompanyCode'
      BillingCompanyCode,

      //Payment

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

      //Accounting

      FiscalYear,
      FiscalPeriod,
      ExchangeRateDate,
      @ObjectModel.foreignKey.association: '_ExchangeRateType'
      ExchangeRateType,
      @Consumption.valueHelpDefinition: [
       { entity:  { name:    'I_BusinessAreaStdVH',
                    element: 'BusinessArea' }
       }]
      @ObjectModel.text.association: '_BusinessAreaText'
      @ObjectModel.foreignKey.association: '_BusinessArea'
      BusinessArea,
      @ObjectModel.foreignKey.association: '_CustomerAccountAssgmtGroup'
      CustomerAccountAssignmentGroup,
      @Consumption.valueHelpDefinition: [
       { entity:  { name:    'I_BusinessAreaStdVH',
                    element: 'BusinessArea' }
       }]
      @ObjectModel.text.association: '_CostCenterBusinessAreaText'
      @ObjectModel.foreignKey.association: '_CostCenterBusinessArea'
      CostCenterBusinessArea,
      CostCenter,
      @Consumption.valueHelpDefinition: [
       { entity:  { name:    'I_ControllingAreaStdVH',
                    element: 'ControllingArea' }
       }]
      @ObjectModel.foreignKey.association: '_ControllingArea'
      ControllingArea,
      OrderID,
      AssignmentReference,

      //Reference

      ReferenceSDDocument,
      @ObjectModel.foreignKey.association: '_ReferenceSDDocumentCategory'
      ReferenceSDDocumentCategory,
      @Analytics.internalName: #LOCAL
      AccountingDocExternalReference,

      //Status

      @ObjectModel.foreignKey.association: '_OverallSDProcessStatus'
      OverallSDProcessStatus,
      @ObjectModel.foreignKey.association: '_OverallSDDocumentRejectionSts'
      OverallSDDocumentRejectionSts,
      @ObjectModel.foreignKey.association: '_TotalBlockStatus'
      TotalBlockStatus,
      @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,
      @ObjectModel.foreignKey.association: '_DownPaymentStatus'
      ContractDownPaymentStatus,
      @Analytics.internalName: #LOCAL
      @ObjectModel.foreignKey.association: '_SalesDocApprovalStatus'
      SalesDocApprovalStatus,
      @Analytics.internalName: #LOCAL
      @ObjectModel.foreignKey.association: '_SalesContractApprovalReason'
      SalesDocApprovalReason                                          as SalesContractApprovalReason,
      ContractManualCompletion,

      @ObjectModel.foreignKey.association: '_OverallBillingBlockStatus'
      OverallBillingBlockStatus,
      @ObjectModel.foreignKey.association: '_HeaderBillingBlockReason'
      HeaderBillingBlockReason,

      // Product Compliance Status

      @Analytics.internalName: #LOCAL
      @ObjectModel.foreignKey.association: '_OverallChmlCmplncStatus'
      OverallChmlCmplncStatus,
      @Analytics.internalName: #LOCAL
      @ObjectModel.foreignKey.association: '_OverallDangerousGoodsStatus'
      OverallDangerousGoodsStatus,
      @Analytics.internalName: #LOCAL
      @ObjectModel.foreignKey.association: '_OvrlSftyDataSheetSts'
      OverallSafetyDataSheetStatus,

      //Trade Compliance Status

      @Analytics.internalName: #LOCAL
      @ObjectModel.foreignKey.association: '_OvrlTradeCmplncEmbargoStatus'
      OverallTrdCmplncEmbargoSts,
      @Analytics.internalName: #LOCAL
      @ObjectModel.foreignKey.association: '_OvTrdCmplncSnctndListChkSts'
      OvrlTrdCmplncSnctndListChkSts,
      @Analytics.internalName: #LOCAL
      @ObjectModel.foreignKey.association: '_OvrlTrdCmplncLegalCtrlChkSts'
      OvrlTrdCmplncLegalCtrlChkSts,

      @ObjectModel.association.type: [#TO_COMPOSITION_CHILD]
      _Item,
      _Partner,
      _StandardPartner,
      _SalesContractType,
      _CreatedByUser,
      _LastChangedByUser,
      _SalesOrganization,
      _DistributionChannel,
      _OrganizationDivision,
      _SalesGroup,
      _SalesOffice,
      _SoldToParty,
      _CustomerGroup,
      _AdditionalCustomerGroup1,
      _AdditionalCustomerGroup2,
      _AdditionalCustomerGroup3,
      _AdditionalCustomerGroup4,
      _AdditionalCustomerGroup5,
      _CreditControlArea,
      _SDDocumentReason,
      _CustomerPurchaseOrderType,
      _SalesDistrict,
      _SalesContractValidityPerdUnit,
      _SalesContractValidityPerdCat,
      _SalesContractCanclnParty,
      _SalesContractCanclnReason,
      _SalesContractFollowUpAction,
      _MasterSalesContract,
      _TransactionCurrency,
      //Todo:SalesContractCondition,

      _IncotermsClassification,
      _IncotermsVersion,
      _BillingCompanyCode,
      _CustomerPaymentTerms,
      //Todo: _PaymentMethod,

      _ExchangeRateType,
      _BusinessArea,
      _CustomerAccountAssgmtGroup,
      _CostCenterBusinessArea,
      _CostCenter,
      _ControllingArea,
      //Todo: ReferenceSDDocument,

      _ReferenceSDDocumentCategory,
      _OverallSDProcessStatus,
      _OverallSDDocumentRejectionSts,
      _TotalBlockStatus,
      _OverallTotalSDDocRefStatus,
      _OverallSDDocReferenceStatus,
      _TotalCreditCheckStatus,
      _MaxDocValueCreditCheckStatus,
      _PaymentTermCreditCheckStatus,
      _FinDocCreditCheckStatus,
      _ExprtInsurCreditCheckStatus,
      _PaytAuthsnCreditCheckSts,
      _CentralCreditCheckStatus,
      _CentralCreditChkTechErrSts,
      _HdrGeneralIncompletionStatus,
      _OverallPricingIncompletionSts,
      _HeaderBillgIncompletionStatus,
      _OvrlItmGeneralIncompletionSts,
      _OvrlItmBillingIncompletionSts,
      _DownPaymentStatus,
      _SalesDocApprovalStatus,
      _SalesContractApprovalReason,
      _ShippingCondition,
      _SDPricingProcedure,
      _CustomerPriceGroup,
      _PriceListType,
      _OverallBillingBlockStatus,
      _HeaderBillingBlockReason,
      _OverallChmlCmplncStatus,
      _OverallDangerousGoodsStatus,
      _OvrlSftyDataSheetSts,
      _OvrlTradeCmplncEmbargoStatus,
      _OvTrdCmplncSnctndListChkSts,
      _OvrlTrdCmplncLegalCtrlChkSts,
      //VH

      @Consumption.hidden: true
      _BusinessAreaText,
      @Consumption.hidden: true
      _CostCenterBusinessAreaText,
      @Consumption.hidden: true
      _CreditControlAreaText,
      _TaxDepartureCountry,
      _VATRegistrationCountry,
      _ShippingType
}
where
  SDDocumentCategory = 'G';
/*+[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_CONTRACTDOWNPAYMENTSTATUS",
"I_CONTROLLINGAREA",
"I_COSTCENTER",
"I_COUNTRY",
"I_CREDITCONTROLAREA",
"I_CREDITCONTROLAREATEXT",
"I_CURRENCY",
"I_CUSTOMER",
"I_CUSTOMERACCOUNTASSGMTGROUP",
"I_CUSTOMERGROUP",
"I_CUSTOMERPAYMENTTERMS",
"I_CUSTOMERPRICEGROUP",
"I_CUSTOMERPURCHASEORDERTYPE",
"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_OVRLTRDCMPLNCLEGALCTRLCHKSTS",
"I_OVTRDCMPLNCSNCTNDLISTCHKSTS",
"I_PAYMENTTERMCREDITCHECKSTS",
"I_PAYTAUTHSNCREDITCHECKSTS",
"I_PRICELISTTYPE",
"I_SALESCONTRACTAPPROVALREASON",
"I_SALESCONTRACTCANCLNPARTY",
"I_SALESCONTRACTCANCLNREASON",
"I_SALESCONTRACTFOLLOWUPACTION",
"I_SALESCONTRACTITEM",
"I_SALESCONTRACTPARTNER",
"I_SALESCONTRACTTYPE",
"I_SALESCONTRVALDTYPERDUNIT",
"I_SALESDISTRICT",
"I_SALESDOCAPPROVALSTATUS",
"I_SALESDOCUMENT",
"I_SALESDOCUMENTSTANDARDPARTNER",
"I_SALESGROUP",
"I_SALESOFFICE",
"I_SALESORGANIZATION",
"I_SDDOCUMENTCATEGORY",
"I_SDDOCUMENTREASON",
"I_SHIPPINGCONDITION",
"I_SHIPPINGTYPE",
"I_SLSCONTRACTVALIDITYPERDCAT",
"I_SLSPRICINGPROCEDURE",
"I_TOTALBLOCKSTATUS",
"I_TOTALCREDITCHECKSTATUS",
"I_USER"
],
"BASE":
[
"I_SALESDOCUMENT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/