C_PrepaymentAgreementTP

DDL: C_PREPAYMENTAGREEMENTTP SQL: CPPMGAGRMTTP Type: view CONSUMPTION

Prepayment Agreement

C_PrepaymentAgreementTP is a Consumption CDS View that provides data about "Prepayment Agreement" in SAP S/4HANA. It reads from 1 data source (I_PrepaymentAgreementTP) and exposes 145 fields with key field PrepaymentAgreementUUID. It has 46 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_PrepaymentAgreementTP PrepaymentAgmnt from

Associations (46)

CardinalityTargetAliasCondition
[0..*] C_PrepaymentAgrmtIntrstRatesTP _InterestRates $projection.PrepaymentAgreementUUID = _InterestRates.PrepaymentAgreementUUID --Surcharge
[0..*] C_PrepaymentAgrmtSurchargeTP _Surcharge $projection.PrepaymentAgreementUUID = _Surcharge.PrepaymentAgreementUUID --Distribution
[0..*] C_PrepaymentAgrmtDistrTP _Distribution $projection.PrepaymentAgreementUUID = _Distribution.PrepaymentAgreementUUID --Reference
[0..*] C_PrepaymentAgrmtCommlRefTP _Reference $projection.PrepaymentAgreementUUID = _Reference.PrepaymentAgreementUUID --Harvest
[0..*] C_PrepaymentAgrmtHarvestTP _PastHarvest $projection.PrepaymentAgreementUUID = _PastHarvest.PrepaymentAgreementUUID --Collaterals
[0..*] C_PrepaymentAgrmtCollateralTP _Collateral $projection.PrepaymentAgreementUUID = _Collateral.PrepaymentAgreementUUID --Attachments
[0..*] C_PrepaymentAgrmtDocumentsTP _Documents $projection.PrepaymentAgreementUUID = _Documents.PrepaymentAgreementUUID --ProductionHistory
[0..*] C_PrepaymentHistoryProdTP _ProdHistory $projection.PrepaymentAgreementUUID = _ProdHistory.PrepaymentAgreementUUID --SalesHistory
[0..*] C_PrepaymentHistorySalesTP _SalesHistory $projection.PrepaymentAgreementUUID = _SalesHistory.PrepaymentAgreementUUID --Plants
[0..*] C_PrepaymentAgrmtPlantsTP _Plant $projection.PrepaymentAgreementUUID = _Plant.PrepaymentAgreementUUID --Notes
[0..*] C_PrepaymentAgrmtNotesTP _Notes $projection.PrepaymentAgreementUUID = _Notes.PrepaymentAgreementUUID --Renegotiation
[0..*] C_PrepaymentRenegttnHdrTP _Renegttn $projection.PrepaymentAgreementUUID = _Renegttn.PrepaymentAgreementUUID --Cash Settlement
[0..*] C_PrepaymentAgrmtCshSettlmt _CashSettlement $projection.PrepaymentAgreementUUID = _CashSettlement.PrepaymentAgreementUUID -- Prepayment Barter Document
[0..*] C_PrepaymentAssignedDocumentTP _BarterDoc $projection.PrepaymentAgreement = _BarterDoc.PrepaymentAgreement and _BarterDoc.DocNumber <> '' and _BarterDoc.PrepaymentAgrmtLinkType = 'BR' -- Prepayment Linked Document
[0..*] C_PrepaymentLinkedDocumentTP _LinkedDoc $projection.PrepaymentAgreement = _LinkedDoc.PrepaymentAgreement and _LinkedDoc.PrepaymentAgreement <> '' and _LinkedDoc.DocNumber <> '' and _LinkedDoc.PrepaymentAgrmtLinkType = 'LN' -- Prepayment settlement Document
[0..*] C_PrepaymentPostedDocumentsTP _PostedDoc $projection.PrepaymentAgreement = _PostedDoc.PrepaymentAgreement and _PostedDoc.PrepaymentAgreement <> '' --UnitOfMeasureText
[0..*] I_UnitOfMeasureText _UoMText $projection.PrepaymentCreditTotalAreaUoM = _UoMText.UnitOfMeasure --CurrencyCode Text
[0..*] I_CurrencyText _CurrencyText $projection.PrepaymentAgreementCurrency = _CurrencyText.Currency --Commodity Type
[0..*] I_CmmdtyText _CmmdtyType $projection.PrepaymentAgreementCommodity = _CmmdtyType.Commodity --Company code
[0..1] I_CompanyCode _CoCode $projection.CompanyCode = _CoCode.CompanyCode --Business partner
[0..1] I_BusinessPartner _BPText $projection.Counterparty = _BPText.BusinessPartner --Business partner category text
[0..1] I_BusPartCategoryText _BusPartCatTxt $projection.PrepaymentAgrmtBPType = _BusPartCatTxt.BusinessPartnerCategory and _BusPartCatTxt.Language = $session.system_language --Purchasing group text
[0..1] C_PurchasingGroup _PurgGrpTxt _PurgGrpTxt.PurchasingGroup = $projection.PurchasingGroup --Purchasing organization text
[0..1] C_PurchasingOrganizationVHTemp _PurgOrgTxt $projection.PurchasingOrganization = _PurgOrgTxt.PurchasingOrganization --Sales organization text
[0..1] I_SalesOrganizationText _SlsOrgTxt $projection.SalesOrganization = _SlsOrgTxt.SalesOrganization and _SlsOrgTxt.Language = $session.system_language --Distribution channel text
[0..1] I_DistributionChannelText _DistrChnlTxt $projection.DistributionChannel = _DistrChnlTxt.DistributionChannel and _DistrChnlTxt.Language = $session.system_language --Division text
[0..1] I_DivisionText _DivnTxt $projection.Division = _DivnTxt.Division and _DivnTxt.Language = $session.system_language -- Country text
[0..1] I_CountryText _CountryText $projection.CountryCode = _CountryText.Country and _CountryText.Language = $session.system_language -- Region text
[0..1] I_RegionText _RegionText $projection.CompanyRegion = _RegionText.Region and _RegionText.Language = $session.system_language and $projection.CountryCode = _RegionText.Country -- Economic Group Text
[0..1] I_PrepaymentEconomicGrpTxt _EconomicGroupText $projection.PrepaymentEconomicGroup = _EconomicGroupText.PrepaymentEconomicGroup and $projection.Counterparty = _EconomicGroupText.Counterparty and _EconomicGroupText.Language = $session.system_language -- Crop Season Text
[0..1] I_PrepaymentCropSeasonCalcTxt _CropSeasonText $projection.PrepaymentAgrmtCropSeason = _CropSeasonText.PrepaymentAgrmtCropSeason and $projection.Counterparty = _CropSeasonText.Counterparty and $projection.PrepaymentEconomicGroup = _CropSeasonText.PrepaymentEconomicGroup and _CropSeasonText.Language = $session.system_language --Prepayment system status
[0..1] I_SystemStatusText _OrderStatusText $projection.PrepaymentAgreementStatus = _OrderStatusText.SystemStatus and _OrderStatusText.Language = $session.system_language --Prepayment system status
[0..1] I_SystemStatusText _PostingStatusText $projection.PrepaymentAgrmtPostingStatus = _PostingStatusText.SystemStatus and _PostingStatusText.Language = $session.system_language --Prepayment user text
[0..1] I_PrepaymentAgrmtUserNameText _UserText $projection.CreatedByUser = _UserText.UserName --Prepatment agreement type text
[0..*] I_PrepaymentAgreementTypeVH _PrepaymentAgrmtTxt $projection.PrepaymentAgreementType = _PrepaymentAgrmtTxt.PrepaymentAgreementType --Prepayment agreement category text
[0..1] I_PrepaymentAgrmtCategoryText _PrepaymentAgrmtCatTxt $projection.PrepaymentAgreementCategory = _PrepaymentAgrmtCatTxt.PrepaymentAgrmtDomainCode and _PrepaymentAgrmtCatTxt.Language = $session.system_language --Prepayment start interest rate type text
[0..1] I_PrepaymentStrtIntrstTypeTxt _StartIntrstTypeText $projection.PrepaymentStartIntrstDateType = _StartIntrstTypeText.PrepaymentAgrmtDomainCode and _StartIntrstTypeText.Language = $session.system_language --Prepayement stop interest rate type text
[0..1] I_PrepaymentStopIntrstTypeTxt _StopIntrstTypeText $projection.PrepaymentStopIntrstDateType = _StopIntrstTypeText.PrepaymentAgrmtDomainCode and _StopIntrstTypeText.Language = $session.system_language --
[0..1] I_PrepaymentAgrmtLinkStsText _LinkStatusText $projection.PrepaymentAgrmtLinkStatus = _LinkStatusText.PrepaymentAgrmtDomainCode and _LinkStatusText.Language = $session.system_language --
[0..1] I_PrepaymentAgrmtLinkStsText _BarterLinkStatusText $projection.PrepaymentBarterLinkStatus = _BarterLinkStatusText.PrepaymentAgrmtDomainCode and _BarterLinkStatusText.Language = $session.system_language --
[0..1] I_PrepaymentPrncplReducnText _PrincipalReductionText $projection.PrepaymentPrincipalReduction = _PrincipalReductionText.PrepaymentAgrmtDomainCode and _PrincipalReductionText.Language = $session.system_language --Prepayment Section hide
[0..1] I_PrepaymentAgrmtHideSection _SectionHide $projection.CompanyCode = _SectionHide.CompanyCode and $projection.PrepaymentAgreementType = _SectionHide.PrepaymentAgreementType --Renegotiation
[0..*] C_PrepaymentRenegotiation _RenegttnList $projection.PrepaymentAgreementUUID = _RenegttnList.PrepaymentAgreementUUID -- Extension View for Free Characteristics in Prepayment Agreement Header
[0..1] E_PrepaymentAgreement _Extension $projection.PrepaymentAgreementUUID = _Extension.PrepaymentAgreementUUID ---
[0..1] I_PrepaymentAgrmtRjcnReasonVH _PrepaymentAgrmtRjcnRsn $projection.PrepaymentAgrmtRjcnReason = _PrepaymentAgrmtRjcnRsn.PrepaymentAgrmtRjcnReason ---
[0..1] I_PrepaymentIsRenegotiatedText _RenegttnIndicatorText $projection.PrepaymentIsRenegotiated = _RenegttnIndicatorText.PrepaymentIsRenegotiated and _RenegttnIndicatorText.Language = $session.system_language

