I_PrepaymentAgreementTP

DDL: I_PREPAYMENTAGREEMENTTP SQL: IPPMGAGRMTTP Type: view TRANSACTIONAL

Prepayment Agreement Transactional view

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

Data Sources (1)

SourceAliasJoin Type
I_PrepaymentAgreement PrepaymentAgreement from

Associations (15)

CardinalityTargetAliasCondition
[0..*] I_PrepaymentAgrmtIntrstRatesTP _InterestRates $projection.PrepaymentAgreementUUID = _InterestRates.PrepaymentAgreementUUID --
[0..*] I_PrepaymentAgrmtSurchargeTP _Surcharge $projection.PrepaymentAgreementUUID = _Surcharge.PrepaymentAgreementUUID --
[0..*] I_PrepaymentAgrmtDistrTP _Distribution $projection.PrepaymentAgreementUUID = _Distribution.PrepaymentAgreementUUID --
[0..*] I_PrepaymentAgrmtCollateralTP _Collateral $projection.PrepaymentAgreementUUID = _Collateral.PrepaymentAgreementUUID --
[0..*] I_PrepaymentAgrmtCommlRefTP _Reference $projection.PrepaymentAgreementUUID = _Reference.PrepaymentAgreementUUID --
[0..*] I_PrepaymentAgrmtHarvestTP _PastHarvest $projection.PrepaymentAgreementUUID = _PastHarvest.PrepaymentAgreementUUID --
[0..*] I_PrepaymentAgrmtDocumentsTP _Documents $projection.PrepaymentAgreementUUID = _Documents.PrepaymentAgreementUUID --
[0..*] I_PrepaymentHistoryProdTP _ProdHistory $projection.PrepaymentAgreementUUID = _ProdHistory.PrepaymentAgreementUUID --
[0..*] I_PrepaymentHistorySalesTP _SalesHistory $projection.PrepaymentAgreementUUID = _SalesHistory.PrepaymentAgreementUUID --
[0..*] I_PrepaymentAgrmtPlantsTP _Plant $projection.PrepaymentAgreementUUID = _Plant.PrepaymentAgreementUUID --
[0..*] I_PrepaymentAgrmtNotesTP _Notes $projection.PrepaymentAgreementUUID = _Notes.PrepaymentAgreementUUID --
[0..*] I_PrepaymentAgrmtRenegttnTP _Renegttn $projection.PrepaymentAgreementUUID = _Renegttn.PrepaymentAgreementUUID --
[0..*] I_PrepaymentEconomicGrpRel _PrepaymentEconomicGrpRel $projection.PrepaymentEconomicGroup = _PrepaymentEconomicGrpRel.PrepaymentEconomicGroup --
[0..*] I_PrepaymentAgrmtCshSettlmtTP _CashSettlement $projection.PrepaymentAgreementUUID = _CashSettlement.PrepaymentAgreementUUID -- Extension View for Prepayment Agreement Header
[0..1] E_PrepaymentAgreement _Extension $projection.PrepaymentAgreementUUID = _Extension.PrepaymentAgreementUUID

Annotations (23)

NameValueLevelField
AbapCatalog.sqlViewName IPPMGAGRMTTP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Prepayment Agreement Transactional view view
VDM.viewType #TRANSACTIONAL view
ObjectModel.transactionalProcessingEnabled true view
ObjectModel.compositionRoot true view
ObjectModel.writeActivePersistence PPMGAG_T_PPMT view
ObjectModel.draftEnabled true view
ObjectModel.writeDraftPersistence PPMGAG_T_PP_D view
ObjectModel.createEnabled EXTERNAL_CALCULATION view
ObjectModel.updateEnabled EXTERNAL_CALCULATION view
ObjectModel.deleteEnabled false view
ObjectModel.entityChangeStateId LastChangeDateTime view
ObjectModel.lifecycle.enqueue.expiryBehavior #RELATIVE_TO_LAST_CHANGE view
ObjectModel.lifecycle.enqueue.expiryInterval PT60M view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.modelCategory #BUSINESS_OBJECT view

Fields (103)

