C_BillgDocToBePostedSituation
Billing Doc To Be Posted for Situation
C_BillgDocToBePostedSituation is a Consumption CDS View that provides data about "Billing Doc To Be Posted for Situation" in SAP S/4HANA. It reads from 1 data source (I_BillingDocument) and exposes 22 fields with key field BillingDocument. It has 5 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_BillingDocument | BillingDocument | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_BillingDocumentPartner | _BillingDocumentPartner | $projection.BillingDocument = _BillingDocumentPartner.BillingDocument and _BillingDocumentPartner.PartnerFunction = 'RE' |
| [0..1] | I_BillingIssueTypeText | _BillingIssueTypeText | $projection.BillingIssueType = _BillingIssueTypeText.BillingIssueType and _BillingIssueTypeText.Language = $session.system_language |
| [0..1] | I_BillingDocumentTypeText | _BillingDocumentTypeText | $projection.BillingDocumentType = _BillingDocumentTypeText.BillingDocumentType and _BillingDocumentTypeText.Language = $session.system_language |
| [0..1] | I_SDDocumentCategoryText | _SDDocumentCategoryText | $projection.SDDocumentCategory = _SDDocumentCategoryText.SDDocumentCategory and _SDDocumentCategoryText.Language = $session.system_language |
| [0..1] | I_SalesOrganizationText | _SalesOrganizationText | $projection.SalesOrganization = _SalesOrganizationText.SalesOrganization and _SalesOrganizationText.Language = $session.system_language |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #CONSUMPTION | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| EndUserText.label | Billing Doc To Be Posted for Situation | view |
Fields (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BillingDocument | I_BillingDocument | BillingDocument | SD Document |
| BillingDocumentType | I_BillingDocument | BillingDocumentType | Billing Type | |
| BillingDocumentTypeName | _BillingDocumentTypeText | BillingDocumentTypeName | ||
| SDDocumentCategory | I_BillingDocument | SDDocumentCategory | Document Cat. | |
| SDDocumentCategoryName | _SDDocumentCategoryText | SDDocumentCategoryName | ||
| PayerParty | I_BillingDocument | PayerParty | Payer | |
| SoldToParty | I_BillingDocument | SoldToParty | Sold-to Party | |
| BillToParty | _BillingDocumentPartner | Customer | Sold-to Party | |
| TotalNetAmount | I_BillingDocument | TotalNetAmount | Total Net Amount | |
| TransactionCurrency | I_BillingDocument | TransactionCurrency | Transaction Currency | |
| SalesOrganization | I_BillingDocument | SalesOrganization | Sales Organization | |
| SalesOrganizationName | _SalesOrganizationText | SalesOrganizationName | Sales Organization Description | |
| BillingDocumentDate | I_BillingDocument | BillingDocumentDate | Billing Date | |
| BillingIssueType | I_BillingDocument | BillingIssueType | ||
| BillingIssueTypeName | _BillingIssueTypeText | BillingIssueTypeName | ||
| CompanyCode | I_BillingDocument | CompanyCode | Receiver Company Code | |
| CreatedByUser | I_BillingDocument | CreatedByUser | User Name | |
| _TransactionCurrency | I_BillingDocument | _TransactionCurrency | ||
| _BillingDocumentPartner | _BillingDocumentPartner | |||
| _BillingIssueTypeText | _BillingIssueTypeText | |||
| _BillingDocumentTypeText | _BillingDocumentTypeText | |||
| _SDDocumentCategoryText | _SDDocumentCategoryText |
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_BillgDocToBePostedSituation.
-- 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_BillgDocToBePostedSituation AS
SELECT
BillingDocument.BillingDocument AS BillingDocument,
BillingDocument.BillingDocumentType AS BillingDocumentType,
_BillingDocumentTypeText.BillingDocumentTypeName AS BillingDocumentTypeName,
BillingDocument.SDDocumentCategory AS SDDocumentCategory,
_SDDocumentCategoryText.SDDocumentCategoryName AS SDDocumentCategoryName,
BillingDocument.PayerParty AS PayerParty,
BillingDocument.SoldToParty AS SoldToParty,
_BillingDocumentPartner.Customer AS BillToParty,
BillingDocument.TotalNetAmount AS TotalNetAmount,
BillingDocument.TransactionCurrency AS TransactionCurrency,
BillingDocument.SalesOrganization AS SalesOrganization,
_SalesOrganizationText.SalesOrganizationName AS SalesOrganizationName,
BillingDocument.BillingDocumentDate AS BillingDocumentDate,
BillingDocument.BillingIssueType AS BillingIssueType,
_BillingIssueTypeText.BillingIssueTypeName AS BillingIssueTypeName,
BillingDocument.CompanyCode AS CompanyCode,
BillingDocument.CreatedByUser AS CreatedByUser,
BillingDocument._TransactionCurrency AS _TransactionCurrency
FROM I_BillingDocument AS BillingDocument
LEFT OUTER JOIN I_BillingDocumentPartner AS _BillingDocumentPartner ON BillingDocument = _BillingDocumentPartner.BillingDocument AND _BillingDocumentPartner.PartnerFunction = 'RE' -- association [0..1]
LEFT OUTER JOIN I_BillingIssueTypeText AS _BillingIssueTypeText ON BillingIssueType = _BillingIssueTypeText.BillingIssueType AND _BillingIssueTypeText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_BillingDocumentTypeText AS _BillingDocumentTypeText ON BillingDocumentType = _BillingDocumentTypeText.BillingDocumentType AND _BillingDocumentTypeText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_SDDocumentCategoryText AS _SDDocumentCategoryText ON SDDocumentCategory = _SDDocumentCategoryText.SDDocumentCategory AND _SDDocumentCategoryText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_SalesOrganizationText AS _SalesOrganizationText ON SalesOrganization = _SalesOrganizationText.SalesOrganization AND _SalesOrganizationText.Language = $session.system_language -- 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