Annotations (21)

NameValueLevelField
AbapCatalog.sqlViewName CPPMGAGRMTTP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Prepayment Agreement view
VDM.viewType #CONSUMPTION view
Search.searchable true view
Metadata.allowExtensions true view
ClientHandling.type #CLIENT_DEPENDENT view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.compositionRoot true view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.draftEnabled true view
ObjectModel.createEnabled EXTERNAL_CALCULATION view
ObjectModel.updateEnabled EXTERNAL_CALCULATION view
ObjectModel.deleteEnabled EXTERNAL_CALCULATION view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.sapObjectNodeType.name PrepaymentAgreement view

Fields (145)

KeyFieldSource TableSource FieldDescription
KEY PrepaymentAgreementUUID I_PrepaymentAgreementTP PrepaymentAgreementUUID Key
PrepaymentAgreement I_PrepaymentAgreementTP PrepaymentAgreement Renegotiation PPA
PrepaymentAgreementType I_PrepaymentAgreementTP PrepaymentAgreementType Prepay Agreemnt Type
PrepaymentAgrmtIsBarter I_PrepaymentAgreementTP PrepaymentAgrmtIsBarter
PrepaymentSimulateIsVisible I_PrepaymentAgreementTP PrepaymentSimulateIsVisible
PrepaymentAgrmtIsPosted I_PrepaymentAgreementTP PrepaymentAgrmtIsPosted Pre Agreement Posted
PrepaymentAgrmtIsLinked I_PrepaymentAgreementTP PrepaymentAgrmtIsLinked
PrepaymentAgreementCategory I_PrepaymentAgreementTP PrepaymentAgreementCategory Prepayment Category
PrepaymentAgreementDescription I_PrepaymentAgreementTP PrepaymentAgreementDescription Pre Agreement Desc.
PrepaymentAgreementAmount I_PrepaymentAgreementTP PrepaymentAgreementAmount Pre Agrm Amount
PrepaymentAgreementCurrency I_PrepaymentAgreementTP PrepaymentAgreementCurrency Currency
PrepaymentAgreementStatus I_PrepaymentAgreementTP PrepaymentAgreementStatus Pre Agreement Status
PrepaymentAgrmtLinkStatus I_PrepaymentAgreementTP PrepaymentAgrmtLinkStatus Link Status
PrepaymentBarterLinkStatus I_PrepaymentAgreementTP PrepaymentBarterLinkStatus Prepmt Barter Status
PrepaymentPostingProfile I_PrepaymentAgreementTP PrepaymentPostingProfile Settl Recvry Profile
PrepaymentAgrmtPostingStatus I_PrepaymentAgreementTP PrepaymentAgrmtPostingStatus Pre Posting Status
PrepaymentAgreementCommodity I_PrepaymentAgreementTP PrepaymentAgreementCommodity Commodity
CompanyCode I_PrepaymentAgreementTP CompanyCode Receiver Company Code
PrepaymentEconomicGroup I_PrepaymentAgreementTP PrepaymentEconomicGroup Economic Group
PrepaymentEconomicGroupFilter I_PrepaymentAgreementTP PrepaymentEconomicGroup Economic Group
PurchasingOrganization I_PrepaymentAgreementTP PurchasingOrganization Purchasing Organization
PurchasingGroup I_PrepaymentAgreementTP PurchasingGroup Purchasing Group
SalesOrganization I_PrepaymentAgreementTP SalesOrganization Sales Organization
DistributionChannel I_PrepaymentAgreementTP DistributionChannel RefDistCh-Cust/Mat.
Division I_PrepaymentAgreementTP Division Internal Division ID
PrepaymentAgrmtCropSeason I_PrepaymentAgreementTP PrepaymentAgrmtCropSeason Crop Season
Counterparty I_PrepaymentAgreementTP Counterparty Supplier
FirstName _BPText FirstName First Name
LastName _BPText LastName Last Name
OrganizationBPName1 _BPText OrganizationBPName1 Name 1
OrganizationBPName2 _BPText OrganizationBPName2 Name 2
GroupBusinessPartnerName1 _BPText GroupBusinessPartnerName1 Name 1
GroupBusinessPartnerName2 _BPText GroupBusinessPartnerName2 Name 2
PrepaymentAgrmtBPType I_PrepaymentAgreementTP PrepaymentAgrmtBPType Counterparty Type
PrepaymentAgrmtDueDate I_PrepaymentAgreementTP PrepaymentAgrmtDueDate Credit Due Date
PrepaymentAgreementRating I_PrepaymentAgreementTP PrepaymentAgreementRating Credit Rating
PrepaymentLeasedPlantAreaQty I_PrepaymentAgreementTP PrepaymentLeasedPlantAreaQty Size-Leasd PlntgArea
PrepaymentPlantingAreaUoM I_PrepaymentAgreementTP PrepaymentPlantingAreaUoM Size of Leased Pl.Ar
PrepaymentProdtvPlantAreaQty I_PrepaymentAgreementTP PrepaymentProdtvPlantAreaQty Prod Planting Area
PrepaymentProdtvPlantAreaUoM I_PrepaymentAgreementTP PrepaymentProdtvPlantAreaUoM Prod Plntng Area UoM
PrepaymentOwnPlantingAreaQty I_PrepaymentAgreementTP PrepaymentOwnPlantingAreaQty Own Planting Area
PrepaymentOwnPlantingAreaUoM I_PrepaymentAgreementTP PrepaymentOwnPlantingAreaUoM Planting Area UoM
PrepaymentCreditTotalAreaQty I_PrepaymentAgreementTP PrepaymentCreditTotalAreaQty Total Credit Area
PrepaymentCreditTotalAreaUoM I_PrepaymentAgreementTP PrepaymentCreditTotalAreaUoM Total Area UoM
PrepaymentPledgedAreaQty I_PrepaymentAgreementTP PrepaymentPledgedAreaQty Pledged Area
PrepaymentPledgedAreaUoM I_PrepaymentAgreementTP PrepaymentPledgedAreaUoM Pledged Area UoM
PrepaymentPledgedProdtvAreaQty I_PrepaymentAgreementTP PrepaymentPledgedProdtvAreaQty Productive Area
PrepaymentPledgedProdtvAreaUoM I_PrepaymentAgreementTP PrepaymentPledgedProdtvAreaUoM Productive Area UoM
PrepaymentOwnPledgedAreaQty I_PrepaymentAgreementTP PrepaymentOwnPledgedAreaQty Own Pledged Area
PrepaymentOwnPledgedAreaUoM I_PrepaymentAgreementTP PrepaymentOwnPledgedAreaUoM Own Pledged Area UoM
PrepaymentTotalPledgedAreaQty I_PrepaymentAgreementTP PrepaymentTotalPledgedAreaQty Pledged Area
PrepaymentTotalPledgedAreaUoM I_PrepaymentAgreementTP PrepaymentTotalPledgedAreaUoM Totl Pldged Area UoM
PrepaymentCostPerHectareAmt I_PrepaymentAgreementTP PrepaymentCostPerHectareAmt Cost Per Hectare
PrepaymentCostHectareCurrency I_PrepaymentAgreementTP PrepaymentCostHectareCurrency Cost/Hectare Currenc
PrepaymentCostOfPledgeAmt I_PrepaymentAgreementTP PrepaymentCostOfPledgeAmt Cost of Pledge
PrepaymentCostOfPledgeCurrency I_PrepaymentAgreementTP PrepaymentCostOfPledgeCurrency Cost of Pledge Curr.
PrepaymentCreditTotalCost I_PrepaymentAgreementTP PrepaymentCreditTotalCost Total Cost
PrepaymentTotalCostCurrency I_PrepaymentAgreementTP PrepaymentTotalCostCurrency Total Cost Currency
PrepaymentProductivityFctrQty I_PrepaymentAgreementTP PrepaymentProductivityFctrQty Productivity Factor
PrepaymentProductivityFctrUoM I_PrepaymentAgreementTP PrepaymentProductivityFctrUoM Prodvty Factor UoM
PrepaymentCreditRegion I_PrepaymentAgreementTP PrepaymentCreditRegion Credit Region
CountryCode I_PrepaymentAgreementTP CountryCode Country/Reg.
CompanyRegion I_PrepaymentAgreementTP CompanyRegion Region
PrepaymentEstimatedProdnQty I_PrepaymentAgreementTP PrepaymentEstimatedProdnQty Estimated Production
PrepaymentEstimatedProdnUoM I_PrepaymentAgreementTP PrepaymentEstimatedProdnUoM Estimated Prod. UoM
PrepaymentProductiveFctrPerUoM I_PrepaymentAgreementTP PrepaymentProductiveFctrPerUoM Prod. Factor UoM
PrepaymentLimitCreditDate I_PrepaymentAgreementTP PrepaymentLimitCreditDate Crdt Use Limit Date
PrepaymentCmtmtPercent I_PrepaymentAgreementTP PrepaymentCmtmtPercent % of Commitment
PrepaymentPayoutPercent I_PrepaymentAgreementTP PrepaymentPayoutPercent Payout Percentage
PrepaymentCreditContractFlag I_PrepaymentAgreementTP PrepaymentCreditContractFlag Credit Contract
PrepaymentPrincipalReduction I_PrepaymentAgreementTP PrepaymentPrincipalReduction Principal Reduction
PrepaymentStartIntrstDateType I_PrepaymentAgreementTP PrepaymentStartIntrstDateType Int. Start Date Type
PrepaymentStartIntrstDate I_PrepaymentAgreementTP PrepaymentStartIntrstDate Interest Start Date
PrepaymentStopIntrstDateType I_PrepaymentAgreementTP PrepaymentStopIntrstDateType Int. Stop Date Type
PrepaymentStopIntrstDate I_PrepaymentAgreementTP PrepaymentStopIntrstDate Interest Stop Date
PrepaymentRestrictionsTxt I_PrepaymentAgreementTP PrepaymentRestrictionsTxt Credit Restrictions
PrepaymentCreditHistoryTxt I_PrepaymentAgreementTP PrepaymentCreditHistoryTxt Credit History
BPTaxNumber I_PrepaymentAgreementTP BPTaxNumber Tax Number
AddressNumber I_PrepaymentAgreementTP AddressNumber Src Address No
PrepaymentAgrmtExtCommentText I_PrepaymentAgreementTP PrepaymentAgrmtExtCommentText Internal Comments
PrepaymentAgrmtIntCommentText I_PrepaymentAgreementTP PrepaymentAgrmtIntCommentText External Comments
PrepaymentAgrmtRjcnReason I_PrepaymentAgreementTP PrepaymentAgrmtRjcnReason Reason Code
PrepaymentRejectionText I_PrepaymentAgreementTP PrepaymentRejectionText Rejection Comment
IsRejected I_PrepaymentAgreementTP IsRejected Rejected
PrepaymentRenegttnStopDate I_PrepaymentAgreementTP PrepaymentRenegttnStopDate Stop Interest Date
PrepaymentSuspendIntrstFromDte I_PrepaymentAgreementTP PrepaymentSuspendIntrstFromDte Susp. Interest From
PrepaymentSuspendIntrstToDte I_PrepaymentAgreementTP PrepaymentSuspendIntrstToDte Susp. Interest Until
PrepaymentIsRenegotiated I_PrepaymentAgreementTP PrepaymentIsRenegotiated PPA Renegotiated
PrepaymentIsRenegttnStopIntrst I_PrepaymentAgreementTP PrepaymentIsRenegttnStopIntrst Stop Interest Ind.
PrepaymentAgrmtIsRenegotiated I_PrepaymentAgreementTP PrepaymentAgrmtIsRenegotiated
PrepaymentIsRenegttnCshSettlmt I_PrepaymentAgreementTP PrepaymentIsRenegttnCshSettlmt Reneg. Cash Stlmt
PrepaymentAgrmtIsReopened I_PrepaymentAgreementTP PrepaymentAgrmtIsReopened PPA is Reopened
PrepaymentRenegotiationAction I_PrepaymentAgreementTP PrepaymentRenegotiationAction
CreatedByUser I_PrepaymentAgreementTP CreatedByUser User Name
CreationDate I_PrepaymentAgreementTP CreationDate Time Stamp
CreationDateTime I_PrepaymentAgreementTP CreationDateTime Timestamp
LastChangeDateTime I_PrepaymentAgreementTP LastChangeDateTime Timestamp
PrepaymentCommlRefSctnActv _SectionHide PrepaymentCommlRefSctnActv
PrepaymentDistributionSctnActv _SectionHide PrepaymentDistributionSctnActv
PrepaymentDocumentsSctnActv _SectionHide PrepaymentDocumentsSctnActv
PrepaymentIntrstRateSctnActv _SectionHide PrepaymentIntrstRateSctnActv
PrepaymentSurchargeSctnActv _SectionHide PrepaymentSurchargeSctnActv
PrepaymentHarvestSctnActv _SectionHide PrepaymentHarvestSctnActv
PrepaymentHistoryProdnSctnActv _SectionHide PrepaymentHistoryProdnSctnActv
PrepaymentHistorySalesSctnActv _SectionHide PrepaymentHistorySalesSctnActv
PrepaymentColltrlSctnIsActv
PrepaymentAgrmtIsCashSettlmt
PrepaymentAgrmtIsStopIntrst
PrepaymentAgrmtIsRenegttn
Interestrate_InterestRates
Surcharge_Surcharge
Collaterals_Collateral
Reference_Reference
Harvest_PastHarvest
Documents_Documents
ProductionHistroy_ProdHistory
SalesHistroy_SalesHistory
Distribution_Distribution
Plant_Plant
Notes_Notes
Renegotiation_Renegttn
CashSettlement_CashSettlement
UnitOfMeasureText_UoMText
CurrencyCodeText_CurrencyText
ComdtyTypeText_CmmdtyType
CompanyCodeText_CoCode
BPNameText_BPText
CountertypeText_BusPartCatTxt
PurchaseGroupNameText_PurgGrpTxt
PurchaseOrgNameText_PurgOrgTxt
SalesOrgNameText_SlsOrgTxt
DistributionChannelNameText_DistrChnlTxt
DivisionText_DivnTxt
_CountryText _CountryText
_RegionText _RegionText
Systemstatustext_OrderStatusText
Usertext_UserText
LinkedDocument_LinkedDoc
BarterDocument_BarterDoc
PrepaymentPostedDocument_PostedDoc
PrepaymentLinkStatusText_LinkStatusText
Sectionhideassoication_SectionHide
EconomicGroupText_EconomicGroupText
CropSeasonText_CropSeasonText
Renegotiation_RenegttnList

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_PrepaymentAgreementTP.
-- 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: CPPMGAGRMTTP

