R_PrelimBillingDocumentTP
Preliminary Billing Document - TP
R_PrelimBillingDocumentTP is a Transactional CDS View that provides data about "Preliminary Billing Document - TP" in SAP S/4HANA. It reads from 1 data source (I_PrelimBillingDocument) and exposes 134 fields with key field PrelimBillingDocument. It has 5 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PrelimBillingDocument | I_PrelimBillingDocument | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | P_MyPreliminaryBillingDocument | _MyPrelimBillingDocument | $projection.PrelimBillingDocument = _MyPrelimBillingDocument.PrelimBillingDocument |
| [0..1] | E_BillingDocument | _Extension | $projection.PrelimBillingDocument = _Extension.BillingDocument |
| [0..*] | R_PrelimBillingDocumentItemTP | _Item | |
| [0..*] | R_PrelimBillgDocTextTP | _Text | |
| [0..*] | R_PrelimBillgDocPartnerTP | _Partner | |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.sapObjectNodeType.name | PreliminaryBillingDocument | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| EndUserText.label | Preliminary Billing Document - TP | view |
Fields (134)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PrelimBillingDocument | PrelimBillingDocument | ||
| SDDocumentCategory | SDDocumentCategory | Document Cat. | ||
| BillingDocumentCategory | BillingDocumentCategory | BillingCategory | ||
| BillingDocumentType | BillingDocumentType | Billing Type | ||
| CreatedByUser | CreatedByUser | User Name | ||
| CreationDate | CreationDate | Time Stamp | ||
| CreationTime | CreationTime | Time of Change | ||
| LastChangeDate | LastChangeDate | Time Stamp | ||
| LastChangeDateTime | LastChangeDateTime | Timestamp | ||
| LogicalSystem | LogicalSystem | Logical System | ||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| Division | Division | Internal Division ID | ||
| BillingDocumentDate | BillingDocumentDate | Billing Date | ||
| BillingDocCombinationCriteria | BillingDocCombinationCriteria | |||
| TotalTaxAmount | TotalTaxAmount | Tax Amount | ||
| TotalNetAmount | TotalNetAmount | Total Net Amount | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| StatisticsCurrency | StatisticsCurrency | |||
| CustomerPriceGroup | CustomerPriceGroup | CustPrice Group | ||
| PriceListType | PriceListType | Price List Tp. | ||
| TaxDepartureCountry | TaxDepartureCountry | Tx Dep Ctry/Reg | ||
| VATRegistration | VATRegistration | VAT Registration No. | ||
| VATRegistrationOrigin | VATRegistrationOrigin | OriginSlsTxNo. | ||
| VATRegistrationCountry | VATRegistrationCountry | CtryRgnSlsTxNo. | ||
| HierarchyTypePricing | HierarchyTypePricing | |||
| CustomerTaxClassification1 | CustomerTaxClassification1 | |||
| CustomerTaxClassification2 | CustomerTaxClassification2 | |||
| CustomerTaxClassification3 | CustomerTaxClassification3 | |||
| CustomerTaxClassification4 | CustomerTaxClassification4 | |||
| CustomerTaxClassification5 | CustomerTaxClassification5 | |||
| CustomerTaxClassification6 | CustomerTaxClassification6 | |||
| CustomerTaxClassification7 | CustomerTaxClassification7 | |||
| CustomerTaxClassification8 | CustomerTaxClassification8 | |||
| CustomerTaxClassification9 | CustomerTaxClassification9 | |||
| IsEUTriangularDeal | IsEUTriangularDeal | Is EU Triangular Deal | ||
| SDPricingProcedure | SDPricingProcedure | Pric. Procedure | ||
| ShippingCondition | ShippingCondition | Shipping Conditions | ||
| IncotermsVersion | IncotermsVersion | Inco. Version | ||
| IncotermsClassification | IncotermsClassification | Incoterms | ||
| IncotermsTransferLocation | IncotermsTransferLocation | Incoterms 2 | ||
| IncotermsLocation1 | IncotermsLocation1 | Inco. Location1 | ||
| IncotermsLocation2 | IncotermsLocation2 | Inco. Location2 | ||
| PayerParty | PayerParty | Payer | ||
| ContractAccount | ContractAccount | Contract Acct | ||
| CustomerPaymentTerms | CustomerPaymentTerms | Pyt Terms | ||
| PaymentMethod | PaymentMethod | Pymt Meth. | ||
| PaymentReference | PaymentReference | Payment Reference | ||
| FixedValueDate | FixedValueDate | Fixed Val. Date | ||
| AdditionalValueDays | AdditionalValueDays | Add. Value Days | ||
| SEPAMandate | SEPAMandate | SEPA Mandate | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| CustomerAccountAssignmentGroup | CustomerAccountAssignmentGroup | AccAssmtGrpCust | ||
| AccountingExchangeRateIsSet | AccountingExchangeRateIsSet | |||
| AccountingExchangeRate | AccountingExchangeRate | Exch.Rate Acct. | ||
| ExchangeRateDate | ExchangeRateDate | Translatn Date | ||
| ExchangeRateType | ExchangeRateType | Exch. Rate Type | ||
| DocumentReferenceID | DocumentReferenceID | Reference | ||
| AssignmentReference | AssignmentReference | Assignment Reference | ||
| DunningArea | DunningArea | Dunning Area | ||
| DunningBlockingReason | DunningBlockingReason | Set Dunning Block | ||
| DunningKey | DunningKey | Dunning Key | ||
| InvoiceListType | InvoiceListType | |||
| InvoiceListBillingDate | InvoiceListBillingDate | |||
| SoldToParty | SoldToParty | Sold-to Party | ||
| PartnerCompany | PartnerCompany | Trading Partner | ||
| PurchaseOrderByCustomer | PurchaseOrderByCustomer | Purchase Order Number | ||
| CustomerGroup | CustomerGroup | Customer Group | ||
| Country | Country | Venue: Ctry/Reg | ||
| CityCode | CityCode | IATA: City | ||
| SalesDistrict | SalesDistrict | Sales District | ||
| Region | Region | Venue Region | ||
| County | County | Wyoming County | ||
| CreditControlArea | CreditControlArea | Credit Control Area | ||
| CustomerRebateAgreement | CustomerRebateAgreement | |||
| PricingDocument | PricingDocument | Document Condition | ||
| OverallSDProcessStatus | OverallSDProcessStatus | |||
| BillingIssueType | BillingIssueType | |||
| OvrlItmGeneralIncompletionSts | OvrlItmGeneralIncompletionSts | |||
| OverallPricingIncompletionSts | OverallPricingIncompletionSts | |||
| PrelimBillingDocumentStatus | PrelimBillingDocumentStatus | |||
| PrelimBillgDocApprovalStatus | BillgProcDocApprovalStatus | |||
| PrelimBillgDocApprovalReason | PrelimBillgDocApprovalReason | |||
| IsRelevantForAccrual | IsRelevantForAccrual | Accruals | ||
| PBDIsInMyResponsibility | _MyPrelimBillingDocument | PBDIsInMyResponsibility | ||
| _Item | _Item | |||
| _Text | _Text | |||
| _Partner | _Partner | |||
| _PrelimBillgDocApprovalStatus | _BillgProcDocApprovalStatus | |||
| _BillingDocumentCategory | _BillingDocumentCategory | |||
| _BillingDocumentType | _BillingDocumentType | |||
| _BillingIssueType | _BillingIssueType | |||
| _CityCode | _CityCode | |||
| _CompanyCode | _CompanyCode | |||
| _Country | _Country | |||
| _County_2 | _County_2 | |||
| _CreatedByUser | _CreatedByUser | |||
| _CreditControlArea | _CreditControlArea | |||
| _CreditControlAreaText | _CreditControlAreaText | |||
| _CustomerAccountAssgmtGroup | _CustomerAccountAssgmtGroup | |||
| _CustomerGroup | _CustomerGroup | |||
| _CustomerPaymentTerms | _CustomerPaymentTerms | |||
| _CustomerPriceGroup | _CustomerPriceGroup | |||
| _DistributionChannel | _DistributionChannel | |||
| _Division | _Division | |||
| _DunningArea | _DunningArea | |||
| _DunningBlockingReason | _DunningBlockingReason | |||
| _DunningKey | _DunningKey | |||
| _EnhancedFields | _EnhancedFields | |||
| _ExchangeRateType | _ExchangeRateType | |||
| _IncotermsClassification | _IncotermsClassification | |||
| _IncotermsVersion | _IncotermsVersion | |||
| _InvoiceListType | _InvoiceListType | |||
| _LogicalSystem | _LogicalSystem | |||
| _OverallPricingIncompletionSts | _OverallPricingIncompletionSts | |||
| _OverallSDProcessStatus | _OverallSDProcessStatus | |||
| _OvrlItmGeneralIncompletionSts | _OvrlItmGeneralIncompletionSts | |||
| _PayerParty | _PayerParty | |||
| _PaymentMethod | _PaymentMethod | |||
| _PrelimBillgDocApprovalReason | _PrelimBillgDocApprovalReason | |||
| _PrelimBillingDocumentStatus | _PrelimBillingDocumentStatus | |||
| _PriceListType | _PriceListType | |||
| _Region | _Region | |||
| _SalesDistrict | _SalesDistrict | |||
| _SalesOrganization | _SalesOrganization | |||
| _SDDocumentCategory | _SDDocumentCategory | |||
| _SDPricingProcedure | _SDPricingProcedure | |||
| _ShippingCondition | _ShippingCondition | |||
| _SoldToParty | _SoldToParty | |||
| _StatisticsCurrency | _StatisticsCurrency | |||
| _TaxDepartureCountry | _TaxDepartureCountry | |||
| _TransactionCurrency | _TransactionCurrency | |||
| _VATRegistrationCountry | _VATRegistrationCountry | |||
| _VATRegistrationOrigin | _VATRegistrationOrigin |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view R_PrelimBillingDocumentTP.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
CREATE VIEW R_PrelimBillingDocumentTP AS
SELECT
PrelimBillingDocument,
SDDocumentCategory,
BillingDocumentCategory,
BillingDocumentType,
CreatedByUser,
CreationDate,
CreationTime,
LastChangeDate,
LastChangeDateTime,
LogicalSystem,
SalesOrganization,
DistributionChannel,
Division,
BillingDocumentDate,
BillingDocCombinationCriteria,
TotalTaxAmount,
TotalNetAmount,
TransactionCurrency,
StatisticsCurrency,
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,
PaymentMethod,
PaymentReference,
FixedValueDate,
AdditionalValueDays,
SEPAMandate,
CompanyCode,
CustomerAccountAssignmentGroup,
AccountingExchangeRateIsSet,
AccountingExchangeRate,
ExchangeRateDate,
ExchangeRateType,
DocumentReferenceID,
AssignmentReference,
DunningArea,
DunningBlockingReason,
DunningKey,
InvoiceListType,
InvoiceListBillingDate,
SoldToParty,
PartnerCompany,
PurchaseOrderByCustomer,
CustomerGroup,
Country,
CityCode,
SalesDistrict,
Region,
County,
CreditControlArea,
CustomerRebateAgreement,
PricingDocument,
OverallSDProcessStatus,
BillingIssueType,
OvrlItmGeneralIncompletionSts,
OverallPricingIncompletionSts,
PrelimBillingDocumentStatus,
BillgProcDocApprovalStatus AS PrelimBillgDocApprovalStatus,
PrelimBillgDocApprovalReason,
IsRelevantForAccrual,
_MyPrelimBillingDocument.PBDIsInMyResponsibility AS PBDIsInMyResponsibility
FROM I_PrelimBillingDocument
LEFT OUTER JOIN P_MyPreliminaryBillingDocument AS _MyPrelimBillingDocument ON PrelimBillingDocument = _MyPrelimBillingDocument.PrelimBillingDocument -- association [0..1]
LEFT OUTER JOIN E_BillingDocument AS _Extension ON PrelimBillingDocument = _Extension.BillingDocument -- association [0..1]
LEFT OUTER JOIN R_PrelimBillingDocumentItemTP AS _Item ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_PrelimBillgDocTextTP AS _Text ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_PrelimBillgDocPartnerTP AS _Partner ON /* condition not available in parsed metadata */ -- association [0..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA