I_RU_CustomsDeclarationHeader
CCD Header
I_RU_CustomsDeclarationHeader is a Basic CDS View that provides data about "CCD Header" in SAP S/4HANA. It reads from 1 data source (j_3rsccdheader) and exposes 21 fields with key field CustomsDeclaration. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| j_3rsccdheader | j_3rsccdheader | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IRUCCDHEADER | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | CCD Header | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.personalData.blocking | #REQUIRED | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CustomsDeclaration | ccd | Cus. Decl. No. | |
| CompanyCode | bukrs | Value | ||
| CustomsDeclarationType | type | Worklist Type | ||
| RU_ForeignTradeContractID | pod | Process Code | ||
| Currency | waers | Transaction Currency | ||
| CustomsOffice | behoe_p1 | Reg. Cust. Off. | ||
| RU_RegistrationInvoiceDate | date_p2 | CDec Reg. Date | ||
| CustomsDeclarationExtNmbr | extn_p3 | CDec Ext. No. | ||
| ExportConfirmationHeaderDate | expconfdate | Export Confirm. Date | ||
| ShipToParty | kunwe | Ship-to Party | ||
| Customer | kunag | Sold-to Party | ||
| GoodsIssueAllowedDate | issue_date | Issue Date | ||
| GoodsIssueDate | goods_issue_date | Goods Issue Date CCD | ||
| RU_TransportationType | Transportation Type | |||
| RU_TranspDocumentType | Type of Transp. Doc. | |||
| IsBusinessPurposeCompleted | _Customer | IsBusinessPurposeCompleted | Purpose Completed | |
| DataControllerSet | _Customer | DataControllerSet | Data Ctrlr. Set | |
| CreatedByName | created_by | Version Created By | ||
| ChangedByName | changed_by | User Name | ||
| CreatedOnDateTime | created_at | Uploaded On | ||
| ChangedOnDateTime | changed_at | Timestamp |
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 I_RU_CustomsDeclarationHeader.
-- 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: IRUCCDHEADER
CREATE VIEW I_RU_CustomsDeclarationHeader AS
SELECT
ccd AS CustomsDeclaration,
bukrs AS CompanyCode,
type AS CustomsDeclarationType,
pod AS RU_ForeignTradeContractID,
waers AS Currency,
behoe_p1 AS CustomsOffice,
date_p2 AS RU_RegistrationInvoiceDate,
extn_p3 AS CustomsDeclarationExtNmbr,
expconfdate AS ExportConfirmationHeaderDate,
kunwe AS ShipToParty,
kunag AS Customer,
issue_date AS GoodsIssueAllowedDate,
goods_issue_date AS GoodsIssueDate,
cast(transporttype as firu_transportation_type) AS RU_TransportationType,
cast(typtransportdoc as firu_transport_doc_type) AS RU_TranspDocumentType,
_Customer.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted,
_Customer.DataControllerSet AS DataControllerSet,
created_by AS CreatedByName,
changed_by AS ChangedByName,
created_at AS CreatedOnDateTime,
changed_at AS ChangedOnDateTime
FROM j_3rsccdheader
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer -- 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