KeyFieldSource TableSource FieldDescription
KEY PrepaymentAgreementUUID I_PrepaymentAgreement PrepaymentAgreementUUID Key
PrepaymentAgreement I_PrepaymentAgreement PrepaymentAgreement Renegotiation PPA
PrepaymentAgreementCategory I_PrepaymentAgreement PrepaymentAgreementCategory Prepayment Category
PrepaymentAgreementDescription I_PrepaymentAgreement PrepaymentAgreementDescription Pre Agreement Desc.
PrepaymentAgreementAmount I_PrepaymentAgreement PrepaymentAgreementAmount Pre Agrm Amount
PrepaymentAgreementCurrency I_PrepaymentAgreement PrepaymentAgreementCurrency Currency
PrepaymentAgreementStatus I_PrepaymentAgreement PrepaymentAgreementStatus Pre Agreement Status
PrepaymentAgreementCommodity I_PrepaymentAgreement PrepaymentAgreementCommodity Commodity
CompanyCode I_PrepaymentAgreement CompanyCode Receiver Company Code
PrepaymentEconomicGroup I_PrepaymentAgreement PrepaymentEconomicGroup Economic Group
PurchasingGroup I_PrepaymentAgreement PurchasingGroup Purchasing Group
PurchasingOrganization I_PrepaymentAgreement PurchasingOrganization Purchasing Organization
SalesOrganization I_PrepaymentAgreement SalesOrganization Sales Organization
DistributionChannel I_PrepaymentAgreement DistributionChannel RefDistCh-Cust/Mat.
Division I_PrepaymentAgreement Division Internal Division ID
Plant I_PrepaymentAgreement Plant Valuation Area
PrepaymentAgrmtCropSeason I_PrepaymentAgreement PrepaymentAgrmtCropSeason Crop Season
Counterparty I_PrepaymentAgreement Counterparty Supplier
PrepaymentAgrmtBPType I_PrepaymentAgreement PrepaymentAgrmtBPType Counterparty Type
PrepaymentPrincipalReduction I_PrepaymentAgreement PrepaymentPrincipalReduction Principal Reduction
PrepaymentPostingProfile I_PrepaymentAgreement PrepaymentPostingProfile Settl Recvry Profile
PrepaymentAgreementRating I_PrepaymentAgreement PrepaymentAgreementRating Credit Rating
PrepaymentLeasedPlantAreaQty I_PrepaymentAgreement PrepaymentLeasedPlantAreaQty Size-Leasd PlntgArea
PrepaymentPlantingAreaUoM I_PrepaymentAgreement PrepaymentPlantingAreaUoM Size of Leased Pl.Ar
PrepaymentProdtvPlantAreaQty I_PrepaymentAgreement PrepaymentProdtvPlantAreaQty Prod Planting Area
PrepaymentProdtvPlantAreaUoM I_PrepaymentAgreement PrepaymentProdtvPlantAreaUoM Prod Plntng Area UoM
PrepaymentOwnPlantingAreaQty I_PrepaymentAgreement PrepaymentOwnPlantingAreaQty Own Planting Area
PrepaymentOwnPlantingAreaUoM I_PrepaymentAgreement PrepaymentOwnPlantingAreaUoM Planting Area UoM
PrepaymentCreditTotalAreaQty I_PrepaymentAgreement PrepaymentCreditTotalAreaQty Total Credit Area
PrepaymentCreditTotalAreaUoM I_PrepaymentAgreement PrepaymentCreditTotalAreaUoM Total Area UoM
PrepaymentPledgedAreaQty I_PrepaymentAgreement PrepaymentPledgedAreaQty Pledged Area
PrepaymentPledgedAreaUoM I_PrepaymentAgreement PrepaymentPledgedAreaUoM Pledged Area UoM
PrepaymentPledgedProdtvAreaQty I_PrepaymentAgreement PrepaymentPledgedProdtvAreaQty Productive Area
PrepaymentPledgedProdtvAreaUoM I_PrepaymentAgreement PrepaymentPledgedProdtvAreaUoM Productive Area UoM
PrepaymentOwnPledgedAreaQty I_PrepaymentAgreement PrepaymentOwnPledgedAreaQty Own Pledged Area
PrepaymentOwnPledgedAreaUoM I_PrepaymentAgreement PrepaymentOwnPledgedAreaUoM Own Pledged Area UoM
PrepaymentTotalPledgedAreaQty I_PrepaymentAgreement PrepaymentTotalPledgedAreaQty Pledged Area
PrepaymentTotalPledgedAreaUoM I_PrepaymentAgreement PrepaymentTotalPledgedAreaUoM Totl Pldged Area UoM
PrepaymentCostPerHectareAmt I_PrepaymentAgreement PrepaymentCostPerHectareAmt Cost Per Hectare
PrepaymentCostHectareCurrency I_PrepaymentAgreement PrepaymentCostHectareCurrency Cost/Hectare Currenc
PrepaymentCostOfPledgeAmt I_PrepaymentAgreement PrepaymentCostOfPledgeAmt Cost of Pledge
PrepaymentCostOfPledgeCurrency I_PrepaymentAgreement PrepaymentCostOfPledgeCurrency Cost of Pledge Curr.
PrepaymentCreditTotalCost I_PrepaymentAgreement PrepaymentCreditTotalCost Total Cost
PrepaymentTotalCostCurrency I_PrepaymentAgreement PrepaymentTotalCostCurrency Total Cost Currency
PrepaymentProductivityFctrQty I_PrepaymentAgreement PrepaymentProductivityFctrQty Productivity Factor
PrepaymentProductivityFctrUoM I_PrepaymentAgreement PrepaymentProductivityFctrUoM Prodvty Factor UoM
PrepaymentProductiveFctrPerUoM I_PrepaymentAgreement PrepaymentProductiveFctrPerUoM Prod. Factor UoM
PrepaymentCreditRegion I_PrepaymentAgreement PrepaymentCreditRegion Credit Region
PrepaymentEstimatedProdnQty I_PrepaymentAgreement PrepaymentEstimatedProdnQty Estimated Production
PrepaymentEstimatedProdnUoM I_PrepaymentAgreement PrepaymentEstimatedProdnUoM Estimated Prod. UoM
PrepaymentEstimatedProdPerUoM I_PrepaymentAgreement PrepaymentEstimatedProdPerUoM Est Prod Per UoM
PrepaymentLimitCreditDate I_PrepaymentAgreement PrepaymentLimitCreditDate Crdt Use Limit Date
PrepaymentCmtmtPercent I_PrepaymentAgreement PrepaymentCmtmtPercent % of Commitment
PrepaymentPayoutPercent I_PrepaymentAgreement PrepaymentPayoutPercent Payout Percentage
PrepaymentCreditContractFlag I_PrepaymentAgreement PrepaymentCreditContractFlag Credit Contract
PrepaymentStartIntrstDateType I_PrepaymentAgreement PrepaymentStartIntrstDateType Int. Start Date Type
PrepaymentStartIntrstDate I_PrepaymentAgreement PrepaymentStartIntrstDate Interest Start Date
PrepaymentStopIntrstDateType I_PrepaymentAgreement PrepaymentStopIntrstDateType Int. Stop Date Type
PrepaymentStopIntrstDate I_PrepaymentAgreement PrepaymentStopIntrstDate Interest Stop Date
PrepaymentRestrictionsTxt I_PrepaymentAgreement PrepaymentRestrictionsTxt Credit Restrictions
PrepaymentCreditHistoryTxt I_PrepaymentAgreement PrepaymentCreditHistoryTxt Credit History
BPTaxNumber I_PrepaymentAgreement BPTaxNumber Tax Number
AddressNumber I_PrepaymentAgreement AddressNumber Src Address No
PrepaymentAgrmtExtCommentText I_PrepaymentAgreement PrepaymentAgrmtExtCommentText Internal Comments
PrepaymentAgrmtIntCommentText I_PrepaymentAgreement PrepaymentAgrmtIntCommentText External Comments
PrepaymentAgrmtLinkStatus I_PrepaymentAgreement PrepaymentAgrmtLinkStatus Link Status
PrepaymentAgrmtPostingStatus I_PrepaymentAgreement PrepaymentAgrmtPostingStatus Pre Posting Status
PrepaymentBarterLinkStatus I_PrepaymentAgreement PrepaymentBarterLinkStatus Prepmt Barter Status
PrepaymentApprovalDateTime I_PrepaymentAgreement PrepaymentApprovalDateTime Prepmt Appr DateTime
CountryCode I_PrepaymentAgreement CountryCode Country/Reg.
CompanyRegion I_PrepaymentAgreement CompanyRegion Region
CustomerCityCode I_PrepaymentAgreement CustomerCityCode City Code
PrepaymentAgrmtRjcnReason I_PrepaymentAgreement PrepaymentAgrmtRjcnReason Reason Code
PrepaymentRejectionText I_PrepaymentAgreement PrepaymentRejectionText Rejection Comment
PrepaymentAgrmtSource I_PrepaymentAgreement PrepaymentAgrmtSource PreAgmnt Source
PrepaymentRenegttnStopDate I_PrepaymentAgreement PrepaymentRenegttnStopDate Stop Interest Date
PrepaymentSuspendIntrstFromDte I_PrepaymentAgreement PrepaymentSuspendIntrstFromDte Susp. Interest From
PrepaymentSuspendIntrstToDte I_PrepaymentAgreement PrepaymentSuspendIntrstToDte Susp. Interest Until
PrepaymentIsRenegotiated I_PrepaymentAgreement PrepaymentIsRenegotiated PPA Renegotiated
PrepaymentIsRenegttnStopIntrst I_PrepaymentAgreement PrepaymentIsRenegttnStopIntrst Stop Interest Ind.
PrepaymentAgrmtSrceIsRenegttn I_PrepaymentAgreement PrepaymentAgrmtSrceIsRenegttn Source Is Reneg.
PrepaymentIsRenegttnCshSettlmt I_PrepaymentAgreement PrepaymentIsRenegttnCshSettlmt Reneg. Cash Stlmt
PrepaymentAgrmtIsReopened I_PrepaymentAgreement PrepaymentAgrmtIsReopened PPA is Reopened
PrepaymentRenegotiationAction
CreatedByUserasCreatedByUser
CreationDateTime I_PrepaymentAgreement CreationDateTime Timestamp
clientNULLasCreationDate
LastChangedByUser I_PrepaymentAgreement LastChangedByUser User Name
LastChangeDateTime I_PrepaymentAgreement LastChangeDateTime Timestamp
_InterestRates _InterestRates
_Surcharge _Surcharge
_Collateral _Collateral
_Reference _Reference
_Distribution _Distribution
_Documents _Documents
_ProdHistory _ProdHistory
_SalesHistory _SalesHistory
_Plant _Plant
_PastHarvest _PastHarvest
_Notes _Notes
_Renegttn _Renegttn
_PrepaymentEconomicGrpRel _PrepaymentEconomicGrpRel
_CashSettlement _CashSettlement

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 I_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: IPPMGAGRMTTP

