C_PartnerFuncBySalesDocTypeVH

DDL: C_PARTNERFUNCBYSALESDOCTYPEVH Type: view CONSUMPTION Package: ODATA_SD_S4H_COMMON

Partner Function By Sales Doc Type

C_PartnerFuncBySalesDocTypeVH is a Consumption CDS View that provides data about "Partner Function By Sales Doc Type" in SAP S/4HANA. It reads from 2 data sources (I_PartFuncByPartDetnProced, I_SalesDocumentType) and exposes 5 fields with key fields SalesDocumentType, PartnerDeterminationProcedure, PartnerFunction. It has 3 associations to related views. Part of development package ODATA_SD_S4H_COMMON.

Data Sources (2)

SourceAliasJoin Type
I_PartFuncByPartDetnProced PartFuncByPartDetnProced inner
I_SalesDocumentType SalesDocumentType from

Associations (3)

CardinalityTargetAliasCondition
[0..1] C_PartnerFunctionUnconverted _PartnerFunction $projection.PartnerFunction = _PartnerFunction.PartnerFunction
[0..1] I_AdvncdRetsMgmtSttgAtClient _ThirdPartySupplier $projection.PartnerFunction = _ThirdPartySupplier.ThirdPtySuplrPartnerFunction
[0..1] I_AdvncdRetsMgmtSttgAtClient _ThirdPartyReturnTo $projection.PartnerFunction = _ThirdPartyReturnTo.ThirdPtyRetToPartnerFunction

Annotations (17)

NameValueLevelField
AbapCatalog.sqlViewName CPRTFNCSDOCTYPVH view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
Search.searchable true view
Consumption.valueHelpDefault.fetchValues #AUTOMATICALLY_WHEN_DISPLAYED view
Consumption.ranked true view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.dataCategory #VALUE_HELP view
ObjectModel.resultSet.sizeCategory #XS view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.representativeKey PartnerFunction view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Partner Function By Sales Doc Type view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY SalesDocumentType I_SalesDocumentType SalesDocumentType Sales Doc. Type
KEY PartnerDeterminationProcedure I_PartFuncByPartDetnProced PartnerDeterminationProcedure Partner Det.Prc
KEY PartnerFunction I_PartFuncByPartDetnProced PartnerFunction Partner Functn
PartnerFunctionName
_PartnerDeterminationProcedure I_PartFuncByPartDetnProced _PartnerDeterminationProcedure

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 C_PartnerFuncBySalesDocTypeVH.
-- 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 C_PartnerFuncBySalesDocTypeVH AS
SELECT
  SalesDocumentType.SalesDocumentType AS SalesDocumentType,
  PartFuncByPartDetnProced.PartnerDeterminationProcedure AS PartnerDeterminationProcedure,
  PartFuncByPartDetnProced.PartnerFunction AS PartnerFunction,
  _PartnerFunction._Text[1: Language=$session.system_language].PartnerFunctionName AS PartnerFunctionName,
  PartFuncByPartDetnProced._PartnerDeterminationProcedure AS _PartnerDeterminationProcedure
FROM I_SalesDocumentType AS SalesDocumentType
INNER JOIN I_PartFuncByPartDetnProced AS PartFuncByPartDetnProced ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN C_PartnerFunctionUnconverted AS _PartnerFunction ON PartnerFunction = _PartnerFunction.PartnerFunction  -- association [0..1]
LEFT OUTER JOIN I_AdvncdRetsMgmtSttgAtClient AS _ThirdPartySupplier ON PartnerFunction = _ThirdPartySupplier.ThirdPtySuplrPartnerFunction  -- association [0..1]
LEFT OUTER JOIN I_AdvncdRetsMgmtSttgAtClient AS _ThirdPartyReturnTo ON PartnerFunction = _ThirdPartyReturnTo.ThirdPtyRetToPartnerFunction  -- association [0..1]
;