P_CADocBPItmLgclInclSmpl
Logical BP Item Including Sample
P_CADocBPItmLgclInclSmpl is a Composite CDS View that provides data about "Logical BP Item Including Sample" in SAP S/4HANA. It reads from 2 data sources (I_CADocumentBPItemLogical, I_CASampleDocBPItemLogical) and exposes 21 fields with key fields CADocumentNumber, CARepetitionItemNumber, CABPItemNumber, CASubItemNumber, CARepetitionItemNumber.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_CADocumentBPItemLogical | BPItem | from |
| I_CASampleDocBPItemLogical | SampleBPItem | union_all |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Logical BP Item Including Sample | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CADocumentNumber | I_CADocumentBPItemLogical | CADocumentNumber | Document Number |
| KEY | CARepetitionItemNumber | I_CADocumentBPItemLogical | CARepetitionItemNumber | Repetition Item |
| KEY | CABPItemNumber | I_CADocumentBPItemLogical | CABPItemNumber | Item |
| KEY | CASubItemNumber | I_CADocumentBPItemLogical | CASubItemNumber | Subitem |
| CANetDueDate | I_CADocumentBPItemLogical | CANetDueDate | Net Due Date | |
| CARepetitionGroup | I_CADocumentBPItemLogical | CARepetitionGroup | Repetition grp | |
| CASubstituteDocumentCategory | I_CADocumentBPItemLogical | CASubstituteDocumentCategory | Doc.Cat. | |
| BusinessPartner | I_CADocumentBPItemLogical | BusinessPartner | Issuing Authority | |
| CAClearingStatus | I_CADocumentBPItemLogical | CAClearingStatus | Clearing Status | |
| CAAmountInTransactionCurrency | I_CADocumentBPItemLogical | CAAmountInTransactionCurrency | Amount | |
| CADocumentNumber | Document Number | |||
| KEY | CARepetitionItemNumber | I_CASampleDocBPItemLogical | CARepetitionItemNumber | Repetition Item |
| KEY | CABPItemNumber | I_CASampleDocBPItemLogical | CABPItemNumber | Item |
| KEY | CASubItemNumber | I_CASampleDocBPItemLogical | CASubItemNumber | Subitem |
| CANetDueDate | I_CASampleDocBPItemLogical | CANetDueDate | Net Due Date | |
| CARepetitionGroup | I_CASampleDocBPItemLogical | CARepetitionGroup | Repetition grp | |
| CASubstituteDocumentCategory | I_CASampleDocBPItemLogical | CASubstituteDocumentCategory | Doc.Cat. | |
| BusinessPartner | I_CASampleDocBPItemLogical | BusinessPartner | Issuing Authority | |
| CAClearingStatus | I_CASampleDocBPItemLogical | CAClearingStatus | Clearing Status | |
| CAAmountInTransactionCurrency | I_CASampleDocBPItemLogical | CAAmountInTransactionCurrency | Amount | |
| TransactionCurrency | I_CASampleDocBPItemLogical | TransactionCurrency | Transaction Currency |
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 P_CADocBPItmLgclInclSmpl.
-- 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 P_CADocBPItmLgclInclSmpl AS
SELECT
BPItem.CADocumentNumber AS CADocumentNumber,
BPItem.CARepetitionItemNumber AS CARepetitionItemNumber,
BPItem.CABPItemNumber AS CABPItemNumber,
BPItem.CASubItemNumber AS CASubItemNumber,
BPItem.CANetDueDate AS CANetDueDate,
BPItem.CARepetitionGroup AS CARepetitionGroup,
BPItem.CASubstituteDocumentCategory AS CASubstituteDocumentCategory,
BPItem.BusinessPartner AS BusinessPartner,
BPItem.CAClearingStatus AS CAClearingStatus,
BPItem.CAAmountInTransactionCurrency AS CAAmountInTransactionCurrency,
SampleBPItem.TransactionCurrency AS TransactionCurrency
FROM I_CADocumentBPItemLogical AS BPItem
-- UNION ALL with additional select branch(es): I_CASampleDocBPItemLogical
;
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