CREATE VIEW I_PrepaymentAgreementTP AS
SELECT
  PrepaymentAgreement.PrepaymentAgreementUUID AS PrepaymentAgreementUUID,
  PrepaymentAgreement.PrepaymentAgreement AS PrepaymentAgreement,
  PrepaymentAgreement.PrepaymentAgreementCategory AS PrepaymentAgreementCategory,
  PrepaymentAgreement.PrepaymentAgreementDescription AS PrepaymentAgreementDescription,
  PrepaymentAgreement.PrepaymentAgreementAmount AS PrepaymentAgreementAmount,
  PrepaymentAgreement.PrepaymentAgreementCurrency AS PrepaymentAgreementCurrency,
  PrepaymentAgreement.PrepaymentAgreementStatus AS PrepaymentAgreementStatus,
  PrepaymentAgreement.PrepaymentAgreementCommodity AS PrepaymentAgreementCommodity,
  PrepaymentAgreement.CompanyCode AS CompanyCode,
  PrepaymentAgreement.PrepaymentEconomicGroup AS PrepaymentEconomicGroup,
  PrepaymentAgreement.PurchasingGroup AS PurchasingGroup,
  PrepaymentAgreement.PurchasingOrganization AS PurchasingOrganization,
  PrepaymentAgreement.SalesOrganization AS SalesOrganization,
  PrepaymentAgreement.DistributionChannel AS DistributionChannel,
  PrepaymentAgreement.Division AS Division,
  PrepaymentAgreement.Plant AS Plant,
  PrepaymentAgreement.PrepaymentAgrmtCropSeason AS PrepaymentAgrmtCropSeason,
  PrepaymentAgreement.Counterparty AS Counterparty,
  PrepaymentAgreement.PrepaymentAgrmtBPType AS PrepaymentAgrmtBPType,
  PrepaymentAgreement.PrepaymentPrincipalReduction AS PrepaymentPrincipalReduction,
  PrepaymentAgreement.PrepaymentPostingProfile AS PrepaymentPostingProfile,
  PrepaymentAgreement.PrepaymentAgreementRating AS PrepaymentAgreementRating,
  PrepaymentAgreement.PrepaymentLeasedPlantAreaQty AS PrepaymentLeasedPlantAreaQty,
  PrepaymentAgreement.PrepaymentPlantingAreaUoM AS PrepaymentPlantingAreaUoM,
  PrepaymentAgreement.PrepaymentProdtvPlantAreaQty AS PrepaymentProdtvPlantAreaQty,
  PrepaymentAgreement.PrepaymentProdtvPlantAreaUoM AS PrepaymentProdtvPlantAreaUoM,
  PrepaymentAgreement.PrepaymentOwnPlantingAreaQty AS PrepaymentOwnPlantingAreaQty,
  PrepaymentAgreement.PrepaymentOwnPlantingAreaUoM AS PrepaymentOwnPlantingAreaUoM,
  PrepaymentAgreement.PrepaymentCreditTotalAreaQty AS PrepaymentCreditTotalAreaQty,
  PrepaymentAgreement.PrepaymentCreditTotalAreaUoM AS PrepaymentCreditTotalAreaUoM,
  PrepaymentAgreement.PrepaymentPledgedAreaQty AS PrepaymentPledgedAreaQty,
  PrepaymentAgreement.PrepaymentPledgedAreaUoM AS PrepaymentPledgedAreaUoM,
  PrepaymentAgreement.PrepaymentPledgedProdtvAreaQty AS PrepaymentPledgedProdtvAreaQty,
  PrepaymentAgreement.PrepaymentPledgedProdtvAreaUoM AS PrepaymentPledgedProdtvAreaUoM,
  PrepaymentAgreement.PrepaymentOwnPledgedAreaQty AS PrepaymentOwnPledgedAreaQty,
  PrepaymentAgreement.PrepaymentOwnPledgedAreaUoM AS PrepaymentOwnPledgedAreaUoM,
  PrepaymentAgreement.PrepaymentTotalPledgedAreaQty AS PrepaymentTotalPledgedAreaQty,
  PrepaymentAgreement.PrepaymentTotalPledgedAreaUoM AS PrepaymentTotalPledgedAreaUoM,
  PrepaymentAgreement.PrepaymentCostPerHectareAmt AS PrepaymentCostPerHectareAmt,
  PrepaymentAgreement.PrepaymentCostHectareCurrency AS PrepaymentCostHectareCurrency,
  PrepaymentAgreement.PrepaymentCostOfPledgeAmt AS PrepaymentCostOfPledgeAmt,
  PrepaymentAgreement.PrepaymentCostOfPledgeCurrency AS PrepaymentCostOfPledgeCurrency,
  PrepaymentAgreement.PrepaymentCreditTotalCost AS PrepaymentCreditTotalCost,
  PrepaymentAgreement.PrepaymentTotalCostCurrency AS PrepaymentTotalCostCurrency,
  PrepaymentAgreement.PrepaymentProductivityFctrQty AS PrepaymentProductivityFctrQty,
  PrepaymentAgreement.PrepaymentProductivityFctrUoM AS PrepaymentProductivityFctrUoM,
  PrepaymentAgreement.PrepaymentProductiveFctrPerUoM AS PrepaymentProductiveFctrPerUoM,
  PrepaymentAgreement.PrepaymentCreditRegion AS PrepaymentCreditRegion,
  PrepaymentAgreement.PrepaymentEstimatedProdnQty AS PrepaymentEstimatedProdnQty,
  PrepaymentAgreement.PrepaymentEstimatedProdnUoM AS PrepaymentEstimatedProdnUoM,
  PrepaymentAgreement.PrepaymentEstimatedProdPerUoM AS PrepaymentEstimatedProdPerUoM,
  PrepaymentAgreement.PrepaymentLimitCreditDate AS PrepaymentLimitCreditDate,
  PrepaymentAgreement.PrepaymentCmtmtPercent AS PrepaymentCmtmtPercent,
  PrepaymentAgreement.PrepaymentPayoutPercent AS PrepaymentPayoutPercent,
  PrepaymentAgreement.PrepaymentCreditContractFlag AS PrepaymentCreditContractFlag,
  PrepaymentAgreement.PrepaymentStartIntrstDateType AS PrepaymentStartIntrstDateType,
  PrepaymentAgreement.PrepaymentStartIntrstDate AS PrepaymentStartIntrstDate,
  PrepaymentAgreement.PrepaymentStopIntrstDateType AS PrepaymentStopIntrstDateType,
  PrepaymentAgreement.PrepaymentStopIntrstDate AS PrepaymentStopIntrstDate,
  PrepaymentAgreement.PrepaymentRestrictionsTxt AS PrepaymentRestrictionsTxt,
  PrepaymentAgreement.PrepaymentCreditHistoryTxt AS PrepaymentCreditHistoryTxt,
  PrepaymentAgreement.BPTaxNumber AS BPTaxNumber,
  PrepaymentAgreement.AddressNumber AS AddressNumber,
  PrepaymentAgreement.PrepaymentAgrmtExtCommentText AS PrepaymentAgrmtExtCommentText,
  PrepaymentAgreement.PrepaymentAgrmtIntCommentText AS PrepaymentAgrmtIntCommentText,
  PrepaymentAgreement.PrepaymentAgrmtLinkStatus AS PrepaymentAgrmtLinkStatus,
  PrepaymentAgreement.PrepaymentAgrmtPostingStatus AS PrepaymentAgrmtPostingStatus,
  PrepaymentAgreement.PrepaymentBarterLinkStatus AS PrepaymentBarterLinkStatus,
  PrepaymentAgreement.PrepaymentApprovalDateTime AS PrepaymentApprovalDateTime,
  PrepaymentAgreement.CountryCode AS CountryCode,
  PrepaymentAgreement.CompanyRegion AS CompanyRegion,
  PrepaymentAgreement.CustomerCityCode AS CustomerCityCode,
  PrepaymentAgreement.PrepaymentAgrmtRjcnReason AS PrepaymentAgrmtRjcnReason,
  PrepaymentAgreement.PrepaymentRejectionText AS PrepaymentRejectionText,
  PrepaymentAgreement.PrepaymentAgrmtSource AS PrepaymentAgrmtSource,
  PrepaymentAgreement.PrepaymentRenegttnStopDate AS PrepaymentRenegttnStopDate,
  PrepaymentAgreement.PrepaymentSuspendIntrstFromDte AS PrepaymentSuspendIntrstFromDte,
  PrepaymentAgreement.PrepaymentSuspendIntrstToDte AS PrepaymentSuspendIntrstToDte,
  PrepaymentAgreement.PrepaymentIsRenegotiated AS PrepaymentIsRenegotiated,
  PrepaymentAgreement.PrepaymentIsRenegttnStopIntrst AS PrepaymentIsRenegttnStopIntrst,
  PrepaymentAgreement.PrepaymentAgrmtSrceIsRenegttn AS PrepaymentAgrmtSrceIsRenegttn,
  PrepaymentAgreement.PrepaymentIsRenegttnCshSettlmt AS PrepaymentIsRenegttnCshSettlmt,
  PrepaymentAgreement.PrepaymentAgrmtIsReopened AS PrepaymentAgrmtIsReopened,
  cast( ' ' as ppmgag_e_reneguseraction preserving type ) AS PrepaymentRenegotiationAction,
  PrepaymentAgreement.CreationDateTime AS CreationDateTime,
  tstmp_to_dats( PrepaymentAgreement.CreationDateTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as CreationDate AS clientNULLasCreationDate,
  PrepaymentAgreement.LastChangedByUser AS LastChangedByUser,
  PrepaymentAgreement.LastChangeDateTime AS LastChangeDateTime
FROM I_PrepaymentAgreement AS PrepaymentAgreement
LEFT OUTER JOIN I_PrepaymentAgrmtIntrstRatesTP AS _InterestRates ON PrepaymentAgreementUUID = _InterestRates.PrepaymentAgreementUUID  -- association [0..*]
LEFT OUTER JOIN I_PrepaymentAgrmtSurchargeTP AS _Surcharge ON PrepaymentAgreementUUID = _Surcharge.PrepaymentAgreementUUID  -- association [0..*]
LEFT OUTER JOIN I_PrepaymentAgrmtDistrTP AS _Distribution ON PrepaymentAgreementUUID = _Distribution.PrepaymentAgreementUUID  -- association [0..*]
LEFT OUTER JOIN I_PrepaymentAgrmtCollateralTP AS _Collateral ON PrepaymentAgreementUUID = _Collateral.PrepaymentAgreementUUID  -- association [0..*]
LEFT OUTER JOIN I_PrepaymentAgrmtCommlRefTP AS _Reference ON PrepaymentAgreementUUID = _Reference.PrepaymentAgreementUUID  -- association [0..*]
LEFT OUTER JOIN I_PrepaymentAgrmtHarvestTP AS _PastHarvest ON PrepaymentAgreementUUID = _PastHarvest.PrepaymentAgreementUUID  -- association [0..*]
LEFT OUTER JOIN I_PrepaymentAgrmtDocumentsTP AS _Documents ON PrepaymentAgreementUUID = _Documents.PrepaymentAgreementUUID  -- association [0..*]
LEFT OUTER JOIN I_PrepaymentHistoryProdTP AS _ProdHistory ON PrepaymentAgreementUUID = _ProdHistory.PrepaymentAgreementUUID  -- association [0..*]
LEFT OUTER JOIN I_PrepaymentHistorySalesTP AS _SalesHistory ON PrepaymentAgreementUUID = _SalesHistory.PrepaymentAgreementUUID  -- association [0..*]
LEFT OUTER JOIN I_PrepaymentAgrmtPlantsTP AS _Plant ON PrepaymentAgreementUUID = _Plant.PrepaymentAgreementUUID  -- association [0..*]
LEFT OUTER JOIN I_PrepaymentAgrmtNotesTP AS _Notes ON PrepaymentAgreementUUID = _Notes.PrepaymentAgreementUUID  -- association [0..*]
LEFT OUTER JOIN I_PrepaymentAgrmtRenegttnTP AS _Renegttn ON PrepaymentAgreementUUID = _Renegttn.PrepaymentAgreementUUID  -- association [0..*]
LEFT OUTER JOIN I_PrepaymentEconomicGrpRel AS _PrepaymentEconomicGrpRel ON PrepaymentEconomicGroup = _PrepaymentEconomicGrpRel.PrepaymentEconomicGroup  -- association [0..*]
LEFT OUTER JOIN I_PrepaymentAgrmtCshSettlmtTP AS _CashSettlement ON PrepaymentAgreementUUID = _CashSettlement.PrepaymentAgreementUUID  -- association [0..*]
LEFT OUTER JOIN E_PrepaymentAgreement AS _Extension ON PrepaymentAgreementUUID = _Extension.PrepaymentAgreementUUID  -- association [0..1]
;