P_InsurOpenApplSurchrgDiscount
P_InsurOpenApplSurchrgDiscount is a Composite CDS View in SAP S/4HANA. It reads from 4 data sources (P_InsuranceOpenApplicationJrnl, P_InsuranceOpenApplicationJrnl, I_InsurPlcySurchargeDiscBasic, I_InsurPlcySurchargeDiscBasic) and exposes 19 fields with key fields InsurPlcyApplUUID, InsuranceApplication, InsurPlcyJrnlNmbr, InsurPlcyInsurContr, InsurPlcyCoveragePackageID.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| P_InsuranceOpenApplicationJrnl | OpenApplJrnl | inner |
| P_InsuranceOpenApplicationJrnl | OpenApplJrnl | inner |
| I_InsurPlcySurchargeDiscBasic | SurchargeDiscount | from |
| I_InsurPlcySurchargeDiscBasic | SurchargeDiscount | union |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | InsurPlcyApplUUID | P_InsuranceOpenApplicationJrnl | InsurPlcyApplUUID | Policy UUID |
| KEY | InsuranceApplication | P_InsuranceOpenApplicationJrnl | InsuranceApplication | |
| KEY | InsurPlcyJrnlNmbr | I_InsurPlcySurchargeDiscBasic | InsurPlcyJrnlNmbr | Journal Number |
| KEY | InsurPlcyInsurContr | I_InsurPlcySurchargeDiscBasic | InsurPlcyInsurContr | Contract Key |
| KEY | InsurPlcyCoveragePackageID | I_InsurPlcySurchargeDiscBasic | InsurPlcyCoveragePackageID | Cov.Package ID |
| KEY | InsurPlcyCoverageID | I_InsurPlcySurchargeDiscBasic | InsurPlcyCoverageID | Coverage Key |
| KEY | InsurPlcyInsuredObjectID | I_InsurPlcySurchargeDiscBasic | InsurPlcyInsuredObjectID | Ins. Obj. No. |
| KEY | InsurPlcySurchargeDiscID | I_InsurPlcySurchargeDiscBasic | InsurPlcySurchargeDiscID | Sur./Disc. No. |
| KEY | InsurPlcyContrDataDetnJrnlNmbr | P_InsuranceOpenApplicationJrnl | InsurPlcyContrDataDetnJrnlNmbr | |
| InsurPlcyApplUUID | Policy UUID | |||
| KEY | InsuranceApplication | P_InsuranceOpenApplicationJrnl | InsuranceApplication | |
| KEY | InsurPlcyJrnlNmbr | I_InsurPlcySurchargeDiscBasic | InsurPlcyJrnlNmbr | Journal Number |
| KEY | InsurPlcyInsurContr | I_InsurPlcySurchargeDiscBasic | InsurPlcyInsurContr | Contract Key |
| KEY | InsurPlcyCoveragePackageID | I_InsurPlcySurchargeDiscBasic | InsurPlcyCoveragePackageID | Cov.Package ID |
| KEY | InsurPlcyCoverageID | I_InsurPlcySurchargeDiscBasic | InsurPlcyCoverageID | Coverage Key |
| KEY | InsurPlcyInsuredObjectID | I_InsurPlcySurchargeDiscBasic | InsurPlcyInsuredObjectID | Ins. Obj. No. |
| KEY | InsurPlcySurchargeDiscID | I_InsurPlcySurchargeDiscBasic | InsurPlcySurchargeDiscID | Sur./Disc. No. |
| KEY | InsurPlcyContrDataDetnJrnlNmbr | P_InsuranceOpenApplicationJrnl | InsurPlcyContrDataDetnJrnlNmbr | |
| InsurPlcyUUID | P_InsuranceOpenApplicationJrnl | InsurPlcyUUID | Policy UUID |
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_InsurOpenApplSurchrgDiscount.
-- 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.
CREATE VIEW P_InsurOpenApplSurchrgDiscount AS
SELECT
OpenApplJrnl.InsurPlcyApplUUID AS InsurPlcyApplUUID,
OpenApplJrnl.InsuranceApplication AS InsuranceApplication,
SurchargeDiscount.InsurPlcyJrnlNmbr AS InsurPlcyJrnlNmbr,
SurchargeDiscount.InsurPlcyInsurContr AS InsurPlcyInsurContr,
SurchargeDiscount.InsurPlcyCoveragePackageID AS InsurPlcyCoveragePackageID,
SurchargeDiscount.InsurPlcyCoverageID AS InsurPlcyCoverageID,
SurchargeDiscount.InsurPlcyInsuredObjectID AS InsurPlcyInsuredObjectID,
SurchargeDiscount.InsurPlcySurchargeDiscID AS InsurPlcySurchargeDiscID,
OpenApplJrnl.InsurPlcyContrDataDetnJrnlNmbr AS InsurPlcyContrDataDetnJrnlNmbr,
OpenApplJrnl.InsurPlcyUUID AS InsurPlcyUUID
FROM I_InsurPlcySurchargeDiscBasic AS SurchargeDiscount
INNER JOIN P_InsuranceOpenApplicationJrnl AS OpenApplJrnl ON /* join condition not captured in parsed metadata */
-- UNION with additional select branch(es): I_InsurPlcySurchargeDiscBasic
;
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