C_PrepaymentContractLinked

DDL: C_PREPAYMENTCONTRACTLINKED SQL: CPPMTCON Type: view CONSUMPTION

List of linked Prepayment agreements

C_PrepaymentContractLinked is a Consumption CDS View that provides data about "List of linked Prepayment agreements" in SAP S/4HANA. It reads from 1 data source (I_PrepaymentAgrmtContracts) and exposes 28 fields with key fields PrepaymentAssignedDocumentUUID, PrepaymentAgreementUUID, PrepaymentAgreement. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_PrepaymentAgrmtContracts ppmtagrcontractslinked from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_ACMMntnTradingContractOvw _ContractHeader $projection.TradingContract = _ContractHeader.TradingContractNumber

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName CPPMTCON view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.type #CLIENT_DEPENDENT view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
Metadata.allowExtensions true view
Search.searchable true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
EndUserText.label List of linked Prepayment agreements view

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY PrepaymentAssignedDocumentUUID PrepaymentAssignedDocumentUUID Key
KEY PrepaymentAgreementUUID PrepaymentAgreementUUID Key
KEY PrepaymentAgreement PrepaymentAgreement Renegotiation PPA
Counterparty Counterparty Supplier
CompanyCode I_PrepaymentAgrmtContracts CompanyCode Receiver Company Code
PrepaymentAgreementStatus PrepaymentAgreementStatus Pre Agreement Status
PrepaymentAgrmtLinkStatus PrepaymentAgrmtLinkStatus Link Status
PrepaymentAgrmtPostingStatus PrepaymentAgrmtPostingStatus Pre Posting Status
PrepaymentBarterLinkStatus PrepaymentBarterLinkStatus Prepmt Barter Status
PrepaymentAgreementType I_PrepaymentAgrmtContracts PrepaymentAgreementType Prepay Agreemnt Type
ProcessingStatusDesc ProcessingStatusDesc
LoanPaymentStatusText LoanPaymentStatusText Status
AssignmentStatusText AssignmentStatusText Short Description
PrepaymentAgreementCategory I_PrepaymentAgrmtContracts PrepaymentAgreementCategory Prepayment Category
PrepaymentPayoutPercent PrepaymentPayoutPercent Payout Percentage
PrepaymentAgreementAmount PrepaymentAgreementAmount Pre Agrm Amount
PrepaymentAgreementCurrency PrepaymentAgreementCurrency Currency
PrepaymentAgreementCommodity PrepaymentAgreementCommodity Commodity
PrepaymentAgrmtIsPosted PrepaymentAgrmtIsPosted Pre Agreement Posted
FinalSettlementIndicator FinalSettlementIndicator Final Settlement
TradingContract
PrepaymentAgrmtRefDocItem PrepaymentAgrmtRefDocItem Linking Docu No. Itm
PrepaymentAgrmtRefDocumentType PrepaymentAgrmtRefDocumentType Document Type
_ContractHeader _ContractHeader
PrepaymentIsAssignedViaEconGrp I_PrepaymentAgrmtContracts PrepaymentIsAssignedViaEconGrp
PrepaymentEconomicGroup I_PrepaymentAgrmtContracts PrepaymentEconomicGroup Economic Group
PrepaymentAgreementCatText _PrepaymentAgrmtCatTxt PrepaymentAgrmtDomainText
PrepaymentAgrmtLinkStatusText _LinkStatusText PrepaymentAgrmtDomainText

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_PrepaymentContractLinked.
-- 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: CPPMTCON

CREATE VIEW C_PrepaymentContractLinked AS
SELECT
  PrepaymentAssignedDocumentUUID,
  PrepaymentAgreementUUID,
  PrepaymentAgreement,
  Counterparty,
  ppmtagrcontractslinked.CompanyCode AS CompanyCode,
  PrepaymentAgreementStatus,
  PrepaymentAgrmtLinkStatus,
  PrepaymentAgrmtPostingStatus,
  PrepaymentBarterLinkStatus,
  ppmtagrcontractslinked.PrepaymentAgreementType AS PrepaymentAgreementType,
  ProcessingStatusDesc,
  LoanPaymentStatusText,
  AssignmentStatusText,
  ppmtagrcontractslinked.PrepaymentAgreementCategory AS PrepaymentAgreementCategory,
  PrepaymentPayoutPercent,
  PrepaymentAgreementAmount,
  PrepaymentAgreementCurrency,
  PrepaymentAgreementCommodity,
  PrepaymentAgrmtIsPosted,
  FinalSettlementIndicator,
  right(PrepaymentAgrmtRefDocument, 10) AS TradingContract,
  PrepaymentAgrmtRefDocItem,
  PrepaymentAgrmtRefDocumentType,
  ppmtagrcontractslinked.PrepaymentIsAssignedViaEconGrp AS PrepaymentIsAssignedViaEconGrp,
  ppmtagrcontractslinked.PrepaymentEconomicGroup AS PrepaymentEconomicGroup,
  _PrepaymentAgrmtCatTxt.PrepaymentAgrmtDomainText AS PrepaymentAgreementCatText,
  _LinkStatusText.PrepaymentAgrmtDomainText AS PrepaymentAgrmtLinkStatusText
FROM I_PrepaymentAgrmtContracts AS ppmtagrcontractslinked
LEFT OUTER JOIN I_ACMMntnTradingContractOvw AS _ContractHeader ON TradingContract = _ContractHeader.TradingContractNumber  -- association [1..1]
;