P_RU_ExprtCstmsDeclnItmDrftAct
P_RU_ExprtCstmsDeclnItmDrftAct is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_RU_CustomsDeclarationItem, R_RU_ExprtCstmsDeclnItemDraft) and exposes 25 fields with key fields CustomsDeclaration, RU_ExprtCustomsDeclarationItem, RU_ExprtCustomsDeclarationItem.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_RU_CustomsDeclarationItem | Active | from |
| R_RU_ExprtCstmsDeclnItemDraft | Draft | union |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PRUCCDIDRAC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (25)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CustomsDeclaration | I_RU_CustomsDeclarationItem | CustomsDeclaration | Cus. Decl. No. |
| KEY | RU_ExprtCustomsDeclarationItem | I_RU_CustomsDeclarationItem | CustomsDeclarationItem | CDec Item No. |
| Material | I_RU_CustomsDeclarationItem | Material | Vehicle Model | |
| SalesOrder | I_RU_CustomsDeclarationItem | SalesOrder | SD Document | |
| SalesOrderItem | I_RU_CustomsDeclarationItem | SalesOrderItem | Sales Order Item | |
| RU_ContractDocument | I_RU_CustomsDeclarationItem | RU_ContractDocument | Contract Number | |
| TradingContractItem | I_RU_CustomsDeclarationItem | TradingContractItem | Item Number | |
| RU_TemporaryCustomsDeclaration | I_RU_CustomsDeclarationItem | RU_TemporaryCustomsDeclaration | Reference CDec | |
| RU_TmpCstmsDeclarationItem | I_RU_CustomsDeclarationItem | RU_TmpCstmsDeclarationItem | Ref. CDec Item | |
| CstmsDeclnItemQuantity | I_RU_CustomsDeclarationItem | Quantity | CDec Item Qty | |
| UnitOfMeasure | I_RU_CustomsDeclarationItem | UnitOfMeasure | Unit Protected Qty | |
| IsActiveEntity | ||||
| CustomsDeclaration | Cus. Decl. No. | |||
| KEY | RU_ExprtCustomsDeclarationItem | R_RU_ExprtCstmsDeclnItemDraft | RU_ExprtCustomsDeclarationItem | CDec Item No. |
| Material | R_RU_ExprtCstmsDeclnItemDraft | Material | Vehicle Model | |
| SalesOrder | R_RU_ExprtCstmsDeclnItemDraft | SalesOrder | SD Document | |
| SalesOrderItem | R_RU_ExprtCstmsDeclnItemDraft | SalesOrderItem | Sales Order Item | |
| RU_ContractDocument | R_RU_ExprtCstmsDeclnItemDraft | RU_ContractDocument | Contract Number | |
| TradingContractItem | R_RU_ExprtCstmsDeclnItemDraft | TradingContractItem | Item Number | |
| RU_TemporaryCustomsDeclaration | R_RU_ExprtCstmsDeclnItemDraft | RU_TemporaryCustomsDeclaration | Reference CDec | |
| RU_TmpCstmsDeclarationItem | R_RU_ExprtCstmsDeclnItemDraft | RU_TmpCstmsDeclarationItem | Ref. CDec Item | |
| CstmsDeclnItemQuantity | R_RU_ExprtCstmsDeclnItemDraft | CstmsDeclnItemQuantity | CDec Item Qty | |
| UnitOfMeasure | R_RU_ExprtCstmsDeclnItemDraft | UnitOfMeasure | Unit Protected Qty | |
| HasDraftEntity | ||||
| IsActiveEntity |
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_RU_ExprtCstmsDeclnItmDrftAct.
-- 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: PRUCCDIDRAC
CREATE VIEW P_RU_ExprtCstmsDeclnItmDrftAct AS
SELECT
Active.CustomsDeclaration AS CustomsDeclaration,
Active.CustomsDeclarationItem AS RU_ExprtCustomsDeclarationItem,
Active.Material AS Material,
Active.SalesOrder AS SalesOrder,
Active.SalesOrderItem AS SalesOrderItem,
Active.RU_ContractDocument AS RU_ContractDocument,
Active.TradingContractItem AS TradingContractItem,
Active.RU_TemporaryCustomsDeclaration AS RU_TemporaryCustomsDeclaration,
Active.RU_TmpCstmsDeclarationItem AS RU_TmpCstmsDeclarationItem,
Active.Quantity AS CstmsDeclnItemQuantity,
Active.UnitOfMeasure AS UnitOfMeasure,
'X' AS IsActiveEntity,
' ' AS HasDraftEntity
FROM I_RU_CustomsDeclarationItem AS Active
-- UNION with additional select branch(es): R_RU_ExprtCstmsDeclnItemDraft
;
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