R_BillingDocumentTP
Billing Document - TP
R_BillingDocumentTP is a Transactional CDS View that provides data about "Billing Document - TP" in SAP S/4HANA. It reads from 1 data source (I_BillingDocument) and exposes 147 fields with key field BillingDocument. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_BillingDocument | BillingDocument | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | E_BillingDocument | _Extension | $projection.BillingDocument = _Extension.BillingDocument |
| [0..*] | R_BillingDocumentItemTP | _Item | |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Billing Document - TP | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.sapObjectNodeType.name | BillingDocument | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view |
Fields (147)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BillingDocument | BillingDocument | ||
| SDDocumentCategory | SDDocumentCategory | |||
| BillingDocumentCategory | BillingDocumentCategory | |||
| BillingDocumentType | BillingDocumentType | |||
| CreatedByUser | CreatedByUser | |||
| CreationDate | CreationDate | |||
| CreationTime | CreationTime | |||
| LastChangeDate | LastChangeDate | |||
| LogicalSystem | LogicalSystem | |||
| SalesOrganization | SalesOrganization | |||
| DistributionChannel | DistributionChannel | |||
| Division | Division | |||
| BillingDocumentDate | BillingDocumentDate | |||
| BillingDocumentIsCancelled | BillingDocumentIsCancelled | |||
| CancelledBillingDocument | CancelledBillingDocument | |||
| BillingDocCombinationCriteria | BillingDocCombinationCriteria | |||
| ManualInvoiceMaintIsRelevant | ManualInvoiceMaintIsRelevant | |||
| NmbrOfPages | NmbrOfPages | |||
| IsIntrastatReportingRelevant | IsIntrastatReportingRelevant | |||
| IsIntrastatReportingExcluded | IsIntrastatReportingExcluded | |||
| BillingDocumentIsTemporary | BillingDocumentIsTemporary | |||
| TotalNetAmount | TotalNetAmount | |||
| TransactionCurrency | TransactionCurrency | |||
| StatisticsCurrency | StatisticsCurrency | |||
| TotalTaxAmount | TotalTaxAmount | |||
| CustomerPriceGroup | CustomerPriceGroup | |||
| PriceListType | PriceListType | |||
| TaxDepartureCountry | TaxDepartureCountry | |||
| VATRegistration | VATRegistration | |||
| VATRegistrationOrigin | VATRegistrationOrigin | |||
| VATRegistrationCountry | VATRegistrationCountry | |||
| HierarchyTypePricing | HierarchyTypePricing | |||
| CustomerTaxClassification1 | CustomerTaxClassification1 | |||
| CustomerTaxClassification2 | CustomerTaxClassification2 | |||
| CustomerTaxClassification3 | CustomerTaxClassification3 | |||
| CustomerTaxClassification4 | CustomerTaxClassification4 | |||
| CustomerTaxClassification5 | CustomerTaxClassification5 | |||
| CustomerTaxClassification6 | CustomerTaxClassification6 | |||
| CustomerTaxClassification7 | CustomerTaxClassification7 | |||
| CustomerTaxClassification8 | CustomerTaxClassification8 | |||
| CustomerTaxClassification9 | CustomerTaxClassification9 | |||
| IsEUTriangularDeal | IsEUTriangularDeal | |||
| SDPricingProcedure | SDPricingProcedure | |||
| ShippingCondition | ShippingCondition | |||
| IncotermsVersion | IncotermsVersion | |||
| IncotermsClassification | IncotermsClassification | |||
| IncotermsTransferLocation | IncotermsTransferLocation | |||
| IncotermsLocation1 | IncotermsLocation1 | |||
| IncotermsLocation2 | IncotermsLocation2 | |||
| PayerParty | PayerParty | |||
| ContractAccount | ContractAccount | |||
| CustomerPaymentTerms | CustomerPaymentTerms | |||
| PaymentMethod | PaymentMethod | |||
| PaymentReference | PaymentReference | |||
| FixedValueDate | FixedValueDate | |||
| AdditionalValueDays | AdditionalValueDays | |||
| SEPAMandate | SEPAMandate | |||
| CompanyCode | CompanyCode | |||
| FiscalYear | FiscalYear | |||
| AccountingDocument | AccountingDocument | |||
| FiscalPeriod | FiscalPeriod | |||
| CustomerAccountAssignmentGroup | CustomerAccountAssignmentGroup | |||
| AccountingExchangeRateIsSet | AccountingExchangeRateIsSet | |||
| AccountingExchangeRate | AccountingExchangeRate | |||
| ExchangeRateDate | ExchangeRateDate | |||
| ExchangeRateType | ExchangeRateType | |||
| DocumentReferenceID | DocumentReferenceID | |||
| AssignmentReference | AssignmentReference | |||
| ReversalReason | ReversalReason | |||
| DunningArea | DunningArea | |||
| DunningBlockingReason | DunningBlockingReason | |||
| DunningKey | DunningKey | |||
| InternalFinancialDocument | InternalFinancialDocument | |||
| IsRelevantForAccrual | IsRelevantForAccrual | |||
| SoldToParty | SoldToParty | |||
| PartnerCompany | PartnerCompany | |||
| PurchaseOrderByCustomer | PurchaseOrderByCustomer | |||
| CustomerGroup | CustomerGroup | |||
| Country | Country | |||
| CityCode | CityCode | |||
| SalesDistrict | SalesDistrict | |||
| Region | Region | |||
| County | County | |||
| CreditControlArea | CreditControlArea | |||
| CustomerRebateAgreement | CustomerRebateAgreement | |||
| PricingDocument | PricingDocument | |||
| OverallSDProcessStatus | OverallSDProcessStatus | |||
| OverallBillingStatus | OverallBillingStatus | |||
| AccountingPostingStatus | AccountingPostingStatus | |||
| AccountingTransferStatus | AccountingTransferStatus | |||
| BillingIssueType | BillingIssueType | |||
| InvoiceListStatus | InvoiceListStatus | |||
| OvrlItmGeneralIncompletionSts | OvrlItmGeneralIncompletionSts | |||
| OverallPricingIncompletionSts | OverallPricingIncompletionSts | |||
| InvoiceClearingStatus | InvoiceClearingStatus | |||
| InvoiceListType | InvoiceListType | |||
| InvoiceListBillingDate | InvoiceListBillingDate | |||
| _AccountingDocument | _AccountingDocument | |||
| _AccountingPostingStatus | _AccountingPostingStatus | |||
| _AccountingTransferStatus | _AccountingTransferStatus | |||
| _BillingDocumentCategory | _BillingDocumentCategory | |||
| _BillingDocumentType | _BillingDocumentType | |||
| _BillingIssueType | _BillingIssueType | |||
| _CancelledBillingDocument | _CancelledBillingDocument | |||
| _CityCode | _CityCode | |||
| _CompanyCode | _CompanyCode | |||
| _Country | _Country | |||
| _County | _County_2 | |||
| _CreatedByUser | _CreatedByUser | |||
| _CreditControlArea | _CreditControlArea | |||
| _CustomerAccountAssgmtGroup | _CustomerAccountAssgmtGroup | |||
| _CustomerGroup | _CustomerGroup | |||
| _CustomerPaymentTerms | _CustomerPaymentTerms | |||
| _CustomerPriceGroup | _CustomerPriceGroup | |||
| _DistributionChannel | _DistributionChannel | |||
| _Division | _Division | |||
| _DunningArea | _DunningArea | |||
| _DunningBlockingReason | _DunningBlockingReason | |||
| _DunningKey | _DunningKey | |||
| _ExchangeRateType | _ExchangeRateType | |||
| _FiscalYear | _FiscalYear | |||
| _IncotermsClassification | _IncotermsClassification | |||
| _IncotermsVersion | _IncotermsVersion | |||
| _InvoiceClearingStatus | _InvoiceClearingStatus | |||
| _InvoiceListStatus | _InvoiceListStatus | |||
| _InvoiceListType | _InvoiceListType | |||
| _Item | _Item | |||
| _LogicalSystem | _LogicalSystem | |||
| _OverallBillingStatus | _OverallBillingStatus | |||
| _OverallPricingIncompletionSts | _OverallPricingIncompletionSts | |||
| _OverallSDProcessStatus | _OverallSDProcessStatus | |||
| _OvrlItmGeneralIncompletionSts | _OvrlItmGeneralIncompletionSts | |||
| _PayerParty | _PayerParty | |||
| _PriceListType | _PriceListType | |||
| _Region | _Region | |||
| _ReversalReason | _ReversalReason | |||
| _SalesDistrict | _SalesDistrict | |||
| _SalesOrganization | _SalesOrganization | |||
| _SDDocumentCategory | _SDDocumentCategory | |||
| _SDPricingProcedure | _SDPricingProcedure | |||
| _ShippingCondition | _ShippingCondition | |||
| _SoldToParty | _SoldToParty | |||
| _StatisticsCurrency | _StatisticsCurrency | |||
| _TaxDepartureCountry | _TaxDepartureCountry | |||
| _TransactionCurrency | _TransactionCurrency | |||
| _VATRegistrationCountry | _VATRegistrationCountry | |||
| _VATRegistrationOrigin | _VATRegistrationOrigin |
@AccessControl: { authorizationCheck: #MANDATORY, personalData.blocking: #('TRANSACTIONAL_DATA') }
@EndUserText.label: 'Billing Document - TP'
@VDM.viewType: #TRANSACTIONAL
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API
@ObjectModel: {
sapObjectNodeType.name: 'BillingDocument',
usageType: {
dataClass: #TRANSACTIONAL,
serviceQuality: #A,
sizeCategory: #L }
}
define root view entity R_BillingDocumentTP
as select from I_BillingDocument as BillingDocument
composition [0..*] of R_BillingDocumentItemTP as _Item
//Extensibility
association [0..1] to E_BillingDocument as _Extension on $projection.BillingDocument = _Extension.BillingDocument
{
key BillingDocument,
SDDocumentCategory,
BillingDocumentCategory,
BillingDocumentType,
CreatedByUser,
CreationDate,
CreationTime,
LastChangeDate,
case tstmp_is_valid(cast(LastChangeDateTime as abap.dec(15,0)))
when 0 then cast( dats_tims_to_tstmp( CreationDate, CreationTime, 'UTC', $session.client, 'NULL' ) as timestampl )
else LastChangeDateTime
end as LastChangeDateTime,
LogicalSystem,
SalesOrganization,
DistributionChannel,
Division,
BillingDocumentDate,
BillingDocumentIsCancelled,
CancelledBillingDocument,
BillingDocCombinationCriteria,
ManualInvoiceMaintIsRelevant,
NmbrOfPages,
IsIntrastatReportingRelevant,
IsIntrastatReportingExcluded,
BillingDocumentIsTemporary,
TotalNetAmount,
TransactionCurrency,
StatisticsCurrency,
TotalTaxAmount,
//_EnhancedFields.TotalGrossAmount, // expose?
CustomerPriceGroup,
PriceListType,
TaxDepartureCountry,
VATRegistration,
VATRegistrationOrigin,
VATRegistrationCountry,
HierarchyTypePricing,
CustomerTaxClassification1,
CustomerTaxClassification2,
CustomerTaxClassification3,
CustomerTaxClassification4,
CustomerTaxClassification5,
CustomerTaxClassification6,
CustomerTaxClassification7,
CustomerTaxClassification8,
CustomerTaxClassification9,
IsEUTriangularDeal,
SDPricingProcedure,
ShippingCondition,
IncotermsVersion,
IncotermsClassification,
IncotermsTransferLocation,
IncotermsLocation1,
IncotermsLocation2,
PayerParty,
ContractAccount,
CustomerPaymentTerms,
// Wrong foreign key association is used in the basic interface view
@ObjectModel.foreignKey.association: null
PaymentMethod,
PaymentReference,
FixedValueDate,
AdditionalValueDays,
SEPAMandate,
CompanyCode,
FiscalYear,
AccountingDocument,
FiscalPeriod,
CustomerAccountAssignmentGroup,
AccountingExchangeRateIsSet,
AccountingExchangeRate, // TBD: Which rate? AccountingExchangeRate or AbsltAccountingExchangeRate & AcctgExchangeRateIsIndrctQtan
ExchangeRateDate,
ExchangeRateType,
DocumentReferenceID,
AssignmentReference,
ReversalReason,
DunningArea,
DunningBlockingReason,
DunningKey,
InternalFinancialDocument,
IsRelevantForAccrual,
SoldToParty,
PartnerCompany,
PurchaseOrderByCustomer,
CustomerGroup,
Country,
CityCode,
SalesDistrict,
Region,
@ObjectModel.foreignKey.association: '_County'
County,
CreditControlArea,
CustomerRebateAgreement,
PricingDocument,
OverallSDProcessStatus,
OverallBillingStatus,
AccountingPostingStatus,
AccountingTransferStatus,
BillingIssueType,
InvoiceListStatus,
OvrlItmGeneralIncompletionSts,
OverallPricingIncompletionSts,
InvoiceClearingStatus,
InvoiceListType,
InvoiceListBillingDate,
/* Associations */
_AccountingDocument,
_AccountingPostingStatus,
_AccountingTransferStatus,
_BillingDocumentCategory,
_BillingDocumentType,
_BillingIssueType,
_CancelledBillingDocument,
_CityCode,
_CompanyCode,
_Country,
_County_2 as _County,
_CreatedByUser,
_CreditControlArea,
//_CreditControlAreaText,
_CustomerAccountAssgmtGroup,
_CustomerGroup,
_CustomerPaymentTerms,
_CustomerPriceGroup,
_DistributionChannel,
_Division,
_DunningArea,
//_DunningAreaText,
_DunningBlockingReason,
_DunningKey,
//_EnhancedFields,
_ExchangeRateType,
_FiscalYear,
_IncotermsClassification,
_IncotermsVersion,
_InvoiceClearingStatus,
_InvoiceListStatus,
_InvoiceListType,
_Item,
_LogicalSystem,
_OverallBillingStatus,
_OverallPricingIncompletionSts,
_OverallSDProcessStatus,
_OvrlItmGeneralIncompletionSts,
//_Partner,
_PayerParty,
_PriceListType,
//_PricingElement,
_Region,
_ReversalReason,
_SalesDistrict,
_SalesOrganization,
_SDDocumentCategory,
_SDPricingProcedure,
_ShippingCondition,
_SoldToParty,
_StatisticsCurrency,
_TaxDepartureCountry,
_TransactionCurrency,
_VATRegistrationCountry,
_VATRegistrationOrigin
}
where
BillingDocumentIsTemporary = ' '
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BILLINGDOCUMENT"
],
"ASSOCIATED":
[
"I_ACCOUNTINGDOCUMENT",
"I_ACCOUNTINGPOSTINGSTATUS",
"I_ACCOUNTINGTRANSFERSTATUS",
"I_BILLINGDOCUMENT",
"I_BILLINGDOCUMENTCATEGORY",
"I_BILLINGDOCUMENTTYPE",
"I_BILLINGISSUETYPE",
"I_CITYCODE",
"I_COMPANYCODE",
"I_COUNTRY",
"I_CREDITCONTROLAREA",
"I_CURRENCY",
"I_CUSTOMER",
"I_CUSTOMERACCOUNTASSGMTGROUP",
"I_CUSTOMERGROUP",
"I_CUSTOMERPAYMENTTERMS",
"I_CUSTOMERPRICEGROUP",
"I_DISTRIBUTIONCHANNEL",
"I_DIVISION",
"I_DUNNINGAREA",
"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_PRICELISTTYPE",
"I_REGION",
"I_REVERSALREASON",
"I_SALESDISTRICT",
"I_SALESORGANIZATION",
"I_SDDOCUMENTCATEGORY",
"I_SHIPPINGCONDITION",
"I_SLSPRICINGPROCEDURE",
"I_TAXINGCOUNTY",
"I_USER",
"I_VATREGISTRATIONORIGIN",
"R_BILLINGDOCUMENTITEMTP"
],
"BASE":
[
"I_BILLINGDOCUMENT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA