P_RU_CustomerSupplierDataComp
RU Customer Supplier Data Company
P_RU_CustomerSupplierDataComp is a Consumption CDS View that provides data about "RU Customer Supplier Data Company" in SAP S/4HANA. It reads from 4 data sources (I_RU_CustomerData, I_CustomerCompany, I_RU_SupplierData, I_SupplierCompany) and exposes 29 fields. Part of development package GLO_FIN_IS_RU.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| I_RU_CustomerData | Customer | from |
| I_CustomerCompany | CustomerCompany | inner |
| I_RU_SupplierData | Supplier | union_all |
| I_SupplierCompany | SupplierCompany | inner |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.sqlViewName | PRUCUSTSUPLRDC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (29)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| CompanyCode | I_CustomerCompany | CompanyCode | Receiver Company Code | |
| Partner | ||||
| PartnerShort | ||||
| PartnerType | ||||
| PartnerName | I_RU_CustomerData | CustomerName | Supplier Name | |
| RU_PartnerOrganizationINN | I_RU_CustomerData | RU_PartnerOrganizationINN | BP INN | |
| RU_PartnerOrganizationKPP | I_RU_CustomerData | RU_PartnerOrganizationKPP | BP KPP | |
| RU_PartnerPersonINN | I_RU_CustomerData | RU_PartnerPersonINN | BP Pers. INN | |
| LastName | I_RU_CustomerData | LastName | Last Name | |
| FirstName | I_RU_CustomerData | FirstName | First Name | |
| MiddleName | I_RU_CustomerData | MiddleName | Middle Name | |
| IsOneTimeAccount | I_RU_CustomerData | IsOneTimeAccount | One-time acct | |
| BPIsOrganization | I_RU_CustomerData | BPIsOrganization | ||
| IsNaturalPerson | I_RU_CustomerData | IsNaturalPerson | Natural person | |
| CompanyCode | Receiver Company Code | |||
| Partner | ||||
| PartnerShort | ||||
| PartnerType | ||||
| PartnerName | I_RU_SupplierData | SupplierName | Supplier Name | |
| RU_PartnerOrganizationINN | I_RU_SupplierData | RU_PartnerOrganizationINN | BP INN | |
| RU_PartnerOrganizationKPP | I_RU_SupplierData | RU_PartnerOrganizationKPP | BP KPP | |
| RU_PartnerPersonINN | I_RU_SupplierData | RU_PartnerPersonINN | BP Pers. INN | |
| LastName | I_RU_SupplierData | LastName | Last Name | |
| FirstName | I_RU_SupplierData | FirstName | First Name | |
| MiddleName | I_RU_SupplierData | MiddleName | Middle Name | |
| IsOneTimeAccount | I_RU_SupplierData | IsOneTimeAccount | One-time acct | |
| BPIsOrganization | I_RU_SupplierData | BPIsOrganization | ||
| IsNaturalPerson | I_RU_SupplierData | IsNaturalPerson | Natural person | |
| CustomerCountry |
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_CustomerSupplierDataComp.
-- 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: PRUCUSTSUPLRDC
CREATE VIEW P_RU_CustomerSupplierDataComp AS
SELECT
CustomerCompany.CompanyCode AS CompanyCode,
cast( Customer.Customer as char10 preserving type ) AS Partner,
cast( ltrim(Customer.Customer,'0') as char10 preserving type ) AS PartnerShort,
'C' AS PartnerType,
Customer.CustomerName AS PartnerName,
Customer.RU_PartnerOrganizationINN AS RU_PartnerOrganizationINN,
Customer.RU_PartnerOrganizationKPP AS RU_PartnerOrganizationKPP,
Customer.RU_PartnerPersonINN AS RU_PartnerPersonINN,
Customer.LastName AS LastName,
Customer.FirstName AS FirstName,
Customer.MiddleName AS MiddleName,
Customer.IsOneTimeAccount AS IsOneTimeAccount,
Customer.BPIsOrganization AS BPIsOrganization,
Customer.IsNaturalPerson AS IsNaturalPerson,
'' AS CustomerCountry
FROM I_RU_CustomerData AS Customer
INNER JOIN I_CustomerCompany AS CustomerCompany ON /* join condition not captured in parsed metadata */
INNER JOIN I_SupplierCompany AS SupplierCompany ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_RU_SupplierData
;
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