I_PrelimBillingDocument
Preliminary Billing Document
I_PrelimBillingDocument (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Preliminary Billing Document · Sales
I_PrelimBillingDocument is a Basic CDS View (Dimension) that provides data about "Preliminary Billing Document" in SAP S/4HANA. It reads from 1 data source (I_BillingDocumentBasic) and exposes 134 fields with key field PrelimBillingDocument. It has 6 associations to related views.
SAP Help Documentation
| Category | Preliminary Billing Documents |
|---|---|
| Data Category | Dimension |
This CDS view provides the prerequisites for answering questions about preliminary billing documents at header level. Example business questions could include: This CDS view provides the prerequisites for answering the following business questions: What is the net amount of a given preliminary billing document? What is the preceding document of a given preliminary billing document? Who is the (planned) payer of a given preliminary billing document? How many preliminary billing documents were converted to billing documents last year? How many preliminary billing document were created for a particular customer last year?
Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: V_VBRK_FKA (Billing: Authorization for Billing Types) V_VBRK_VKO (Billing: Authorization for Sales Organizations)
Structure
Object types This view relates to the following SAP object types: PreliminaryBillingDocument The key field is PreliminaryBillingDocument (contains the document number). Measures and Attributes Some important attributes are: Preliminary billing document status ( PrelimBillingDocumentStatus ) Net value in document currency ( TotalNetAmount ) Billing date ( BillingDocumentDate ) Billing document type ( BillingDocumentType ) Company code ( CompanyCode ) Sales organization ( SalesOrganization ) Sold-to party ( SoldToParty ) Payer ( PayerParty ) Preliminary billing document currency ( TransactionCurrency )
Data Extraction
Data Extraction Type Full Delta (change data capture)
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Sales |
| Application Component | SD-BIL-PBD |
| Capabilities | Analytical Dimension, Association Target for Defining CDS Entities, Data Source for Defining CDS Entities, Data Source for Data Extraction, Data Source in SQL Select |
| Package | Sales for SAP S/4HANA Cloud Private Edition |
| Description | <p>This CDS view provides the prerequisites for answering questions about preliminary billing documents at header level. Example business questions could include:</p> <p>This CDS view provides the prerequisites for answering the following business questions:</p> <ul> <li><p>What is the net amount of a given preliminary billing document?</p></li> <li><p>What is the preceding document of a given preliminary billing document?</p></li> <li><p>Who is the (planned) payer of a given preliminary billing document?</p></li> <li><p>How many preliminary billing documents were converted to billing documents last year?</p></li> <li><p>How many preliminary billing document were created for a particular customer last year?</p></li> </ul> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_BillingDocumentBasic | BillingDocument | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_PrelimBillingDocumentItem | _Item | $projection.PrelimBillingDocument = _Item.PrelimBillingDocument |
| [1..*] | I_PrelimBillingDocPartner | _Partner | $projection.PrelimBillingDocument = _Partner.PrelimBillingDocument |
| [0..*] | I_PrelimBillingDocPrcgElmnt | _PricingElement | $projection.PrelimBillingDocument = _PricingElement.PrelimBillingDocument |
| [1..1] | I_PrelimBillgDocEnhancedFields | _EnhancedFields | $projection.PrelimBillingDocument = _EnhancedFields.PrelimBillingDocument |
| [0..1] | I_PrelimBillgDocApprovalReason | _PrelimBillgDocApprovalReason | $projection.PrelimBillgDocApprovalReason = _PrelimBillgDocApprovalReason.PrelimBillgDocApprovalReason |
| [0..1] | E_BillingDocument | _Extension | $projection.PrelimBillingDocument = _Extension.BillingDocument |
Annotations (17)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.representativeKey | PrelimBillingDocument | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.sqlViewName | ISDPREBILDOC | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | Preliminary Billing Document | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (134)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PrelimBillingDocument | Preliminary Billing Document | ||
| SDDocumentCategory | SDDocumentCategory | SD Document Category | ||
| BillingDocumentCategory | BillingDocumentCategory | Billing Category | ||
| BillingDocumentType | BillingDocumentType | Billing Type | ||
| CreatedByUser | CreatedByUser | Name of Person Responsible for Creating the Object | ||
| CreationDate | CreationDate | Record Created On | ||
| CreationTime | CreationTime | Time of Change | ||
| LastChangeDate | LastChangeDate | Last Changed On | ||
| LastChangeDateTime | LastChangeDateTime | UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun) | ||
| LogicalSystem | LogicalSystem | Logical System | ||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | Distribution Channel | ||
| Division | Division | Internal Division ID | ||
| BillingDocumentDate | I_BillingDocumentBasic | BillingDocumentDate | Billing Date | |
| BillingDocCombinationCriteria | I_BillingDocumentBasic | BillingDocCombinationCriteria | Combination criteria in the billing document | |
| TotalNetAmount | TotalNetAmount | Net Value in Document Currency | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| StatisticsCurrency | StatisticsCurrency | Statistics Currency | ||
| TotalTaxAmount | TotalTaxAmount | Tax Amount in Document Currency | ||
| CustomerPriceGroup | CustomerPriceGroup | Customer Price Group | ||
| PriceListType | PriceListType | Price List Type | ||
| TaxDepartureCountry | TaxDepartureCountry | Tax Departure Country/Region | ||
| VATRegistration | VATRegistration | VAT Registration Number | ||
| VATRegistrationOrigin | VATRegistrationOrigin | Origin of Sales Tax Number | ||
| VATRegistrationCountry | VATRegistrationCountry | Country/Region of Sales Tax ID Number | ||
| HierarchyTypePricing | HierarchyTypePricing | Hierarchy type for pricing | ||
| CustomerTaxClassification1 | CustomerTaxClassification1 | Tax Classification 1 for Customer | ||
| CustomerTaxClassification2 | CustomerTaxClassification2 | Tax Classification 2 for Customer | ||
| CustomerTaxClassification3 | CustomerTaxClassification3 | Tax Classification 3 for Customer | ||
| CustomerTaxClassification4 | CustomerTaxClassification4 | Tax Classification 4 for Customer | ||
| CustomerTaxClassification5 | CustomerTaxClassification5 | Tax Classification 5 for Customer | ||
| CustomerTaxClassification6 | CustomerTaxClassification6 | Tax Classification 6 for Customer | ||
| CustomerTaxClassification7 | CustomerTaxClassification7 | Tax Classification 7 for Customer | ||
| CustomerTaxClassification8 | CustomerTaxClassification8 | Tax Classification 8 for Customer | ||
| CustomerTaxClassification9 | CustomerTaxClassification9 | Tax Classification 9 for Customer | ||
| IsEUTriangularDeal | IsEUTriangularDeal | Indicator: Triangular Deal Within the EU | ||
| SDPricingProcedure | SDPricingProcedure | Pricing Procedure in Pricing | ||
| ShippingCondition | ShippingCondition | Shipping Conditions | ||
| IncotermsVersion | IncotermsVersion | Incoterms Version | ||
| IncotermsClassification | IncotermsClassification | Incoterms (Part 1) | ||
| IncotermsTransferLocation | IncotermsTransferLocation | Incoterms (Part 2) | ||
| IncotermsLocation1 | IncotermsLocation1 | Incoterms Location 1 | ||
| IncotermsLocation2 | IncotermsLocation2 | Incoterms Location 2 | ||
| PayerParty | PayerParty | Payer | ||
| ContractAccount | ContractAccount | Contract Account Number | ||
| CustomerPaymentTerms | CustomerPaymentTerms | Terms of Payment Key | ||
| PaymentMethod | PaymentMethod | Payment Method | ||
| PaymentReference | PaymentReference | Payment Reference | ||
| FixedValueDate | FixedValueDate | Fixed Value Date | ||
| AdditionalValueDays | AdditionalValueDays | Additional Value Days | ||
| SEPAMandate | SEPAMandate | Unique Reference to Mandate for each Payee | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| CustomerAccountAssignmentGroup | CustomerAccountAssignmentGroup | Account Assignment Group for Customer | ||
| AccountingExchangeRateIsSet | AccountingExchangeRateIsSet | Exchange Rate Setting | ||
| AccountingExchangeRate | AccountingExchangeRate | Exchange Rate for FI Postings | ||
| ExchangeRateDate | ExchangeRateDate | Translation Date | ||
| ExchangeRateType | ExchangeRateType | Exchange Rate Type | ||
| DocumentReferenceID | DocumentReferenceID | Reference Document Number | ||
| AssignmentReference | AssignmentReference | Assignment Reference | ||
| DunningArea | DunningArea | Dunning Area | ||
| DunningBlockingReason | DunningBlockingReason | Set Dunning Block | ||
| DunningKey | DunningKey | Dunning Key | ||
| IsRelevantForAccrual | IsRelevantForAccrual | Is relevant for accrual | ||
| InvoiceListType | InvoiceListType | Invoice List Type | ||
| InvoiceListBillingDate | InvoiceListBillingDate | Billing date for the invoice list | ||
| SoldToParty | SoldToParty | Sold-to Party | ||
| PartnerCompany | PartnerCompany | Company ID of Trading Partner | ||
| PurchaseOrderByCustomer | PurchaseOrderByCustomer | Purchase Order Number | ||
| CustomerGroup | CustomerGroup | Customer Group | ||
| Country | Country | Destination Country/Region | ||
| CityCode | CityCode | IATA: City | ||
| SalesDistrict | SalesDistrict | Sales District | ||
| Region | Region | Region (State, Province, County) | ||
| County | County | Wyoming County | ||
| CreditControlArea | CreditControlArea | Credit Control Area | ||
| CustomerRebateAgreement | CustomerRebateAgreement | Agreement (various conditions grouped together) | ||
| PricingDocument | PricingDocument | Number of the Document Condition | ||
| OverallSDProcessStatus | OverallSDProcessStatus | Overall Processing Status (Header/All Items) | ||
| BillingIssueType | BillingIssueType | Billing Issue Type | ||
| OvrlItmGeneralIncompletionSts | OvrlItmGeneralIncompletionSts | Incompletion Status (All Items) | ||
| OverallPricingIncompletionSts | OverallPricingIncompletionSts | Pricing Incompletion Status (All Items) | ||
| PrelimBillingDocumentStatus | PrelimBillingDocumentStatus | Preliminary Billing Document Status | ||
| BillgProcDocApprovalStatus | I_BillingDocumentBasic | BillgProcDocApprovalStatus | Document Approval Status | |
| PrelimBillgDocApprovalReason | I_BillingDocumentBasic | BillgProcDocApprovalReason | Approval Request Reason ID | |
| _Item | _Item | |||
| _Partner | _Partner | |||
| _PricingElement | _PricingElement | |||
| _SDDocumentCategory | _SDDocumentCategory | |||
| _BillingDocumentCategory | _BillingDocumentCategory | |||
| _BillingDocumentType | _BillingDocumentType | |||
| _CreatedByUser | _CreatedByUser | |||
| _LogicalSystem | _LogicalSystem | |||
| _SalesOrganization | _SalesOrganization | |||
| _DistributionChannel | _DistributionChannel | |||
| _Division | _Division | |||
| _TransactionCurrency | _TransactionCurrency | |||
| _StatisticsCurrency | _StatisticsCurrency | |||
| _CustomerPriceGroup | _CustomerPriceGroup | |||
| _PriceListType | _PriceListType | |||
| _TaxDepartureCountry | _TaxDepartureCountry | |||
| _VATRegistrationOrigin | _VATRegistrationOrigin | |||
| _VATRegistrationCountry | _VATRegistrationCountry | |||
| _SDPricingProcedure | _SDPricingProcedure | |||
| _ShippingCondition | _ShippingCondition | |||
| _IncotermsClassification | _IncotermsClassification | |||
| _IncotermsVersion | _IncotermsVersion | |||
| _PayerParty | _PayerParty | |||
| _CustomerPaymentTerms | _CustomerPaymentTerms | |||
| _PaymentMethod | _PaymentMethod | |||
| _CompanyCode | _CompanyCode | |||
| _CustomerAccountAssgmtGroup | _CustomerAccountAssgmtGroup | |||
| _ExchangeRateType | _ExchangeRateType | |||
| _DunningArea | _DunningArea | |||
| _DunningBlockingReason | _DunningBlockingReason | |||
| _DunningKey | _DunningKey | |||
| _InvoiceListType | _InvoiceListType | |||
| _SoldToParty | _SoldToParty | |||
| _CustomerGroup | _CustomerGroup | |||
| _Country | _Country | |||
| _CityCode | _CityCode | |||
| _SalesDistrict | _SalesDistrict | |||
| _Region | _Region | |||
| _County | _County | |||
| _County_2 | _County_2 | |||
| _CreditControlArea | _CreditControlArea | |||
| _OverallSDProcessStatus | _OverallSDProcessStatus | |||
| _BillingIssueType | _BillingIssueType | |||
| _OvrlItmGeneralIncompletionSts | _OvrlItmGeneralIncompletionSts | |||
| _OverallPricingIncompletionSts | _OverallPricingIncompletionSts | |||
| _PrelimBillingDocumentStatus | _PrelimBillingDocumentStatus | |||
| _BillgProcDocApprovalStatus | _BillgProcDocApprovalStatus | |||
| _PrelimBillgDocApprovalReason | _PrelimBillgDocApprovalReason | |||
| _EnhancedFields | _EnhancedFields | |||
| _CreditControlAreaText | _CreditControlAreaText |
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 I_PrelimBillingDocument.
-- 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 I_PrelimBillingDocument AS
SELECT
cast( BillingDocument as prelim_billing_document preserving type ) AS PrelimBillingDocument,
SDDocumentCategory,
BillingDocumentCategory,
BillingDocumentType,
CreatedByUser,
CreationDate,
CreationTime,
LastChangeDate,
LastChangeDateTime,
LogicalSystem,
SalesOrganization,
DistributionChannel,
Division,
BillingDocument.BillingDocumentDate AS BillingDocumentDate,
BillingDocument.BillingDocCombinationCriteria AS BillingDocCombinationCriteria,
TotalNetAmount,
TransactionCurrency,
StatisticsCurrency,
TotalTaxAmount,
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,
IsRelevantForAccrual,
InvoiceListType,
InvoiceListBillingDate,
SoldToParty,
PartnerCompany,
PurchaseOrderByCustomer,
CustomerGroup,
Country,
CityCode,
SalesDistrict,
Region,
County,
CreditControlArea,
CustomerRebateAgreement,
PricingDocument,
OverallSDProcessStatus,
BillingIssueType,
OvrlItmGeneralIncompletionSts,
OverallPricingIncompletionSts,
PrelimBillingDocumentStatus,
BillingDocument.BillgProcDocApprovalStatus AS BillgProcDocApprovalStatus,
BillingDocument.BillgProcDocApprovalReason AS PrelimBillgDocApprovalReason
FROM I_BillingDocumentBasic AS BillingDocument
LEFT OUTER JOIN I_PrelimBillingDocumentItem AS _Item ON PrelimBillingDocument = _Item.PrelimBillingDocument -- association [0..*]
LEFT OUTER JOIN I_PrelimBillingDocPartner AS _Partner ON PrelimBillingDocument = _Partner.PrelimBillingDocument -- association [1..*]
LEFT OUTER JOIN I_PrelimBillingDocPrcgElmnt AS _PricingElement ON PrelimBillingDocument = _PricingElement.PrelimBillingDocument -- association [0..*]
LEFT OUTER JOIN I_PrelimBillgDocEnhancedFields AS _EnhancedFields ON PrelimBillingDocument = _EnhancedFields.PrelimBillingDocument -- association [1..1]
LEFT OUTER JOIN I_PrelimBillgDocApprovalReason AS _PrelimBillgDocApprovalReason ON PrelimBillgDocApprovalReason = _PrelimBillgDocApprovalReason.PrelimBillgDocApprovalReason -- association [0..1]
LEFT OUTER JOIN E_BillingDocument AS _Extension ON PrelimBillingDocument = _Extension.BillingDocument -- association [0..1]
;
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