CREATE VIEW C_PrepaymentAgreementTP AS
SELECT
  PrepaymentAgmnt.PrepaymentAgreementUUID AS PrepaymentAgreementUUID,
  PrepaymentAgmnt.PrepaymentAgreement AS PrepaymentAgreement,
  PrepaymentAgmnt.PrepaymentAgreementType AS PrepaymentAgreementType,
  PrepaymentAgmnt.PrepaymentAgrmtIsBarter AS PrepaymentAgrmtIsBarter,
  PrepaymentAgmnt.PrepaymentSimulateIsVisible AS PrepaymentSimulateIsVisible,
  PrepaymentAgmnt.PrepaymentAgrmtIsPosted AS PrepaymentAgrmtIsPosted,
  PrepaymentAgmnt.PrepaymentAgrmtIsLinked AS PrepaymentAgrmtIsLinked,
  PrepaymentAgmnt.PrepaymentAgreementCategory AS PrepaymentAgreementCategory,
  PrepaymentAgmnt.PrepaymentAgreementDescription AS PrepaymentAgreementDescription,
  PrepaymentAgmnt.PrepaymentAgreementAmount AS PrepaymentAgreementAmount,
  PrepaymentAgmnt.PrepaymentAgreementCurrency AS PrepaymentAgreementCurrency,
  PrepaymentAgmnt.PrepaymentAgreementStatus AS PrepaymentAgreementStatus,
  PrepaymentAgmnt.PrepaymentAgrmtLinkStatus AS PrepaymentAgrmtLinkStatus,
  PrepaymentAgmnt.PrepaymentBarterLinkStatus AS PrepaymentBarterLinkStatus,
  PrepaymentAgmnt.PrepaymentPostingProfile AS PrepaymentPostingProfile,
  PrepaymentAgmnt.PrepaymentAgrmtPostingStatus AS PrepaymentAgrmtPostingStatus,
  PrepaymentAgmnt.PrepaymentAgreementCommodity AS PrepaymentAgreementCommodity,
  PrepaymentAgmnt.CompanyCode AS CompanyCode,
  PrepaymentAgmnt.PrepaymentEconomicGroup AS PrepaymentEconomicGroup,
  PrepaymentAgmnt.PrepaymentEconomicGroup AS PrepaymentEconomicGroupFilter,
  PrepaymentAgmnt.PurchasingOrganization AS PurchasingOrganization,
  PrepaymentAgmnt.PurchasingGroup AS PurchasingGroup,
  PrepaymentAgmnt.SalesOrganization AS SalesOrganization,
  PrepaymentAgmnt.DistributionChannel AS DistributionChannel,
  PrepaymentAgmnt.Division AS Division,
  PrepaymentAgmnt.PrepaymentAgrmtCropSeason AS PrepaymentAgrmtCropSeason,
  PrepaymentAgmnt.Counterparty AS Counterparty,
  _BPText.FirstName AS FirstName,
  _BPText.LastName AS LastName,
  _BPText.OrganizationBPName1 AS OrganizationBPName1,
  _BPText.OrganizationBPName2 AS OrganizationBPName2,
  _BPText.GroupBusinessPartnerName1 AS GroupBusinessPartnerName1,
  _BPText.GroupBusinessPartnerName2 AS GroupBusinessPartnerName2,
  PrepaymentAgmnt.PrepaymentAgrmtBPType AS PrepaymentAgrmtBPType,
  PrepaymentAgmnt.PrepaymentAgrmtDueDate AS PrepaymentAgrmtDueDate,
  PrepaymentAgmnt.PrepaymentAgreementRating AS PrepaymentAgreementRating,
  PrepaymentAgmnt.PrepaymentLeasedPlantAreaQty AS PrepaymentLeasedPlantAreaQty,
  PrepaymentAgmnt.PrepaymentPlantingAreaUoM AS PrepaymentPlantingAreaUoM,
  PrepaymentAgmnt.PrepaymentProdtvPlantAreaQty AS PrepaymentProdtvPlantAreaQty,
  PrepaymentAgmnt.PrepaymentProdtvPlantAreaUoM AS PrepaymentProdtvPlantAreaUoM,
  PrepaymentAgmnt.PrepaymentOwnPlantingAreaQty AS PrepaymentOwnPlantingAreaQty,
  PrepaymentAgmnt.PrepaymentOwnPlantingAreaUoM AS PrepaymentOwnPlantingAreaUoM,
  PrepaymentAgmnt.PrepaymentCreditTotalAreaQty AS PrepaymentCreditTotalAreaQty,
  PrepaymentAgmnt.PrepaymentCreditTotalAreaUoM AS PrepaymentCreditTotalAreaUoM,
  PrepaymentAgmnt.PrepaymentPledgedAreaQty AS PrepaymentPledgedAreaQty,
  PrepaymentAgmnt.PrepaymentPledgedAreaUoM AS PrepaymentPledgedAreaUoM,
  PrepaymentAgmnt.PrepaymentPledgedProdtvAreaQty AS PrepaymentPledgedProdtvAreaQty,
  PrepaymentAgmnt.PrepaymentPledgedProdtvAreaUoM AS PrepaymentPledgedProdtvAreaUoM,
  PrepaymentAgmnt.PrepaymentOwnPledgedAreaQty AS PrepaymentOwnPledgedAreaQty,
  PrepaymentAgmnt.PrepaymentOwnPledgedAreaUoM AS PrepaymentOwnPledgedAreaUoM,
  PrepaymentAgmnt.PrepaymentTotalPledgedAreaQty AS PrepaymentTotalPledgedAreaQty,
  PrepaymentAgmnt.PrepaymentTotalPledgedAreaUoM AS PrepaymentTotalPledgedAreaUoM,
  PrepaymentAgmnt.PrepaymentCostPerHectareAmt AS PrepaymentCostPerHectareAmt,
  PrepaymentAgmnt.PrepaymentCostHectareCurrency AS PrepaymentCostHectareCurrency,
  PrepaymentAgmnt.PrepaymentCostOfPledgeAmt AS PrepaymentCostOfPledgeAmt,
  PrepaymentAgmnt.PrepaymentCostOfPledgeCurrency AS PrepaymentCostOfPledgeCurrency,
  PrepaymentAgmnt.PrepaymentCreditTotalCost AS PrepaymentCreditTotalCost,
  PrepaymentAgmnt.PrepaymentTotalCostCurrency AS PrepaymentTotalCostCurrency,
  PrepaymentAgmnt.PrepaymentProductivityFctrQty AS PrepaymentProductivityFctrQty,
  PrepaymentAgmnt.PrepaymentProductivityFctrUoM AS PrepaymentProductivityFctrUoM,
  PrepaymentAgmnt.PrepaymentCreditRegion AS PrepaymentCreditRegion,
  PrepaymentAgmnt.CountryCode AS CountryCode,
  PrepaymentAgmnt.CompanyRegion AS CompanyRegion,
  PrepaymentAgmnt.PrepaymentEstimatedProdnQty AS PrepaymentEstimatedProdnQty,
  PrepaymentAgmnt.PrepaymentEstimatedProdnUoM AS PrepaymentEstimatedProdnUoM,
  PrepaymentAgmnt.PrepaymentProductiveFctrPerUoM AS PrepaymentProductiveFctrPerUoM,
  PrepaymentAgmnt.PrepaymentLimitCreditDate AS PrepaymentLimitCreditDate,
  PrepaymentAgmnt.PrepaymentCmtmtPercent AS PrepaymentCmtmtPercent,
  PrepaymentAgmnt.PrepaymentPayoutPercent AS PrepaymentPayoutPercent,
  PrepaymentAgmnt.PrepaymentCreditContractFlag AS PrepaymentCreditContractFlag,
  PrepaymentAgmnt.PrepaymentPrincipalReduction AS PrepaymentPrincipalReduction,
  PrepaymentAgmnt.PrepaymentStartIntrstDateType AS PrepaymentStartIntrstDateType,
  PrepaymentAgmnt.PrepaymentStartIntrstDate AS PrepaymentStartIntrstDate,
  PrepaymentAgmnt.PrepaymentStopIntrstDateType AS PrepaymentStopIntrstDateType,
  PrepaymentAgmnt.PrepaymentStopIntrstDate AS PrepaymentStopIntrstDate,
  PrepaymentAgmnt.PrepaymentRestrictionsTxt AS PrepaymentRestrictionsTxt,
  PrepaymentAgmnt.PrepaymentCreditHistoryTxt AS PrepaymentCreditHistoryTxt,
  PrepaymentAgmnt.BPTaxNumber AS BPTaxNumber,
  PrepaymentAgmnt.AddressNumber AS AddressNumber,
  PrepaymentAgmnt.PrepaymentAgrmtExtCommentText AS PrepaymentAgrmtExtCommentText,
  PrepaymentAgmnt.PrepaymentAgrmtIntCommentText AS PrepaymentAgrmtIntCommentText,
  PrepaymentAgmnt.PrepaymentAgrmtRjcnReason AS PrepaymentAgrmtRjcnReason,
  PrepaymentAgmnt.PrepaymentRejectionText AS PrepaymentRejectionText,
  PrepaymentAgmnt.IsRejected AS IsRejected,
  PrepaymentAgmnt.PrepaymentRenegttnStopDate AS PrepaymentRenegttnStopDate,
  PrepaymentAgmnt.PrepaymentSuspendIntrstFromDte AS PrepaymentSuspendIntrstFromDte,
  PrepaymentAgmnt.PrepaymentSuspendIntrstToDte AS PrepaymentSuspendIntrstToDte,
  PrepaymentAgmnt.PrepaymentIsRenegotiated AS PrepaymentIsRenegotiated,
  PrepaymentAgmnt.PrepaymentIsRenegttnStopIntrst AS PrepaymentIsRenegttnStopIntrst,
  PrepaymentAgmnt.PrepaymentAgrmtIsRenegotiated AS PrepaymentAgrmtIsRenegotiated,
  PrepaymentAgmnt.PrepaymentIsRenegttnCshSettlmt AS PrepaymentIsRenegttnCshSettlmt,
  PrepaymentAgmnt.PrepaymentAgrmtIsReopened AS PrepaymentAgrmtIsReopened,
  PrepaymentAgmnt.PrepaymentRenegotiationAction AS PrepaymentRenegotiationAction,
  PrepaymentAgmnt.CreatedByUser AS CreatedByUser,
  PrepaymentAgmnt.CreationDate AS CreationDate,
  PrepaymentAgmnt.CreationDateTime AS CreationDateTime,
  PrepaymentAgmnt.LastChangeDateTime AS LastChangeDateTime,
  _SectionHide.PrepaymentCommlRefSctnActv AS PrepaymentCommlRefSctnActv,
  _SectionHide.PrepaymentDistributionSctnActv AS PrepaymentDistributionSctnActv,
  _SectionHide.PrepaymentDocumentsSctnActv AS PrepaymentDocumentsSctnActv,
  _SectionHide.PrepaymentIntrstRateSctnActv AS PrepaymentIntrstRateSctnActv,
  _SectionHide.PrepaymentSurchargeSctnActv AS PrepaymentSurchargeSctnActv,
  _SectionHide.PrepaymentHarvestSctnActv AS PrepaymentHarvestSctnActv,
  _SectionHide.PrepaymentHistoryProdnSctnActv AS PrepaymentHistoryProdnSctnActv,
  _SectionHide.PrepaymentHistorySalesSctnActv AS PrepaymentHistorySalesSctnActv,
  cast(' ' as abap.char(1)) AS PrepaymentColltrlSctnIsActv,
  cast(' ' as boolean ) AS PrepaymentAgrmtIsCashSettlmt,
  cast(' ' as boolean ) AS PrepaymentAgrmtIsStopIntrst,
  cast(' ' as boolean ) AS PrepaymentAgrmtIsRenegttn
