P_RU_GtdFromImCD

DDL: P_RU_GTDFROMIMCD SQL: PRUGTDIMCD Type: view COMPOSITE Package: GLO_FIN_IS_VAT_RU_SPL

FI RU determine GTD from ImCD

P_RU_GtdFromImCD is a Composite CDS View that provides data about "FI RU determine GTD from ImCD" in SAP S/4HANA. It reads from 2 data sources (I_RU_ImprtCstmsDecln, P_RU_GTDBase1) and exposes 10 fields. Part of development package GLO_FIN_IS_VAT_RU_SPL.

Data Sources (2)

SourceAliasJoin Type
I_RU_ImprtCstmsDecln ImCD inner
P_RU_GTDBase1 Main from

Annotations (6)

NameValueLevelField
VDM.private true view
VDM.viewType #COMPOSITE view
AbapCatalog.sqlViewName PRUGTDIMCD view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (10)

KeyFieldSource TableSource FieldDescription
CompanyCode P_RU_GTDBase1 CompanyCode Receiver Company Code
AccountingDocument P_RU_GTDBase1 AccountingDocument Journal Entry
FiscalYear P_RU_GTDBase1 FiscalYear G/L Fiscal Year
ImportCustomsDecln I_RU_ImprtCstmsDecln ImportCustomsDecln Int. CustDecl No
ImportCustomsDeclnItem I_RU_ImprtCstmsDecln ImportCustomsDeclnItem WBS Element
EntryCustomsOffice I_RU_ImprtCstmsDecln EntryCustomsOffice Customs Status
CustomsDeclarationDate I_RU_ImprtCstmsDecln CustomsDeclarationDate Cust. Decl. Date
CustomsDeclaration I_RU_ImprtCstmsDecln CustomsDeclaration Cus. Decl. No.
Supplier I_RU_ImprtCstmsDecln Supplier Supplier
ImportCustomsDeclnPrintItem I_RU_ImprtCstmsDecln ImportCustomsDeclnPrintItem Customs Dec. Item No

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_GtdFromImCD.
-- 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: PRUGTDIMCD

CREATE VIEW P_RU_GtdFromImCD AS
SELECT
  Main.CompanyCode AS CompanyCode,
  Main.AccountingDocument AS AccountingDocument,
  Main.FiscalYear AS FiscalYear,
  ImCD.ImportCustomsDecln AS ImportCustomsDecln,
  ImCD.ImportCustomsDeclnItem AS ImportCustomsDeclnItem,
  ImCD.EntryCustomsOffice AS EntryCustomsOffice,
  ImCD.CustomsDeclarationDate AS CustomsDeclarationDate,
  ImCD.CustomsDeclaration AS CustomsDeclaration,
  ImCD.Supplier AS Supplier,
  ImCD.ImportCustomsDeclnPrintItem AS ImportCustomsDeclnPrintItem
FROM P_RU_GTDBase1 AS Main
INNER JOIN I_RU_ImprtCstmsDecln AS ImCD ON /* join condition not captured in parsed metadata */
;