v_sd_ci_item_party
v_sd_ci_item_party is a CDS View in SAP S/4HANA. It reads from 6 data sources and exposes 17 fields with key fields Document_ID, Item_ID, Partner_Function. It has 2 associations to related views.
Data Sources (6)
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_LANGUAGE | abap.lang |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_PersonWorkAgreement_1 | _PersonWorkAgreement | _PersonWorkAgreement.PersonWorkAgreement = item_partner.pernr |
| [1] | E_SDDocumentPartner | _Extension | $projection.Document_ID = _Extension.SalesDocument and $projection.Item_ID = _Extension.SalesDocumentItem and $projection.Partner_Function = _Extension.PartnerFunction |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | V_SD_ITEM_PARTY | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Document_ID | vbrp | vbeln | SD Sched. Agmt |
| KEY | Item_ID | vbrp | posnr | WBS Element |
| KEY | Partner_Function | tpart | parvw | Task Processor |
| Partner_Function_Description | tpart | vtext | Wgh.Dat.Ty.Txt. | |
| pernrendasParty_ID | ||||
| name1endasParty_Name1 | ||||
| name2endasParty_Name2 | ||||
| Country_Code | adrc | country | Venue: Ctry/Reg | |
| Postal_Code | adrc | post_code1 | Postal Code | |
| City | adrc | city1 | City | |
| Street_Name | adrc | street | Street Code | |
| House_Number | adrc | house_num1 | House Number | |
| Address_Number | adrc | addrnumber | Address Number | |
| Address_Person_Number | adrp | persnumber | Person Number | |
| Address_Type | vbpa | addr_type | Address Type | |
| BillingDocumentType | I_BillingDocument | BillingDocumentType | Billing Type | |
| SalesOrganization | I_BillingDocument | SalesOrganization | Sales Organization |
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 v_sd_ci_item_party.
-- 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.
-- Parameters: P_LANGUAGE : abap.lang
CREATE VIEW v_sd_ci_item_party AS
SELECT
vbrp.vbeln AS Document_ID,
vbrp.posnr AS Item_ID,
partner_function.parvw AS Partner_Function,
partner_function.vtext AS Partner_Function_Description,
case when item_partner.kunnr <> ' ' then item_partner.kunnr when item_partner.parnr <> '0000000000' then item_partner.parnr when item_partner.pernr <> '00000000' then item_partner.pernr end as Party_ID AS pernrendasParty_ID,
case when item_partner.adrnp <> '' then contact_detail.name_text when item_partner.pernr <> '00000000' then _PersonWorkAgreement.PersonFullName else address_detail.name1 end as Party_Name1 AS name1endasParty_Name1,
case when item_partner.adrnp <> '' then contact_detail.name2 else address_detail.name2 end as Party_Name2 AS name2endasParty_Name2,
address_detail.country AS Country_Code,
address_detail.post_code1 AS Postal_Code,
address_detail.city1 AS City,
address_detail.street AS Street_Name,
address_detail.house_num1 AS House_Number,
address_detail.addrnumber AS Address_Number,
contact_detail.persnumber AS Address_Person_Number,
item_partner.addr_type AS Address_Type,
_BillingDocument.BillingDocumentType AS BillingDocumentType,
_BillingDocument.SalesOrganization AS SalesOrganization
FROM vbrp
INNER JOIN I_BillingDocument AS _BillingDocument ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN vbpa AS item_partner ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN tpart AS partner_function ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN adrc AS address_detail ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN adrp AS contact_detail ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PersonWorkAgreement_1 AS _PersonWorkAgreement ON _PersonWorkAgreement.PersonWorkAgreement = item_partner.pernr -- association [0..1]
LEFT OUTER JOIN E_SDDocumentPartner AS _Extension ON Document_ID = _Extension.SalesDocument AND Item_ID = _Extension.SalesDocumentItem AND Partner_Function = _Extension.PartnerFunction -- association [1]
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- 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