I_BILLINGDOCUMENT

CDS View

Billing Document

I_BILLINGDOCUMENT is a CDS View in S/4HANA. Billing Document. It contains 149 fields. 89 CDS views read from this table.

CDS Views using this table (89)

ViewTypeJoinVDMDescription
A_BillingDocument view from COMPOSITE Billing Document Header
A_BillingDocumentItemText view inner COMPOSITE Item Text
A_BillingDocumentText view inner COMPOSITE Header Text
A_SubsqntBillgDocForSelfBillg view from COMPOSITE Subsequent Billing Document
C_BillgDocRedacted view from CONSUMPTION Redacted Billing Document
C_BillgDocToBePostedSituation view_entity from CONSUMPTION Billing Doc To Be Posted for Situation
C_BillgDocumentSituationAnchor view_entity from CONSUMPTION Billing Document Situation Anchor
C_BillingDocument_F0797 view from CONSUMPTION Billing Document
C_BillingDocumentFs view from CONSUMPTION Billing Document Fact Sheet
C_BSOrdProcFlwCrdtMemoCancln view from CONSUMPTION Crdt Memo Cancln Attrib for BSOrd Prgrs
C_BSOrdProcFlwCreditMemo view from CONSUMPTION Credit Memo Attrib for BSOrd Prgrs
C_BSOrdProcFlwCustInvc view from CONSUMPTION Customer Invoice Attrib for BSOrd Prgrs
C_BSOrdProcFlwDebitMemo view from CONSUMPTION Debit Memo Attrib for BSOrd Prgrs
C_BSOrdProcFlwInvcCancln view from CONSUMPTION Invc Cancln Attrib for BSOrd Prgrs
C_CreditMemoReqRefInvoiceVH view_entity from CONSUMPTION Credit Memo Request Reference Invoice
C_Customer360CancelledInvoice view_entity from CONSUMPTION Customer 360 Invoice Cancelled
C_Customer360Invoice view_entity from CONSUMPTION Customer 360 Invoice
C_DebitMemoReqRefInvoiceVH view_entity from CONSUMPTION Debit Memo Request Reference Invoice
C_DelivProcFlowBillingDoc view from CONSUMPTION Delivery Process Flow - Node Billing Document
C_EG_StRpBillingItem view from CONSUMPTION Egypt ACR Specific Billing Item details of tax items
C_ESJIBillingDocumentQuery view from CONSUMPTION Billing Document
C_GB_StRpAuditFileSlsDistrC view_entity from CONSUMPTION GB HRMC Audit File for SD - Cube
C_RetsReferenceDocumentUnion view_entity union_all CONSUMPTION Returns Reference Document
C_ReturnsReferenceDocumentItem view inner CONSUMPTION Return Reference Document Item
C_ReturnsReferenceInvoiceVH view_entity from CONSUMPTION Customer Return Reference Invoice
C_SA_StRpBillingWthRefAcctgDoc view left_outer CONSUMPTION Billing Reference Documents for Saudi Arabia
C_SlsDocFlfmtBillgDoc view from CONSUMPTION Sales Doc Fulfillment: Billing Document
ESH_N_BILLINGDOCUMENT view from Anchor view -BILLINGDOCUMENT
FAC_AUDIT_Z3_BILLHDRITEM view from Billing Document Header & Item
FAC_AUDIT_Z3_BILLHDRITEM view inner Billing Document Header & Item
FAC_AUDIT_Z3_PRICEELEMENT view left_outer Pricing Element
FISTRPGSTR1ITEM view left_outer GSTR1 Tax Items for Statutory Reporting
I_ARProcessFlowDocumentVH view union_all COMPOSITE Document Number
I_BillgDocForCorrespncHistory view inner BASIC Billing Document for Correspondence History
I_BillingDocEnhancedFields view from COMPOSITE Billing Document Enhanced Fields
I_BillingDocumentStdVH view from COMPOSITE Billing Document
I_CFinBillingDocument view from COMPOSITE CFin Billing Document: Header
I_EDCBillingDocumentRecords view_entity inner BASIC EDC Billing Document Records
I_ExciseDueDocBase view from COMPOSITE Excise Duelist Base
I_IN_StRpGSTRet view left_outer COMPOSITE Tax Item Details for GST Returns
I_ProjectBillingDocDetails view inner BASIC Billing Document Details
I_PT_BillgDocCustAddrVers view inner COMPOSITE PT BillingDoc CustAddr Version
I_PT_SAFTBillgInvcSettlement view_entity inner COMPOSITE Billing Invoices Settlement Info
I_PT_SAFTBillgSlsInvcAmount view_entity from COMPOSITE Billing Document Total Amount
I_PT_SAFTBillgSlsInvcHeader view_entity from COMPOSITE Billing Document Header
I_PT_SAFTBillgWorkDocHdr view_entity from COMPOSITE Working Documents Header Collector
I_PT_SAFTBillingOneTimeAddr view_entity from COMPOSITE One Time Customer Addr for Billing Docs
I_PT_SAFTBillingTaxCheck view_entity inner COMPOSITE Tax Items Check for Billing Documents
I_PT_SAFTCustomerSalesInvoice view_entity inner COMPOSITE Customer from Billing Document
I_PT_SAFTOneTimeCustBillg view_entity inner COMPOSITE One Time Customer from Billing Document
I_PT_SAFTSalesInvoiceTax view_entity inner COMPOSITE Tax Master Data Section Collector
I_PT_SAFTShptInvcAsDeliv view_entity inner COMPOSITE Shippment Invoices Outbound Delivery
I_PT_SAFTSlsInvcBillgCust view_entity inner COMPOSITE Customer from Billing Document
I_PT_SAFTWrkgDocHeaderKey view_entity from COMPOSITE Working Documents Header Collector
I_SAFTBillingCustomer view from COMPOSITE SAF-T Regular Billing Customers
I_SAFTBillingHeader view from BASIC SAF-T Billing Header
I_SAFTBillingOneTimeCustomer view from COMPOSITE SAF-T Billing OneTimeCustomers
I_SAFTBillingPaymentTerms view from BASIC SAF-T Billing Payment Terms
I_SDDocumentProcessItemsFlowVH view inner COMPOSITE Billing Docs Items with Delivery Items
I_SlsOrdFlfmtBillingDoc view from COMPOSITE SOFM Billing Document
I_SrvcOrdBillgDelayedSituation view inner COMPOSITE Service Order not invoiced situation
I_StRpAdvncRetForSlsAndPurTxC view left_outer COMPOSITE Cube View which returns Sales and Purchases tax items
I_TaxItemProcessFlow view_entity inner COMPOSITE Tax Item Process Flow
I_VE_StRpBPAndWhldgTaxItem view left_outer COMPOSITE Venezuela Business Partner VAT and Withholding Tax Items
P_AllwdOrdTypPerSlsOrg view union CONSUMPTION Allowed Return Types per Sales Org
P_ARProcessFlowBillingDoc view_entity from CONSUMPTION Billing Doc details for AR Process Flow
P_CanclnBillingDocProcFlow0 view from CONSUMPTION Cancellation Billing Doc Process Flow: Level 0 Initial Focus
P_CanclnBillingDocProcFlowM1 view inner CONSUMPTION Cancellation Billing Doc Process Flow: Billing Document
P_CanclnBillingDocProcFlowN0 view from CONSUMPTION Cancellation Billing Doc Process Flow: Level <> 0
P_CN_GoldenTaxBillingDocument view from COMPOSITE Golden Tax Billing Document
P_EG_StRpBillingItem view from COMPOSITE Billing item details of tax items for ACR Egypt VAT
P_EntProjProfnlSrvcRblsInTC view_entity inner COMPOSITE Billg Doc Receivables in TransactionCrcy
P_HU_SD_AUDITREPORTNEWR view_entity inner CONSUMPTION Documents from SD Module for AuditReport
P_HU_SDInvoice view from COMPOSITE Invoice details for Domestic Sales List
P_ID_StRpVATOutPrgElm view_entity inner COMPOSITE ID VAT OUT(XML) Blg Info with Discount
P_MY_BillingDocumentItem view from COMPOSITE Billing Document Item for MY GAF
P_PL_SAFTBillingDocumentBasic view from COMPOSITE SAF-T PL: Billing Document relevant data
P_PT_SAFTSALESINVPLANT view from COMPOSITE SAF-T PT Invoices Plant
P_SG_StRpTaxItemBoxCube view left_outer COMPOSITE Tax Item with Billing Document
P_SlsOrdFlfmt1stLvlSDProcSqnc2 view left_outer CONSUMPTION Sales Order Fulfillment First Level SD Process Sequence 2
P_StRpBillingDocumentItem view from COMPOSITE Billing Document Item with Tax for Statutory Reporting
P_StRpCalTaxReturn view left_outer COMPOSITE Calculated Tax Return Information
P_StRpTaxReturnBox view left_outer COMPOSITE Private view to return Tax Details with TaxBox config
P_TW_TaxItem view left_outer COMPOSITE Tax Item Information for TaiWan
R_BillingDocumentItemTextTP view_entity inner TRANSACTIONAL Billing Document Item Text - TP
R_BillingDocumentTextTP view_entity inner TRANSACTIONAL Billing Document - Text TP
R_BillingDocumentTP view_entity from TRANSACTIONAL Billing Document - TP
v_sd_ci_item_party view inner Customer Invoice Item Party
v_sd_ci_party view inner Party information of Customer Invoices

