I_BILLINGDOCUMENT
Billing Document
I_BILLINGDOCUMENT is a CDS View in S/4HANA. Billing Document. It contains 109 fields. 77 CDS views read from this table.
CDS Views using this table (77)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| 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 | |
| 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_BillingDocument_F2187 | view | from | CONSUMPTION | Customer 360 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_BSQPMBillingDocument | view_entity | from | CONSUMPTION | BSQPM Billing Document Attribute |
| C_Customer360CancelledInvoice | view_entity | from | CONSUMPTION | Customer 360 Invoice Cancelled |
| C_Customer360Invoice | view_entity | from | CONSUMPTION | Customer 360 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_ReturnRefDocItem_F1708 | view | inner | CONSUMPTION | Return Reference Document Item |
| 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_SDDocumentShipToParty | view | union_all | CONSUMPTION | SD Document Complete Ship to Party |
| C_SlsDocFlfmtBillgDoc | view | from | CONSUMPTION | Sales Doc Fulfillment: Billing Document |
| ESH_N_BILLINGDOCUMENT | view | from | ||
| 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 | ||
| 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 | union_all | COMPOSITE | CFin Billing Document: Header |
| I_ExciseDueDocBase | view | from | COMPOSITE | Excise Duelist Base |
| I_IN_StRpGSTRet | view | left_outer | COMPOSITE | Tax Item Details for GST Returns |
| I_LstMiSDInvoice | view | from | COMPOSITE | Last Mile Distribution SD Invoice |
| I_MPCustomerClearedItem | view | inner | BASIC | Master Project Accounting Customer Cleared Item |
| I_PL_SAFTDownPaymentSlsOrdItm | view | inner | COMPOSITE | SAF-T PL: Down Payment Sales Order Items |
| I_ProjectBillingDocDetails | view | inner | BASIC | Billing Document Details |
| I_PT_BillgDocCustAddrVers | view | inner | COMPOSITE | PT BillingDoc CustAddr Version |
| 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_SDDocumentProcessFlowVH | view | inner | COMPOSITE | Billing Document based on Delivery Doc |
| 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 | |
| P_ARProcessFlowBillingDoc | view | from | CONSUMPTION | Billing Doc details for AR Process Flow |
| P_CanclnBillingDocProcFlow0 | view | from | CONSUMPTION | |
| P_CanclnBillingDocProcFlowM1 | view | inner | CONSUMPTION | |
| P_CanclnBillingDocProcFlowN0 | view | from | CONSUMPTION | |
| P_CN_GoldenTaxBillingDocument | view | from | COMPOSITE | |
| P_EG_StRpBillingItem | view | from | COMPOSITE | |
| P_HU_SDInvoice | view | from | COMPOSITE | |
| P_MY_BillingDocumentItem | view | from | COMPOSITE | |
| P_PL_SAFTBillingDocumentBasic | view | from | COMPOSITE | |
| P_PT_SAFTSALESINVPLANT | view | from | COMPOSITE | |
| P_SG_StRpTaxItemBoxCube | view | left_outer | COMPOSITE | |
| P_SlsOrdFlfmt1stLvlSDProcSqnc2 | view | left_outer | CONSUMPTION | |
| P_StRpBillingDocumentItem | view | from | COMPOSITE | |
| P_StRpCalTaxReturn | view | left_outer | COMPOSITE | |
| P_StRpTaxReturnBox | view | left_outer | COMPOSITE | |
| P_TW_TaxItem | view | left_outer | COMPOSITE | |
| R_BillingDocumentTP | view_entity | from | TRANSACTIONAL | Billing Document - TP |
| v_sd_ci_item_party | view | inner | ||
| v_sd_ci_party | view | inner |
Fields (109)
| Key | Field | CDS Fields | Used in Views |
|---|---|---|---|
| KEY | BillingDocument | BillingDocument,Invoice,OriginalReferenceDocument,SalesDocument,UI5NetworkGraphAttributeValue | 32 |
| KEY | CompanyCode | CompanyCode | 17 |
| KEY | CustomerPaymentTerms | CustomerPaymentTerms,PaymentTerms | 7 |
| _AccountingTransferStatus | _AccountingTransferStatus | 1 | |
| _BillingDocumentType | _BillingDocumentType | 5 | |
| _BillingIssueType | _BillingIssueType | 3 | |
| _CityCode | _CityCode | 2 | |
| _CompanyCode | _CompanyCode | 3 | |
| _Country | _Country | 2 | |
| _County_2 | _County_2 | 2 | |
| _CustomerAccountAssgmtGroup | _CustomerAccountAssgmtGroup | 1 | |
| _CustomerGroup | _CustomerGroup | 1 | |
| _CustomerPaymentTerms | _CustomerPaymentTerms | 3 | |
| _CustomerPriceGroup | _CustomerPriceGroup | 1 | |
| _DistributionChannel | _DistributionChannel | 2 | |
| _Division | _Division | 2 | |
| _DunningAreaText | _DunningAreaText | 1 | |
| _DunningBlockingReason | _DunningBlockingReason | 1 | |
| _DunningKey | _DunningKey | 1 | |
| _FiscalYear | _FiscalYear | 1 | |
| _IncotermsClassification | _IncotermsClassification | 3 | |
| _IncotermsVersion | _IncotermsVersion | 2 | |
| _InvoiceClearingStatus | _InvoiceClearingStatus | 1 | |
| _OverallBillingStatus | _OverallBillingStatus | 6 | |
| _PayerParty | _PayerParty | 2 | |
| _Region | _Region | 2 | |
| _SalesOrganization | _SalesOrganization | 3 | |
| _SDDocumentCategory | _SDDocumentCategory | 2 | |
| _SDPricingProcedure | _SDPricingProcedure | 1 | |
| _SoldToParty | _SoldToParty | 4 | |
| _TaxDepartureCountry | _TaxDepartureCountry | 2 | |
| _TransactionCurrency | _TransactionCurrency | 5 | |
| _VATRegistrationCountry | _VATRegistrationCountry | 2 | |
| _VATRegistrationOrigin | _VATRegistrationOrigin | 2 | |
| AccountingDocument | AccountingDocument | 4 | |
| AccountingExchangeRate | AccountingExchangeRate | 3 | |
| AccountingPostingStatus | AccountingPostingStatus | 1 | |
| AccountingTransferStatus | AccountingTransferStatus | 4 | |
| AssignmentReference | AssignmentReference | 1 | |
| BillingDocumentCategory | BillingDocumentCategory | 4 | |
| BillingDocumentDate | BillingDocumentDate,DeliveryDate,DocumentDate,InvoiceDate | 19 | |
| BillingDocumentIsCancelled | BillingDocumentIsCancelled | 6 | |
| BillingDocumentIsTemporary | BillingDocumentIsTemporary | 1 | |
| BillingDocumentType | BillingDocumentType | 23 | |
| BillingIssueType | BillingIssueType | 5 | |
| CancelledBillingDocument | CancelledBillingDocument | 7 | |
| CityCode | CityCode | 2 | |
| Country | Country,CustomerCountry | 4 | |
| County | County | 2 | |
| CreatedByUser | CreatedByUser | 6 | |
| CreationDate | CreationDate | 7 | |
| CreationTime | CreationTime | 2 | |
| CustomerAccountAssignmentGroup | CustomerAccountAssignmentGroup | 1 | |
| CustomerGroup | CustomerGroup | 2 | |
| CustomerPriceGroup | CustomerPriceGroup | 1 | |
| CustomerRebateAgreement | CustomerRebateAgreement | 1 | |
| CustomerTaxClassification1 | CustomerTaxClassification1 | 3 | |
| CustomerTaxClassification2 | CustomerTaxClassification2 | 3 | |
| CustomerTaxClassification3 | CustomerTaxClassification3 | 3 | |
| CustomerTaxClassification4 | CustomerTaxClassification4 | 3 | |
| CustomerTaxClassification5 | CustomerTaxClassification5 | 3 | |
| CustomerTaxClassification6 | CustomerTaxClassification6 | 3 | |
| CustomerTaxClassification7 | CustomerTaxClassification7 | 3 | |
| CustomerTaxClassification8 | CustomerTaxClassification8 | 3 | |
| CustomerTaxClassification9 | CustomerTaxClassification9 | 3 | |
| DistributionChannel | DistributionChannel | 8 | |
| Division | Division,OrganizationDivision | 6 | |
| DocumentReferenceID | DocumentReferenceID | 2 | |
| DunningArea | DunningArea | 1 | |
| DunningBlockingReason | DunningBlockingReason | 1 | |
| DunningKey | DunningKey | 1 | |
| ExchangeRateDate | ExchangeRateDate | 1 | |
| FiscalYear | FiscalYear | 6 | |
| FixedValueDate | FixedValueDate | 1 | |
| IncotermsClassification | IncotermsClassification | 4 | |
| IncotermsLocation1 | IncotermsLocation1 | 3 | |
| IncotermsLocation2 | IncotermsLocation2 | 3 | |
| IncotermsTransferLocation | IncotermsTransferLocation | 1 | |
| IncotermsVersion | IncotermsVersion | 2 | |
| InvoiceClearingStatus | InvoiceClearingStatus | 2 | |
| InvoiceListType | InvoiceListType | 1 | |
| IsEUTriangularDeal | IsEUTriangularDeal | 3 | |
| IsIntrastatReportingExcluded | IsIntrastatReportingExcluded | 1 | |
| IsIntrastatReportingRelevant | IsIntrastatReportingRelevant | 1 | |
| IsRelevantForAccrual | IsRelevantForAccrual | 1 | |
| LogicalSystem | LogicalSystem | 1 | |
| ManualInvoiceMaintIsRelevant | ManualInvoiceMaintIsRelevant | 1 | |
| OverallBillingStatus | OverallBillingStatus | 6 | |
| OverallSDProcessStatus | OverallSDProcessStatus | 1 | |
| PartnerCompany | PartnerCompany | 1 | |
| PayerParty | PayerParty | 10 | |
| PaymentMethod | PaymentMethod | 2 | |
| PriceListType | PriceListType | 1 | |
| PricingDocument | PricingDocument,SalesDocumentCondition | 4 | |
| PurchaseOrderByCustomer | PurchaseOrderByCustomer | 5 | |
| Region | Region | 2 | |
| SalesDistrict | SalesDistrict | 1 | |
| SalesOrganization | SalesOrganization | 24 | |
| SDDocumentCategory | SDDocumentCategory,TargetSalesDocumentType | 17 | |
| SDPricingProcedure | SDPricingProcedure | 2 | |
| ShippingCondition | ShippingCondition | 1 | |
| SoldToParty | SoldToParty | 14 | |
| TaxDepartureCountry | TaxDepartureCountry | 3 | |
| TotalNetAmount | TotalNetAmount | 14 | |
| TotalTaxAmount | TaxAmount,TotalTaxAmount | 5 | |
| TransactionCurrency | TransactionCurrency | 13 | |
| VATRegistration | VATRegistration | 3 | |
| VATRegistrationCountry | VATRegistrationCountry | 4 | |
| VATRegistrationOrigin | VATRegistrationOrigin | 3 |
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.representativeKey: 'BillingDocument'
@ObjectModel.compositionRoot: true
@ObjectModel.modelingPattern: #ANALYTICAL_DIMENSION
@ObjectModel.supportedCapabilities: [ #ANALYTICAL_DIMENSION,
#CDS_MODELING_DATA_SOURCE,
#CDS_MODELING_ASSOCIATION_TARGET,
#SQL_DATA_SOURCE,
#EXTRACTION_DATA_SOURCE ]
@Analytics.dataCategory: #DIMENSION
@Analytics: {
dataExtraction: {
enabled: true,
delta.changeDataCapture: {
mapping:[
{
table: 'vbrk', role: #MAIN,
viewElement: ['BillingDocument'],
tableElement: ['vbeln']
}
]
}
}
}
@VDM.viewType: #BASIC
@AccessControl: {
authorizationCheck: #CHECK,
personalData.blocking: #('TRANSACTIONAL_DATA'),
privilegedAssociations: [ '_CreatedByUser', '_DunningAreaText', '_CreditControlAreaText' ]
}
@AbapCatalog.sqlViewName: 'ISDBILLINGDOC'
@AbapCatalog: {
compiler.compareFilter: true,
preserveKey: true
}
@EndUserText.label: 'Billing Document'
@Metadata.allowExtensions: true
@Metadata.ignorePropagatedAnnotations: true
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.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,
@Semantics.currencyCode: true
@ObjectModel.foreignKey.association: '_TransactionCurrency'
TransactionCurrency,
@Semantics.currencyCode: true
@ObjectModel.foreignKey.association: '_StatisticsCurrency'
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
@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.text.association: '_DunningAreaText'
@ObjectModel.foreignKey.association: '_DunningArea'
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.text.association: '_CreditControlAreaText'
@ObjectModel.foreignKey.association: '_CreditControlArea'
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 = 'ICPF' // Intercompany Pro Forma Invoice
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BILLINGDOCUMENTBASIC"
],
"ASSOCIATED":
[
"E_BILLINGDOCUMENT",
"I_ACCOUNTINGDOCUMENT",
"I_ACCOUNTINGPOSTINGSTATUS",
"I_ACCOUNTINGTRANSFERSTATUS",
"I_BILLINGDOCENHANCEDFIELDS",
"I_BILLINGDOCUMENTCATEGORY",
"I_BILLINGDOCUMENTITEM",
"I_BILLINGDOCUMENTPARTNER",
"I_BILLINGDOCUMENTPRCGELMNT",
"I_BILLINGDOCUMENTTYPE",
"I_BILLINGISSUETYPE",
"I_CITYCODE",
"I_COMPANYCODE",
"I_COUNTRY",
"I_COUNTYCODE",
"I_CREDITCONTROLAREA",
"I_CREDITCONTROLAREATEXT",
"I_CURRENCY",
"I_CUSTOMER",
"I_CUSTOMERACCOUNTASSGMTGROUP",
"I_CUSTOMERGROUP",
"I_CUSTOMERPAYMENTTERMS",
"I_CUSTOMERPRICEGROUP",
"I_DISTRIBUTIONCHANNEL",
"I_DIVISION",
"I_DUNNINGAREA",
"I_DUNNINGAREATEXT",
"I_DUNNINGBLOCKINGREASONCODE",
"I_DUNNINGKEY",
"I_EXCHANGERATETYPE",
"I_FISCALYEARFORCOMPANYCODE",
"I_INCOTERMSCLASSIFICATION",
"I_INCOTERMSVERSION",
"I_INVOICECLEARINGSTATUS",
"I_INVOICELISTSTATUS",
"I_LOGICALSYSTEM",
"I_OVERALLBILLINGSTATUS",
"I_OVERALLPRCINCOMPLETIONSTS",
"I_OVERALLSDPROCESSSTATUS",
"I_OVRLITMGENINCOMPLETIONSTS",
"I_PAYMENTMETHOD",
"I_PRICELISTTYPE",
"I_REGION",
"I_REVERSALREASON",
"I_SALESDISTRICT",
"I_SALESORGANIZATION",
"I_SDDOCUMENTCATEGORY",
"I_SHIPPINGCONDITION",
"I_SLSPRICINGPROCEDURE",
"I_TAXINGCOUNTY",
"I_USER",
"I_VATREGISTRATIONORIGIN"
],
"BASE":
[
"I_BILLINGDOCUMENTBASIC"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/