P_RU_ExprtCstmsDeclnItmDrftAct

DDL: P_RU_EXPRTCSTMSDECLNITMDRFTACT SQL: PRUCCDIDRAC Type: view COMPOSITE

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)

SourceAliasJoin Type
I_RU_CustomsDeclarationItem Active from
R_RU_ExprtCstmsDeclnItemDraft Draft union

Annotations (7)

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

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