Fields (149)

KeyField CDS FieldsUsed in Views
KEY BillingDocument BillingDocument,Invoice,OriginalReferenceDocument,SalesDocument,UI5NetworkGraphAttributeValue 37
KEY BillingDocumentDate BillingDocumentDate,DeliveryDate,DocumentDate,InvoiceDate 26
KEY CompanyCode CompanyCode 21
KEY CustomerPaymentTerms CustomerPaymentTerms,PaymentTerms 10
KEY FiscalYear FiscalYear 13
_AccountingDocument _AccountingDocument 1
_AccountingPostingStatus _AccountingPostingStatus 1
_AccountingTransferStatus _AccountingTransferStatus 2
_BillingDocumentCategory _BillingDocumentCategory 1
_BillingDocumentType _BillingDocumentType 5
_BillingIssueType _BillingIssueType 4
_CancelledBillingDocument _CancelledBillingDocument 1
_CityCode _CityCode 3
_CompanyCode _CompanyCode 4
_Country _Country 3
_County_2 _County,_County_2 3
_CreatedByUser _CreatedByUser 1
_CreditControlArea _CreditControlArea 1
_CustomerAccountAssgmtGroup _CustomerAccountAssgmtGroup 2
_CustomerGroup _CustomerGroup 2
_CustomerPaymentTerms _CustomerPaymentTerms 4
_CustomerPriceGroup _CustomerPriceGroup 2
_DistributionChannel _DistributionChannel 2
_Division _Division 2
_DunningArea _DunningArea 1
_DunningAreaText _DunningAreaText 1
_DunningBlockingReason _DunningBlockingReason 2
_DunningKey _DunningKey 2
_ExchangeRateType _ExchangeRateType 1
_FiscalYear _FiscalYear 2
_IncotermsClassification _IncotermsClassification 4
_IncotermsVersion _IncotermsVersion 3
_InvoiceClearingStatus _InvoiceClearingStatus 2
_InvoiceListStatus _InvoiceListStatus 1
_InvoiceListType _InvoiceListType 1
_Item _Item 1
_LogicalSystem _LogicalSystem 1
_OverallBillingStatus _OverallBillingStatus 6
_OverallPricingIncompletionSts _OverallPricingIncompletionSts 1
_OverallSDProcessStatus _OverallSDProcessStatus 1
_OvrlItmGeneralIncompletionSts _OvrlItmGeneralIncompletionSts 1
_PayerParty _PayerParty 3
_PriceListType _PriceListType 1
_Region _Region 3
_ReversalReason _ReversalReason 1
_SalesDistrict _SalesDistrict 1
_SalesOrganization _SalesOrganization 3
_SDDocumentCategory _SDDocumentCategory 2
_SDPricingProcedure _SDPricingProcedure 2
_ShippingCondition _ShippingCondition 1
_SoldToParty _SoldToParty 5
_StatisticsCurrency _StatisticsCurrency 1
_TaxDepartureCountry _TaxDepartureCountry 3
_TransactionCurrency _TransactionCurrency 6
_VATRegistrationCountry _VATRegistrationCountry 3
_VATRegistrationOrigin _VATRegistrationOrigin 3
AccountingDocument AccountingDocument 9
AccountingExchangeRate AccountingExchangeRate,ExchangeRate 6
AccountingExchangeRateIsSet AccountingExchangeRateIsSet 1
AccountingPostingStatus AccountingPostingStatus 2
AccountingTransferStatus AccountingTransferStatus 5
AdditionalValueDays AdditionalValueDays 1
AssignmentReference AssignmentReference 2
BillingDocCombinationCriteria BillingDocCombinationCriteria 1
BillingDocumentCategory BillingDocumentCategory 6
BillingDocumentIsCancelled BillingDocumentIsCancelled 10
BillingDocumentIsTemporary BillingDocumentIsTemporary 2
BillingDocumentType BillingDocumentType 27
BillingIssueType BillingIssueType 7
CancelledBillingDocument CancelledBillingDocument 10
CityCode CityCode 3
ContractAccount ContractAccount 1
Country Country,CustomerCountry 5
County County 3
CreatedByUser CreatedByUser 9
CreationDate CreationDate,InvoiceIssueDate 8
CreationTime CreationTime 4
CreditControlArea CreditControlArea 1
CustomerAccountAssignmentGroup CustomerAccountAssignmentGroup 2
CustomerGroup CustomerGroup 3
CustomerPriceGroup CustomerPriceGroup 2
CustomerRebateAgreement CustomerRebateAgreement 2
CustomerTaxClassification1 CustomerTaxClassification1 4
CustomerTaxClassification2 CustomerTaxClassification2 4
CustomerTaxClassification3 CustomerTaxClassification3 4
CustomerTaxClassification4 CustomerTaxClassification4 4
CustomerTaxClassification5 CustomerTaxClassification5 4
CustomerTaxClassification6 CustomerTaxClassification6 4
CustomerTaxClassification7 CustomerTaxClassification7 4
CustomerTaxClassification8 CustomerTaxClassification8 4
CustomerTaxClassification9 CustomerTaxClassification9 4
DeviatingPostingDate DeviatingPostingDate 1
DistributionChannel DistributionChannel 12
Division Division,OrganizationDivision 10
DocumentReferenceID DocumentReferenceID 7
DunningArea DunningArea 2
DunningBlockingReason DunningBlockingReason 2
DunningKey DunningKey 2
ExchangeRateDate ExchangeRateDate 6
ExchangeRateType ExchangeRateType 1
FiscalPeriod FiscalPeriod 2
FixedValueDate FixedValueDate 2
HierarchyTypePricing HierarchyTypePricing 1
IncotermsClassification IncotermsClassification 5
IncotermsLocation1 IncotermsLocation1 4
IncotermsLocation2 IncotermsLocation2 4
IncotermsTransferLocation IncotermsTransferLocation 2
IncotermsVersion IncotermsVersion 3
InternalFinancialDocument InternalFinancialDocument 1
InvoiceClearingStatus InvoiceClearingStatus 3
InvoiceListBillingDate InvoiceListBillingDate 1
InvoiceListStatus InvoiceListStatus 1
InvoiceListType InvoiceListType 2
IsEUTriangularDeal IsEUTriangularDeal 4
IsIntrastatReportingExcluded IsIntrastatReportingExcluded 2
IsIntrastatReportingRelevant IsIntrastatReportingRelevant 2
IsRelevantForAccrual IsRelevantForAccrual 2
LastChangeDate LastChangeDate 1
LogicalSystem LogicalSystem 2
ManualInvoiceMaintIsRelevant ManualInvoiceMaintIsRelevant 2
NmbrOfPages NmbrOfPages 1
OverallBillingStatus OverallBillingStatus 6
OverallPricingIncompletionSts OverallPricingIncompletionSts 1
OverallSDProcessStatus OverallSDProcessStatus 3
OvrlItmGeneralIncompletionSts OvrlItmGeneralIncompletionSts 1
PartnerCompany PartnerCompany 2
PayerParty PayerParty 13
PaymentMethod PaymentMethod 3
PaymentReference PaymentReference 1
PriceListType PriceListType 2
PricingDocument PricingDocument,SalesDocumentCondition 5
PurchaseOrderByCustomer PurchaseOrderByCustomer 8
Region Region 3
ReversalReason ReversalReason 3
SalesDistrict SalesDistrict 2
SalesOrganization SalesOrganization 28
SDDocumentCategory SDDocumentCategory,TargetSalesDocumentType 17
SDPricingProcedure SDPricingProcedure 3
SEPAMandate SEPAMandate 1
ShippingCondition ShippingCondition 2
SoldToParty SoldToParty 16
StatisticsCurrency StatisticsCurrency 1
TaxDepartureCountry TaxDepartureCountry 4
TotalNetAmount TotalNetAmount 18
TotalTaxAmount TaxAmount,TotalTaxAmount 9
TransactionCurrency TransactionCurrency 19
VATRegistration VATRegistration 5
VATRegistrationCountry VATRegistrationCountry 5
VATRegistrationOrigin VATRegistrationOrigin 4
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AbapCatalog.sqlViewName: 'ISDBILLINGDOC'

