A_SalesContractPartner_2

DDL: A_SALESCONTRACTPARTNER_2 Type: view_entity CONSUMPTION Package: P_SLSCONTR_INTEGRATION_ODATA

Header Partners

A_SalesContractPartner_2 is a Consumption CDS View that provides data about "Header Partners" in SAP S/4HANA. It reads from 1 data source (R_SalesContractPartnerTP) and exposes 11 fields with key fields SalesContract, PartnerFunction, SDDocPartnerSequenceNumber. It is exposed through 1 OData service (API_SALESCONTRACT). Part of development package P_SLSCONTR_INTEGRATION_ODATA.

Data Sources (1)

SourceAliasJoin Type
R_SalesContractPartnerTP R_SalesContractPartnerTP projection

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Header Partners view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
OData.entityType.name SalesContractPartner_Type view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
VDM.viewType #CONSUMPTION view

OData Services (1)

ServiceBindingVersionContractRelease
API_SALESCONTRACT API_SALESCONTRACT V4 C2 C1

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY SalesContract SalesContractPartner SalesContract Sales Document
KEY PartnerFunction
KEY SDDocPartnerSequenceNumber SalesContractPartner SDDocPartnerSequenceNumber
Customer SalesContractPartner Customer Sold-to Party
Supplier SalesContractPartner Supplier Supplier
Personnel SalesContractPartner Personnel Personnel No.
ContactPerson SalesContractPartner ContactPerson Contact Person Key
SalesContractType SalesContractPartner SalesContractType
OrganizationDivision SalesContractPartner OrganizationDivision Org. Division
SalesOrganization SalesContractPartner SalesOrganization Sales Organization
DistributionChannel SalesContractPartner DistributionChannel RefDistCh-Cust/Mat.

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 A_SalesContractPartner_2.
-- 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 A_SalesContractPartner_2 AS
SELECT
  SalesContractPartner.SalesContract AS SalesContract,
  cast(SalesContractPartner.PartnerFunction as parvw_unv preserving type ) AS PartnerFunction,
  SalesContractPartner.SDDocPartnerSequenceNumber AS SDDocPartnerSequenceNumber,
  SalesContractPartner.Customer AS Customer,
  SalesContractPartner.Supplier AS Supplier,
  SalesContractPartner.Personnel AS Personnel,
  SalesContractPartner.ContactPerson AS ContactPerson,
  SalesContractPartner.SalesContractType AS SalesContractType,
  SalesContractPartner.OrganizationDivision AS OrganizationDivision,
  SalesContractPartner.SalesOrganization AS SalesOrganization,
  SalesContractPartner.DistributionChannel AS DistributionChannel
FROM R_SalesContractPartnerTP
;