I_RU_CustomsDeclarationHeader

DDL: I_RU_CUSTOMSDECLARATIONHEADER SQL: IRUCCDHEADER Type: view BASIC

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)

SourceAliasJoin Type
j_3rsccdheader j_3rsccdheader from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer

Annotations (10)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;