C_PrelimBillgDocItemObjPg
Prebilling Item Object Page
C_PrelimBillgDocItemObjPg is a Consumption CDS View that provides data about "Prebilling Item Object Page" in SAP S/4HANA. It reads from 1 data source (I_PrelimBillingDocumentItem) and exposes 23 fields with key fields PrelimBillingDocument, PrelimBillingDocumentItem. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PrelimBillingDocumentItem | Item | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | C_PrelimBillgDocObjPg | _PrelimBillingDocument | $projection.PrelimBillingDocument = _PrelimBillingDocument.PrelimBillingDocument |
| [1] | E_BillingDocumentItem | _Extension | $projection.PrelimBillingDocument = _Extension.BillingDocument and $projection.PrelimBillingDocumentItem = _Extension.BillingDocumentItem |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPREBILLDOCITOP | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Prebilling Item Object Page | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.compositionRoot | false | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (23)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PrelimBillingDocument | I_PrelimBillingDocumentItem | PrelimBillingDocument | |
| KEY | PrelimBillingDocumentItem | I_PrelimBillingDocumentItem | PrelimBillingDocumentItem | |
| Material | ||||
| BillingQuantity | I_PrelimBillingDocumentItem | BillingQuantity | Invoiced Qty | |
| BillingQuantityUnit | I_PrelimBillingDocumentItem | BillingQuantityUnit | Sales Unit | |
| NetAmount | I_PrelimBillingDocumentItem | NetAmount | Stated Amount | |
| TaxAmount | I_PrelimBillingDocumentItem | TaxAmount | Tax Amt in Rptg Crcy | |
| GrossAmount | I_PrelimBillingDocumentItem | GrossAmount | Gross value | |
| TransactionCurrency | I_PrelimBillingDocumentItem | TransactionCurrency | Transaction Currency | |
| BillingDocumentItemText | I_PrelimBillingDocumentItem | BillingDocumentItemText | Item Descr. | |
| ServiceDocumentType | I_PrelimBillingDocumentItem | ServiceDocumentType | Transaction Type | |
| ServiceDocument | I_PrelimBillingDocumentItem | ServiceDocument | Transaction ID | |
| ServiceDocumentItem | I_PrelimBillingDocumentItem | ServiceDocumentItem | Service Document | |
| BusinessSolutionOrder | I_PrelimBillingDocumentItem | BusinessSolutionOrder | Solution Order | |
| BusinessSolutionOrderItem | I_PrelimBillingDocumentItem | BusinessSolutionOrderItem | Solution Order Item | |
| ProviderContract | I_PrelimBillingDocumentItem | ProviderContract | Contract | |
| ProviderContractItem | I_PrelimBillingDocumentItem | ProviderContractItem | Contract Item | |
| SalesOrganization | I_PrelimBillingDocumentItem | SalesOrganization | Sales Organization | |
| BillingDocumentType | I_PrelimBillingDocumentItem | BillingDocumentType | Billing Type | |
| _PrelimBillingDocument | _PrelimBillingDocument | |||
| _ProviderContract | _ProviderContract | |||
| _ProviderContractItem | _ProviderContractItem | |||
| _MaterialText | _MaterialText |
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 C_PrelimBillgDocItemObjPg.
-- 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.
-- SQL view name: CPREBILLDOCITOP
CREATE VIEW C_PrelimBillgDocItemObjPg AS
SELECT
Item.PrelimBillingDocument AS PrelimBillingDocument,
Item.PrelimBillingDocumentItem AS PrelimBillingDocumentItem,
cast (Item.Material as productnumber preserving type) AS Material,
Item.BillingQuantity AS BillingQuantity,
Item.BillingQuantityUnit AS BillingQuantityUnit,
Item.NetAmount AS NetAmount,
Item.TaxAmount AS TaxAmount,
Item.GrossAmount AS GrossAmount,
Item.TransactionCurrency AS TransactionCurrency,
Item.BillingDocumentItemText AS BillingDocumentItemText,
Item.ServiceDocumentType AS ServiceDocumentType,
Item.ServiceDocument AS ServiceDocument,
Item.ServiceDocumentItem AS ServiceDocumentItem,
Item.BusinessSolutionOrder AS BusinessSolutionOrder,
Item.BusinessSolutionOrderItem AS BusinessSolutionOrderItem,
Item.ProviderContract AS ProviderContract,
Item.ProviderContractItem AS ProviderContractItem,
Item.SalesOrganization AS SalesOrganization,
Item.BillingDocumentType AS BillingDocumentType
FROM I_PrelimBillingDocumentItem AS Item
LEFT OUTER JOIN C_PrelimBillgDocObjPg AS _PrelimBillingDocument ON PrelimBillingDocument = _PrelimBillingDocument.PrelimBillingDocument -- association [1]
LEFT OUTER JOIN E_BillingDocumentItem AS _Extension ON PrelimBillingDocument = _Extension.BillingDocument AND PrelimBillingDocumentItem = _Extension.BillingDocumentItem -- association [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