C_PrelimBillgDocWorklist
Preliminary Billing Document
C_PrelimBillgDocWorklist is a Consumption CDS View that provides data about "Preliminary Billing Document" in SAP S/4HANA. It reads from 1 data source (I_PrelimBillingDocument) and exposes 35 fields with key field PrelimBillingDocument. It has 4 associations to related views. Part of development package ODATA_SD_BIL_PBD_UI_V2.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PrelimBillingDocument | Document | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | C_PrelimBillgDocItemObjPg | _Item | $projection.PrelimBillingDocument = _Item.PrelimBillingDocument |
| [0..1] | C_BillingDocumentUserVH | _CreatedByUser | $projection.CreatedByUser = _CreatedByUser.UserID |
| [0..1] | C_Q2CCustomerQuickView | _SoldToParty | $projection.SoldToParty = _SoldToParty.Customer |
| [0..1] | E_BillingDocument | _Extension | $projection.PrelimBillingDocument = _Extension.BillingDocument |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CSDPREBILDOCTWL | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Preliminary Billing Document | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Search.searchable | true | view |
Fields (35)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PrelimBillingDocument | I_PrelimBillingDocument | PrelimBillingDocument | |
| BillingDocumentType | I_PrelimBillingDocument | BillingDocumentType | Billing Type | |
| SoldToParty | I_PrelimBillingDocument | SoldToParty | Sold-to Party | |
| PrelimBillingDocumentStatus | I_PrelimBillingDocument | PrelimBillingDocumentStatus | ||
| BillgProcDocApprovalStatus | I_PrelimBillingDocument | BillgProcDocApprovalStatus | ||
| BillingDocumentDate | I_PrelimBillingDocument | BillingDocumentDate | Billing Date | |
| TotalNetAmount | I_PrelimBillingDocument | TotalNetAmount | Total Net Amount | |
| CreationDate | I_PrelimBillingDocument | CreationDate | Time Stamp | |
| CreatedByUser | I_PrelimBillingDocument | CreatedByUser | User Name | |
| LastChangeDate | I_PrelimBillingDocument | LastChangeDate | Time Stamp | |
| PayerParty | I_PrelimBillingDocument | PayerParty | Payer | |
| TaxAmount | I_PrelimBillingDocument | TotalTaxAmount | Tax Amount | |
| TotalGrossAmount | ||||
| TransactionCurrency | I_PrelimBillingDocument | TransactionCurrency | Transaction Currency | |
| CompanyCode | I_PrelimBillingDocument | CompanyCode | Receiver Company Code | |
| SalesOrganization | I_PrelimBillingDocument | SalesOrganization | Sales Organization | |
| DocumentReferenceID | I_PrelimBillingDocument | DocumentReferenceID | Reference | |
| PurchaseOrderByCustomer | I_PrelimBillingDocument | PurchaseOrderByCustomer | Purchase Order Number | |
| SoldToPartyName | _SoldToParty | OrganizationBPName1 | Name 1 | |
| SoldToPartyAdditionalName | _SoldToParty | OrganizationBPName2 | Name 2 | |
| PayerPartyName | _PayerParty | OrganizationBPName1 | Name 1 | |
| PayerPartyAdditionalName | _PayerParty | OrganizationBPName2 | Name 2 | |
| BillingDocumentTypeName | ||||
| BillingIssueType | I_PrelimBillingDocument | BillingIssueType | ||
| _BillingDocumentType | I_PrelimBillingDocument | _BillingDocumentType | ||
| _PrelimBillingDocumentStatus | I_PrelimBillingDocument | _PrelimBillingDocumentStatus | ||
| _BillgProcDocApprovalStatus | I_PrelimBillingDocument | _BillgProcDocApprovalStatus | ||
| _CreatedByUser | _CreatedByUser | |||
| _PayerParty | I_PrelimBillingDocument | _PayerParty | ||
| _TransactionCurrency | I_PrelimBillingDocument | _TransactionCurrency | ||
| _CompanyCode | I_PrelimBillingDocument | _CompanyCode | ||
| _SalesOrganization | I_PrelimBillingDocument | _SalesOrganization | ||
| _BillingIssueType | I_PrelimBillingDocument | _BillingIssueType | ||
| _Item | _Item | |||
| _SoldToParty | _SoldToParty |
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_PrelimBillgDocWorklist.
-- 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 C_PrelimBillgDocWorklist AS
SELECT
Document.PrelimBillingDocument AS PrelimBillingDocument,
Document.BillingDocumentType AS BillingDocumentType,
Document.SoldToParty AS SoldToParty,
Document.PrelimBillingDocumentStatus AS PrelimBillingDocumentStatus,
Document.BillgProcDocApprovalStatus AS BillgProcDocApprovalStatus,
Document.BillingDocumentDate AS BillingDocumentDate,
Document.TotalNetAmount AS TotalNetAmount,
Document.CreationDate AS CreationDate,
Document.CreatedByUser AS CreatedByUser,
Document.LastChangeDate AS LastChangeDate,
Document.PayerParty AS PayerParty,
Document.TotalTaxAmount AS TaxAmount,
Document._EnhancedFields.TotalGrossAmount AS TotalGrossAmount,
Document.TransactionCurrency AS TransactionCurrency,
Document.CompanyCode AS CompanyCode,
Document.SalesOrganization AS SalesOrganization,
Document.DocumentReferenceID AS DocumentReferenceID,
Document.PurchaseOrderByCustomer AS PurchaseOrderByCustomer,
_SoldToParty.OrganizationBPName1 AS SoldToPartyName,
_SoldToParty.OrganizationBPName2 AS SoldToPartyAdditionalName,
_PayerParty.OrganizationBPName1 AS PayerPartyName,
_PayerParty.OrganizationBPName2 AS PayerPartyAdditionalName,
Document._BillingDocumentType._Text[1: Language = $session.system_language ].BillingDocumentTypeName AS BillingDocumentTypeName,
Document.BillingIssueType AS BillingIssueType,
Document._BillingDocumentType AS _BillingDocumentType,
Document._PrelimBillingDocumentStatus AS _PrelimBillingDocumentStatus,
Document._BillgProcDocApprovalStatus AS _BillgProcDocApprovalStatus,
Document._PayerParty AS _PayerParty,
Document._TransactionCurrency AS _TransactionCurrency,
Document._CompanyCode AS _CompanyCode,
Document._SalesOrganization AS _SalesOrganization,
Document._BillingIssueType AS _BillingIssueType
FROM I_PrelimBillingDocument AS Document
LEFT OUTER JOIN C_PrelimBillgDocItemObjPg AS _Item ON PrelimBillingDocument = _Item.PrelimBillingDocument -- association [0..*]
LEFT OUTER JOIN C_BillingDocumentUserVH AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID -- association [0..1]
LEFT OUTER JOIN C_Q2CCustomerQuickView AS _SoldToParty ON SoldToParty = _SoldToParty.Customer -- 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