P_RU_GtdFromPOMM34
s
P_RU_GtdFromPOMM34 is a Composite CDS View that provides data about "s" in SAP S/4HANA. It reads from 5 data sources (I_RU_ImprtCstmsDecln, I_RU_ImprtCstmsDecln, I_PurchasingDocumentHistory, I_PurchasingDocumentHistory, I_SupplierInvoiceItemPurOrdRef) and exposes 31 fields. Part of development package GLO_FIN_IS_VAT_RU_SPL.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| I_RU_ImprtCstmsDecln | ImCD | from |
| I_RU_ImprtCstmsDecln | ImCD | union_all |
| I_PurchasingDocumentHistory | PurchaseHistory_GR | inner |
| I_PurchasingDocumentHistory | PurchaseHistory_IR | inner |
| I_SupplierInvoiceItemPurOrdRef | PurchOrderRef | inner |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AbapCatalog.sqlViewName | PRUGTDPOMM34 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (31)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| CompanyCode | I_RU_ImprtCstmsDecln | CompanyCode | Receiver Company Code | |
| Plant | Valuation Area | |||
| PurchaseOrder | I_RU_ImprtCstmsDecln | PurchaseOrder | Purchasing Document | |
| PurchaseOrderItem | I_RU_ImprtCstmsDecln | PurchaseOrderItem | Purchasing Doc. Item | |
| MaterialDocument | I_RU_ImprtCstmsDecln | MaterialDocument | ||
| MaterialDocumentYear | I_RU_ImprtCstmsDecln | MaterialDocumentYear | ||
| SupplierInvoice | ||||
| SupplierInvoiceFiscalYear | G/L Fiscal Year | |||
| PurchaseOrderSouce | ||||
| Supplier | I_RU_ImprtCstmsDecln | Supplier | Supplier | |
| EntryCustomsOffice | I_RU_ImprtCstmsDecln | EntryCustomsOffice | Customs Status | |
| CustomsDeclarationDate | I_RU_ImprtCstmsDecln | CustomsDeclarationDate | Cust. Decl. Date | |
| CustomsDeclaration | I_RU_ImprtCstmsDecln | CustomsDeclaration | Cus. Decl. No. | |
| ImportCustomsDeclnItem | I_RU_ImprtCstmsDecln | ImportCustomsDeclnItem | WBS Element | |
| ImportCustomsDeclnPrintItem | I_RU_ImprtCstmsDecln | ImportCustomsDeclnPrintItem | Customs Dec. Item No | |
| CompanyCode | Receiver Company Code | |||
| Plant | I_PurchasingDocumentHistory | Plant | Valuation Area | |
| PurchaseOrder | I_PurchasingDocumentHistory | PurchasingDocument | Purchasing Document | |
| PurchaseOrderItem | I_PurchasingDocumentHistory | PurchasingDocumentItem | Purchasing Doc. Item | |
| MaterialDocument | I_PurchasingDocumentHistory | PurchasingHistoryDocument | ||
| MaterialDocumentYear | I_PurchasingDocumentHistory | PurchasingHistoryDocumentYear | ||
| SupplierInvoice | I_SupplierInvoiceItemPurOrdRef | SupplierInvoice | ||
| SupplierInvoiceFiscalYear | I_SupplierInvoiceItemPurOrdRef | FiscalYear | G/L Fiscal Year | |
| PurchaseOrderSouce | ||||
| Supplier | I_RU_ImprtCstmsDecln | Supplier | Supplier | |
| EntryCustomsOffice | I_RU_ImprtCstmsDecln | EntryCustomsOffice | Customs Status | |
| CustomsDeclarationDate | I_RU_ImprtCstmsDecln | CustomsDeclarationDate | Cust. Decl. Date | |
| CustomsDeclaration | I_RU_ImprtCstmsDecln | CustomsDeclaration | Cus. Decl. No. | |
| ImportCustomsDeclnItem | I_RU_ImprtCstmsDecln | ImportCustomsDeclnItem | WBS Element | |
| ImportCustomsDeclnPrintItem | I_RU_ImprtCstmsDecln | ImportCustomsDeclnPrintItem | Customs Dec. Item No | |
| ImportCustomsDecln | I_RU_ImprtCstmsDecln | ImportCustomsDecln | Int. CustDecl 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_GtdFromPOMM34.
-- 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: PRUGTDPOMM34
CREATE VIEW P_RU_GtdFromPOMM34 AS
SELECT
ImCD.CompanyCode AS CompanyCode,
cast(' ' as werks_d preserving type) AS Plant,
ImCD.PurchaseOrder AS PurchaseOrder,
ImCD.PurchaseOrderItem AS PurchaseOrderItem,
ImCD.MaterialDocument AS MaterialDocument,
ImCD.MaterialDocumentYear AS MaterialDocumentYear,
cast(' ' as belnr_d preserving type) AS SupplierInvoice,
cast('0000' as gjahr preserving type) AS SupplierInvoiceFiscalYear,
'IMCD' AS PurchaseOrderSouce,
ImCD.Supplier AS Supplier,
ImCD.EntryCustomsOffice AS EntryCustomsOffice,
ImCD.CustomsDeclarationDate AS CustomsDeclarationDate,
ImCD.CustomsDeclaration AS CustomsDeclaration,
ImCD.ImportCustomsDeclnItem AS ImportCustomsDeclnItem,
ImCD.ImportCustomsDeclnPrintItem AS ImportCustomsDeclnPrintItem,
ImCD.ImportCustomsDecln AS ImportCustomsDecln
FROM I_RU_ImprtCstmsDecln AS ImCD
INNER JOIN I_PurchasingDocumentHistory AS PurchaseHistory_GR ON /* join condition not captured in parsed metadata */
INNER JOIN I_PurchasingDocumentHistory AS PurchaseHistory_IR ON /* join condition not captured in parsed metadata */
INNER JOIN I_SupplierInvoiceItemPurOrdRef AS PurchOrderRef ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_RU_ImprtCstmsDecln
;
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