FROM I_PrepaymentAgreementTP AS PrepaymentAgmnt
LEFT OUTER JOIN C_PrepaymentAgrmtIntrstRatesTP AS _InterestRates ON PrepaymentAgreementUUID = _InterestRates.PrepaymentAgreementUUID  -- association [0..*]
LEFT OUTER JOIN C_PrepaymentAgrmtSurchargeTP AS _Surcharge ON PrepaymentAgreementUUID = _Surcharge.PrepaymentAgreementUUID  -- association [0..*]
LEFT OUTER JOIN C_PrepaymentAgrmtDistrTP AS _Distribution ON PrepaymentAgreementUUID = _Distribution.PrepaymentAgreementUUID  -- association [0..*]
LEFT OUTER JOIN C_PrepaymentAgrmtCommlRefTP AS _Reference ON PrepaymentAgreementUUID = _Reference.PrepaymentAgreementUUID  -- association [0..*]
LEFT OUTER JOIN C_PrepaymentAgrmtHarvestTP AS _PastHarvest ON PrepaymentAgreementUUID = _PastHarvest.PrepaymentAgreementUUID  -- association [0..*]
LEFT OUTER JOIN C_PrepaymentAgrmtCollateralTP AS _Collateral ON PrepaymentAgreementUUID = _Collateral.PrepaymentAgreementUUID  -- association [0..*]
LEFT OUTER JOIN C_PrepaymentAgrmtDocumentsTP AS _Documents ON PrepaymentAgreementUUID = _Documents.PrepaymentAgreementUUID  -- association [0..*]
LEFT OUTER JOIN C_PrepaymentHistoryProdTP AS _ProdHistory ON PrepaymentAgreementUUID = _ProdHistory.PrepaymentAgreementUUID  -- association [0..*]
LEFT OUTER JOIN C_PrepaymentHistorySalesTP AS _SalesHistory ON PrepaymentAgreementUUID = _SalesHistory.PrepaymentAgreementUUID  -- association [0..*]
LEFT OUTER JOIN C_PrepaymentAgrmtPlantsTP AS _Plant ON PrepaymentAgreementUUID = _Plant.PrepaymentAgreementUUID  -- association [0..*]
LEFT OUTER JOIN C_PrepaymentAgrmtNotesTP AS _Notes ON PrepaymentAgreementUUID = _Notes.PrepaymentAgreementUUID  -- association [0..*]
LEFT OUTER JOIN C_PrepaymentRenegttnHdrTP AS _Renegttn ON PrepaymentAgreementUUID = _Renegttn.PrepaymentAgreementUUID  -- association [0..*]
LEFT OUTER JOIN C_PrepaymentAgrmtCshSettlmt AS _CashSettlement ON PrepaymentAgreementUUID = _CashSettlement.PrepaymentAgreementUUID  -- association [0..*]
LEFT OUTER JOIN C_PrepaymentAssignedDocumentTP AS _BarterDoc ON PrepaymentAgreement = _BarterDoc.PrepaymentAgreement AND _BarterDoc.DocNumber <> '' AND _BarterDoc.PrepaymentAgrmtLinkType = 'BR'  -- association [0..*]
LEFT OUTER JOIN C_PrepaymentLinkedDocumentTP AS _LinkedDoc ON PrepaymentAgreement = _LinkedDoc.PrepaymentAgreement AND _LinkedDoc.PrepaymentAgreement <> '' AND _LinkedDoc.DocNumber <> '' AND _LinkedDoc.PrepaymentAgrmtLinkType = 'LN'  -- association [0..*]
LEFT OUTER JOIN C_PrepaymentPostedDocumentsTP AS _PostedDoc ON PrepaymentAgreement = _PostedDoc.PrepaymentAgreement AND _PostedDoc.PrepaymentAgreement <> ''  -- association [0..*]
LEFT OUTER JOIN I_UnitOfMeasureText AS _UoMText ON PrepaymentCreditTotalAreaUoM = _UoMText.UnitOfMeasure  -- association [0..*]
LEFT OUTER JOIN I_CurrencyText AS _CurrencyText ON PrepaymentAgreementCurrency = _CurrencyText.Currency  -- association [0..*]
LEFT OUTER JOIN I_CmmdtyText AS _CmmdtyType ON PrepaymentAgreementCommodity = _CmmdtyType.Commodity  -- association [0..*]
LEFT OUTER JOIN I_CompanyCode AS _CoCode ON CompanyCode = _CoCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _BPText ON Counterparty = _BPText.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusPartCategoryText AS _BusPartCatTxt ON PrepaymentAgrmtBPType = _BusPartCatTxt.BusinessPartnerCategory AND _BusPartCatTxt.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN C_PurchasingGroup AS _PurgGrpTxt ON _PurgGrpTxt.PurchasingGroup = PurchasingGroup  -- association [0..1]
LEFT OUTER JOIN C_PurchasingOrganizationVHTemp AS _PurgOrgTxt ON PurchasingOrganization = _PurgOrgTxt.PurchasingOrganization  -- association [0..1]
LEFT OUTER JOIN I_SalesOrganizationText AS _SlsOrgTxt ON SalesOrganization = _SlsOrgTxt.SalesOrganization AND _SlsOrgTxt.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_DistributionChannelText AS _DistrChnlTxt ON DistributionChannel = _DistrChnlTxt.DistributionChannel AND _DistrChnlTxt.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_DivisionText AS _DivnTxt ON Division = _DivnTxt.Division AND _DivnTxt.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_CountryText AS _CountryText ON CountryCode = _CountryText.Country AND _CountryText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_RegionText AS _RegionText ON CompanyRegion = _RegionText.Region AND _RegionText.Language = $session.system_language AND CountryCode = _RegionText.Country  -- association [0..1]
LEFT OUTER JOIN I_PrepaymentEconomicGrpTxt AS _EconomicGroupText ON PrepaymentEconomicGroup = _EconomicGroupText.PrepaymentEconomicGroup AND Counterparty = _EconomicGroupText.Counterparty AND _EconomicGroupText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_PrepaymentCropSeasonCalcTxt AS _CropSeasonText ON PrepaymentAgrmtCropSeason = _CropSeasonText.PrepaymentAgrmtCropSeason AND Counterparty = _CropSeasonText.Counterparty AND PrepaymentEconomicGroup = _CropSeasonText.PrepaymentEconomicGroup AND _CropSeasonText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_SystemStatusText AS _OrderStatusText ON PrepaymentAgreementStatus = _OrderStatusText.SystemStatus AND _OrderStatusText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_SystemStatusText AS _PostingStatusText ON PrepaymentAgrmtPostingStatus = _PostingStatusText.SystemStatus AND _PostingStatusText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_PrepaymentAgrmtUserNameText AS _UserText ON CreatedByUser = _UserText.UserName  -- association [0..1]
LEFT OUTER JOIN I_PrepaymentAgreementTypeVH AS _PrepaymentAgrmtTxt ON PrepaymentAgreementType = _PrepaymentAgrmtTxt.PrepaymentAgreementType  -- association [0..*]
LEFT OUTER JOIN I_PrepaymentAgrmtCategoryText AS _PrepaymentAgrmtCatTxt ON PrepaymentAgreementCategory = _PrepaymentAgrmtCatTxt.PrepaymentAgrmtDomainCode AND _PrepaymentAgrmtCatTxt.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_PrepaymentStrtIntrstTypeTxt AS _StartIntrstTypeText ON PrepaymentStartIntrstDateType = _StartIntrstTypeText.PrepaymentAgrmtDomainCode AND _StartIntrstTypeText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_PrepaymentStopIntrstTypeTxt AS _StopIntrstTypeText ON PrepaymentStopIntrstDateType = _StopIntrstTypeText.PrepaymentAgrmtDomainCode AND _StopIntrstTypeText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_PrepaymentAgrmtLinkStsText AS _LinkStatusText ON PrepaymentAgrmtLinkStatus = _LinkStatusText.PrepaymentAgrmtDomainCode AND _LinkStatusText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_PrepaymentAgrmtLinkStsText AS _BarterLinkStatusText ON PrepaymentBarterLinkStatus = _BarterLinkStatusText.PrepaymentAgrmtDomainCode AND _BarterLinkStatusText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_PrepaymentPrncplReducnText AS _PrincipalReductionText ON PrepaymentPrincipalReduction = _PrincipalReductionText.PrepaymentAgrmtDomainCode AND _PrincipalReductionText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_PrepaymentAgrmtHideSection AS _SectionHide ON CompanyCode = _SectionHide.CompanyCode AND PrepaymentAgreementType = _SectionHide.PrepaymentAgreementType  -- association [0..1]
LEFT OUTER JOIN C_PrepaymentRenegotiation AS _RenegttnList ON PrepaymentAgreementUUID = _RenegttnList.PrepaymentAgreementUUID  -- association [0..*]
LEFT OUTER JOIN E_PrepaymentAgreement AS _Extension ON PrepaymentAgreementUUID = _Extension.PrepaymentAgreementUUID  -- association [0..1]
LEFT OUTER JOIN I_PrepaymentAgrmtRjcnReasonVH AS _PrepaymentAgrmtRjcnRsn ON PrepaymentAgrmtRjcnReason = _PrepaymentAgrmtRjcnRsn.PrepaymentAgrmtRjcnReason  -- association [0..1]
LEFT OUTER JOIN I_PrepaymentIsRenegotiatedText AS _RenegttnIndicatorText ON PrepaymentIsRenegotiated = _RenegttnIndicatorText.PrepaymentIsRenegotiated AND _RenegttnIndicatorText.Language = $session.system_language  -- association [0..1]
;