@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #('TRANSACTIONAL_DATA')
@AccessControl.privilegedAssociations: [ '_CreatedByUser', '_DunningAreaText', '_CreditControlAreaText' ]

@Analytics.dataCategory: #DIMENSION

@Analytics.dataExtraction: { enabled: true,
                             delta.changeDataCapture.mapping: [ { table: 'vbrk',
                                                                  role: #MAIN,
                                                                  viewElement: [ 'BillingDocument' ],
                                                                  tableElement: [ 'vbeln' ] } ] }

@ClientHandling.algorithm: #SESSION_VARIABLE

@EndUserText.label: 'Billing Document'

@Metadata.allowExtensions: true
@Metadata.ignorePropagatedAnnotations: true

@ObjectModel.compositionRoot: true
@ObjectModel.modelingPattern: #ANALYTICAL_DIMENSION
@ObjectModel.representativeKey: 'BillingDocument'
@ObjectModel.sapObjectNodeType.name: 'BillingDocument'

@ObjectModel.supportedCapabilities: [ #ANALYTICAL_DIMENSION,
                                      #CDS_MODELING_DATA_SOURCE,
                                      #CDS_MODELING_ASSOCIATION_TARGET,
                                      #SQL_DATA_SOURCE,
                                      #EXTRACTION_DATA_SOURCE ]

@ObjectModel.usageType: { dataClass: #TRANSACTIONAL, serviceQuality: #A, sizeCategory: #L }

@VDM.viewType: #BASIC

define view I_BillingDocument
  as select from I_BillingDocumentBasic

  // Association

  association [0..*] to I_BillingDocumentItem      as _Item                     on $projection.BillingDocument = _Item.BillingDocument

  association [1..*] to I_BillingDocumentPartner   as _Partner                  on $projection.BillingDocument = _Partner.BillingDocument
  association [0..*] to I_BillingDocumentPrcgElmnt as _PricingElement           on $projection.BillingDocument = _PricingElement.BillingDocument
  association [0..1] to I_BillingDocument          as _CancelledBillingDocument on $projection.CancelledBillingDocument = _CancelledBillingDocument.BillingDocument
  association [1..1] to I_BillingDocEnhancedFields as _EnhancedFields           on $projection.BillingDocument = _EnhancedFields.BillingDocument

  // Extensibility

  association [0..1] to E_BillingDocument          as _Extension                on $projection.BillingDocument = _Extension.BillingDocument

{
      // key

  key BillingDocument,

      // category

      @ObjectModel.foreignKey.association: '_SDDocumentCategory'
      SDDocumentCategory,

      @ObjectModel.foreignKey.association: '_BillingDocumentCategory'
      BillingDocumentCategory,

      @ObjectModel.foreignKey.association: '_BillingDocumentType'
      BillingDocumentType,

      // admin

      @Semantics.personalData.isPotentiallySensitive: true
      @Semantics.user.createdBy: true
      CreatedByUser,

      @Semantics.systemDate.createdAt: true
      CreationDate,

      @Semantics.systemTime.createdAt
      CreationTime,

      @Semantics.systemDate.lastChangedAt: true
      LastChangeDate,

      @Semantics.systemDateTime.lastChangedAt: true
      LastChangeDateTime,

      @ObjectModel.foreignKey.association: '_LogicalSystem'
      LogicalSystem,

      // org

      @ObjectModel.foreignKey.association: '_SalesOrganization'
      SalesOrganization,

      @ObjectModel.foreignKey.association: '_DistributionChannel'
      DistributionChannel,

      @ObjectModel.foreignKey.association: '_Division'
      Division,

      // billing

      BillingDocumentDate,
      BillingDocumentIsCancelled,

      // --[ GENERATED:012:GlBfhyJl7kY4ufKHo3jjFG

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

      @ObjectModel.foreignKey.association: '_CancelledBillingDocument'
      CancelledBillingDocument,

      BillingDocCombinationCriteria,
      ManualInvoiceMaintIsRelevant,
      NmbrOfPages,
      IsIntrastatReportingRelevant,
      IsIntrastatReportingExcluded,
      BillingDocumentIsTemporary,

      // pricing

      @Semantics.amount.currencyCode: 'TransactionCurrency'
      TotalNetAmount,

      @ObjectModel.foreignKey.association: '_TransactionCurrency'
      @Semantics.currencyCode: true
      TransactionCurrency,

      @ObjectModel.foreignKey.association: '_StatisticsCurrency'
      @Semantics.currencyCode: true
      StatisticsCurrency,

      @Semantics.amount.currencyCode: 'TransactionCurrency'
      TotalTaxAmount,

      @ObjectModel.foreignKey.association: '_CustomerPriceGroup'
      CustomerPriceGroup,

      @ObjectModel.foreignKey.association: '_PriceListType'
      PriceListType,

      @ObjectModel.foreignKey.association: '_TaxDepartureCountry'

      TaxDepartureCountry,

      VATRegistration,

      @ObjectModel.foreignKey.association: '_VATRegistrationOrigin'
      VATRegistrationOrigin,

      @ObjectModel.foreignKey.association: '_VATRegistrationCountry'
      VATRegistrationCountry,

      HierarchyTypePricing,

      CustomerTaxClassification1,
      CustomerTaxClassification2,
      CustomerTaxClassification3,
      CustomerTaxClassification4,
      CustomerTaxClassification5,
      CustomerTaxClassification6,
      CustomerTaxClassification7,
      CustomerTaxClassification8,
      CustomerTaxClassification9,
      IsEUTriangularDeal,

      @ObjectModel.foreignKey.association: '_SDPricingProcedure'
      SDPricingProcedure,

      // shipping

      @ObjectModel.foreignKey.association: '_ShippingCondition'
      ShippingCondition,

      PlantSupplier,

      @ObjectModel.foreignKey.association: '_IncotermsVersion'
      IncotermsVersion,

      @ObjectModel.foreignKey.association: '_IncotermsClassification'
      IncotermsClassification,

      IncotermsTransferLocation,
      IncotermsLocation1,
      IncotermsLocation2,

      // payment

      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_Customer_VH', element: 'Customer' } } ]
      @ObjectModel.foreignKey.association: '_PayerParty'
      PayerParty,

      ContractAccount,

      @ObjectModel.foreignKey.association: '_CustomerPaymentTerms'
      CustomerPaymentTerms,

      @ObjectModel.foreignKey.association: '_PaymentMethod'
      PaymentMethod,

      PaymentReference,
      FixedValueDate,
      AdditionalValueDays,
      SEPAMandate,

      // accounting

      DeviatingPostingDate,

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

      @ObjectModel.foreignKey.association: '_FiscalYear'
      FiscalYear,

      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_AccountingDocumentStdVH', element: 'AccountingDocument' },
                                            additionalBinding: [ { localElement: 'CompanyCode', element: 'CompanyCode' },
                                                                 { localElement: 'FiscalYear',  element: 'FiscalYear'  } ] } ]
      @ObjectModel.foreignKey.association: '_AccountingDocument'
      AccountingDocument,

      FiscalPeriod,

      @ObjectModel.foreignKey.association: '_CustomerAccountAssgmtGroup'
      CustomerAccountAssignmentGroup,

      AccountingExchangeRateIsSet,
      AccountingExchangeRate,
      ExchangeRateDate,

      @ObjectModel.foreignKey.association: '_ExchangeRateType'
      ExchangeRateType,

      DocumentReferenceID,
      AssignmentReference,

      @ObjectModel.foreignKey.association: '_ReversalReason'
      ReversalReason,

      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_DunningAreaStdVH', element: 'DunningArea' },
                                            additionalBinding: [ { localElement: 'CompanyCode', element: 'CompanyCode' } ] } ]
      @ObjectModel.foreignKey.association: '_DunningArea'
      @ObjectModel.text.association: '_DunningAreaText'
      DunningArea,

      @ObjectModel.foreignKey.association: '_DunningBlockingReason'
      DunningBlockingReason,

      @ObjectModel.foreignKey.association: '_DunningKey'
      DunningKey,

      InternalFinancialDocument,
      IsRelevantForAccrual,

      // sales

      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_Customer_VH', element: 'Customer' } } ]
      @ObjectModel.foreignKey.association: '_SoldToParty'
      SoldToParty,

      PartnerCompany,
      PurchaseOrderByCustomer,

      @ObjectModel.foreignKey.association: '_CustomerGroup'
      CustomerGroup,

      @ObjectModel.foreignKey.association: '_Country'
      Country,

      @ObjectModel.foreignKey.association: '_CityCode'
      CityCode,

      @ObjectModel.foreignKey.association: '_SalesDistrict'
      SalesDistrict,

      @ObjectModel.foreignKey.association: '_Region'
      Region,

      @ObjectModel.foreignKey.association: '_County_2'
      County,

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

      CustomerRebateAgreement,
      PricingDocument,

      // status

      @ObjectModel.foreignKey.association: '_OverallSDProcessStatus'
      OverallSDProcessStatus,

      @ObjectModel.foreignKey.association: '_OverallBillingStatus'
      OverallBillingStatus,

      @ObjectModel.foreignKey.association: '_AccountingPostingStatus'
      AccountingPostingStatus,

      @ObjectModel.foreignKey.association: '_AccountingTransferStatus'
      AccountingTransferStatus,

      @ObjectModel.foreignKey.association: '_BillingIssueType'
      BillingIssueType,

      @ObjectModel.foreignKey.association: '_InvoiceListStatus'
      InvoiceListStatus,

      @ObjectModel.foreignKey.association: '_OvrlItmGeneralIncompletionSts'
      OvrlItmGeneralIncompletionSts,

      @ObjectModel.foreignKey.association: '_OverallPricingIncompletionSts'
      OverallPricingIncompletionSts,

      @ObjectModel.foreignKey.association: '_InvoiceClearingStatus'
      InvoiceClearingStatus,

      // billing document list

      @ObjectModel.foreignKey.association: '_InvoiceListType'
      InvoiceListType,

      InvoiceListBillingDate,

      // association

      @ObjectModel.association.type: [ #TO_COMPOSITION_CHILD ]
      _Item,

      @ObjectModel.association.type: [ #TO_COMPOSITION_CHILD ]
      _Partner,

      @ObjectModel.association.type: [ #TO_COMPOSITION_CHILD ]
      _PricingElement,

      _SDDocumentCategory,
      _BillingDocumentCategory,
      _BillingDocumentType,
      _CreatedByUser,
      _LogicalSystem,
      _SalesOrganization,
      _DistributionChannel,
      _Division,
      _CancelledBillingDocument,
      _TransactionCurrency,
      _StatisticsCurrency,
      _CustomerPriceGroup,
      _PriceListType,
      _TaxDepartureCountry,
      _VATRegistrationOrigin,
      _VATRegistrationCountry,
      _SDPricingProcedure,
      _ShippingCondition,
      _IncotermsClassification,
      _IncotermsVersion,
      _PayerParty,
      _CustomerPaymentTerms,
      _PaymentMethod,
      _CompanyCode,
      _FiscalYear,
      _AccountingDocument,
      // _FiscalPeriod,

      _CustomerAccountAssgmtGroup,
      _ExchangeRateType,
      _ReversalReason,
      _DunningArea,
      _DunningBlockingReason,
      _DunningKey,
      _InvoiceListType,
      _SoldToParty,
      _CustomerGroup,
      _Country,
      _CityCode,
      _SalesDistrict,
      _Region,

      @API.element: { releaseState: #DEPRECATED, successor: '_County_2' }
      _County,

      _County_2,
      _CreditControlArea,
      _OverallSDProcessStatus,
      _OverallBillingStatus,
      _AccountingPostingStatus,
      _AccountingTransferStatus,
      _BillingIssueType,
      _InvoiceListStatus,
      _OvrlItmGeneralIncompletionSts,
      _OverallPricingIncompletionSts,
      _EnhancedFields,
      _InvoiceClearingStatus,

      @Consumption.hidden: true
      _DunningAreaText,

      @Consumption.hidden: true
      _CreditControlAreaText
}

where SDDocumentCategory = 'M' // Invoice

   or SDDocumentCategory = 'N' // Invoice Canceled

   or SDDocumentCategory = 'O' // Credit Memo

   or SDDocumentCategory = 'P' // Debit Memo

   or SDDocumentCategory = 'S' // Credit Memo Canceled

   or SDDocumentCategory = 'U' // Pro Forma Invoice

   or SDDocumentCategory = '5' // Intercompany Invoice

   or SDDocumentCategory = '6' // Intercompany Credit Memo

   or SDDocumentCategory = 'DPRQ' // Down Payment Request

   or SDDocumentCategory = 'DPCC' // Down Payment Cancellation