P_CndnContr_Eligible_ValueHelp
Search Help for Condition Contracts with Eligible Partners
P_CndnContr_Eligible_ValueHelp is a Basic CDS View that provides data about "Search Help for Condition Contracts with Eligible Partners" in SAP S/4HANA. It reads from 2 data sources (R_ConditionDocument, wcocoi) and exposes 28 fields with key fields num, item_guid. It has 9 associations to related views. Part of development package WCB_CC_PERS.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| R_ConditionDocument | wcocoh | inner |
| wcocoi | wcocoi | from |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | R_CndnContrType | _ContractType | $projection.contract_type = _ContractType.CndnContrType |
| [0..*] | R_CndnContrTypeText | _ContractTypeText | $projection.contract_type = _ContractTypeText.CndnContrType |
| [0..1] | P_WLF_CDS_LFA1_BG | _EligibleSupplier | $projection.eligible_vendor = _EligibleSupplier.vendor_account |
| [0..1] | P_WLF_CDS_KNA1_BG | _EligibleCustomer | $projection.eligible_cust = _EligibleCustomer.customer_account |
| [0..1] | P_WLF_CDS_LFA1_BG | _Supplier | wcocoh.Supplier = _Supplier.vendor_account |
| [0..1] | P_WLF_CDS_KNA1_BG | _Customer | wcocoh.Customer = _Customer.customer_account |
| [0..1] | P_WLF_CDS_LFA1_BG | _PriorSupplier | wcocoh.PriorSupplier = _PriorSupplier.vendor_account |
| [0..1] | P_WLF_CDS_PERNR_BEGRU | _PersonWorkAgreement | wcocoh.PersonWorkAgreement = _PersonWorkAgreement.Pernr |
| [0..1] | I_Plant | _Plant | $projection.eligible_plant = _Plant.Plant |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PWCBCOCOELIVH | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ClientHandling.type | #INHERITED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (28)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | num | wcocoi | num | Total Members |
| KEY | item_guid | wcocoi | item_guid | Push ItemGU |
| list_num | wcocoi | list_num | List Number | |
| ekorg | R_ConditionDocument | PurchasingOrganization | Purchasing Organization | |
| ekgrp | R_ConditionDocument | PurchasingGroup | Purchasing Group | |
| vkorg | R_ConditionDocument | SalesOrganization | Sales Organization | |
| vtweg | R_ConditionDocument | DistributionChannel | RefDistCh-Cust/Mat. | |
| spart | R_ConditionDocument | Division | Internal Division ID | |
| reference | wcocoi | reference | Value | |
| date_from_i | wcocoi | date_from | Validity Start Date | |
| date_to_i | wcocoi | date_to | Validity End Date | |
| ext_num | R_ConditionDocument | ExternalDocumentReferenceID | Ext. Identifier | |
| vend_owner | R_ConditionDocument | Supplier | Supplier | |
| cust_owner | R_ConditionDocument | Customer | Sold-to Party | |
| kolif | R_ConditionDocument | PriorSupplier | Prior Supplier | |
| date_from | R_ConditionDocument | ConditionDocumentValidFromDate | Validity Start Date | |
| date_to | R_ConditionDocument | ConditionDocumentValidToDate | Validity End Date | |
| deact | R_ConditionDocument | CndnDocActivationStatus | ||
| bukrs | R_ConditionDocument | CompanyCode | Receiver Company Code | |
| pers_kostl | R_ConditionDocument | CndnDocWorkerCostCenter | Worker Cost Center | |
| owner_type | _ContractType | CndnContrPartnerCat | Partner Type | |
| no_condition | _ContractType | CndnContrHasNoConditions | ||
| name1_kna1 | _EligibleCustomer | customer_name | Name 1 | |
| name1_lfa1 | _EligibleSupplier | supplier_name | Supplier Name | |
| plant_name | _Plant | PlantName | Plant Name | |
| rebate_type | _ContractType | CndnContrSettlmtType | ||
| kolif_begru | _PriorSupplier | vendor_begru | ||
| _ContractTypeText | _ContractTypeText |
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_CndnContr_Eligible_ValueHelp.
-- 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: PWCBCOCOELIVH
CREATE VIEW P_CndnContr_Eligible_ValueHelp AS
SELECT
wcocoi.num AS num,
wcocoi.item_guid AS item_guid,
wcocoi.list_num AS list_num,
wcocoh.PurchasingOrganization AS ekorg,
wcocoh.PurchasingGroup AS ekgrp,
wcocoh.SalesOrganization AS vkorg,
wcocoh.DistributionChannel AS vtweg,
wcocoh.Division AS spart,
wcocoi.reference AS reference,
wcocoi.date_from AS date_from_i,
wcocoi.date_to AS date_to_i,
wcocoh.ExternalDocumentReferenceID AS ext_num,
wcocoh.Supplier AS vend_owner,
wcocoh.Customer AS cust_owner,
wcocoh.PriorSupplier AS kolif,
wcocoh.ConditionDocumentValidFromDate AS date_from,
wcocoh.ConditionDocumentValidToDate AS date_to,
wcocoh.CndnDocActivationStatus AS deact,
wcocoh.CompanyCode AS bukrs,
wcocoh.CndnDocWorkerCostCenter AS pers_kostl,
_ContractType.CndnContrPartnerCat AS owner_type,
_ContractType.CndnContrHasNoConditions AS no_condition,
_EligibleCustomer.customer_name AS name1_kna1,
_EligibleSupplier.supplier_name AS name1_lfa1,
_Plant.PlantName AS plant_name,
_ContractType.CndnContrSettlmtType AS rebate_type,
_PriorSupplier.vendor_begru AS kolif_begru
FROM wcocoi
INNER JOIN R_ConditionDocument AS wcocoh ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN R_CndnContrType AS _ContractType ON contract_type = _ContractType.CndnContrType -- association [0..1]
LEFT OUTER JOIN R_CndnContrTypeText AS _ContractTypeText ON contract_type = _ContractTypeText.CndnContrType -- association [0..*]
LEFT OUTER JOIN P_WLF_CDS_LFA1_BG AS _EligibleSupplier ON eligible_vendor = _EligibleSupplier.vendor_account -- association [0..1]
LEFT OUTER JOIN P_WLF_CDS_KNA1_BG AS _EligibleCustomer ON eligible_cust = _EligibleCustomer.customer_account -- association [0..1]
LEFT OUTER JOIN P_WLF_CDS_LFA1_BG AS _Supplier ON wcocoh.Supplier = _Supplier.vendor_account -- association [0..1]
LEFT OUTER JOIN P_WLF_CDS_KNA1_BG AS _Customer ON wcocoh.Customer = _Customer.customer_account -- association [0..1]
LEFT OUTER JOIN P_WLF_CDS_LFA1_BG AS _PriorSupplier ON wcocoh.PriorSupplier = _PriorSupplier.vendor_account -- association [0..1]
LEFT OUTER JOIN P_WLF_CDS_PERNR_BEGRU AS _PersonWorkAgreement ON wcocoh.PersonWorkAgreement = _PersonWorkAgreement.Pernr -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON eligible_plant = _Plant.Plant -- association [0..1]
;
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