C_PrepaymentAgrmtApproval

DDL: C_PREPAYMENTAGRMTAPPROVAL SQL: CPPMGAGRMTAPRVL Type: view CONSUMPTION

Consumption view for Approve Prepayments

C_PrepaymentAgrmtApproval is a Consumption CDS View that provides data about "Consumption view for Approve Prepayments" in SAP S/4HANA. It reads from 1 data source (I_PrepaymentAgreementTP) and exposes 100 fields with key field PrepaymentAgreementUUID. It has 23 associations to related views. It is used in 1 Fiori application: Approve Prepayment Agreements.

Data Sources (1)

SourceAliasJoin Type
I_PrepaymentAgreementTP PrepaymentAgrmntApproval from

Associations (23)

CardinalityTargetAliasCondition
[0..*] I_UnitOfMeasureText _UoMText $projection.PrepaymentCreditTotalAreaUoM = _UoMText.UnitOfMeasure ---
[0..*] I_CurrencyText _CurrencyText $projection.PrepaymentAgreementCurrency = _CurrencyText.Currency -- Extension View for Free Characteristics in Prepayment Agreement Header
[0..1] E_PrepaymentAgreement _Extension $projection.PrepaymentAgreementUUID = _Extension.PrepaymentAgreementUUID --Commodity Type
[0..*] I_CmmdtyText _CmmdtyType $projection.PrepaymentAgreementCommodity = _CmmdtyType.Commodity ---
[0..1] I_CompanyCode _CoCode $projection.CompanyCode = _CoCode.CompanyCode --Business partner
[0..1] I_BusinessPartner _BPText $projection.Counterparty = _BPText.BusinessPartner ---
[0..*] I_BusPartCategoryText _BusPartCatTxt $projection.PrepaymentAgrmtBPType = _BusPartCatTxt.BusinessPartnerCategoryText and _BusPartCatTxt.Language = $session.system_language ---
[0..1] C_PurchasingGroupValueHelp _PurgGrpTxt _PurgGrpTxt.PurchasingGroup = $projection.PurchasingGroup ---
[0..1] C_PurchasingOrganizationVHTemp _PurgOrgTxt $projection.PurchasingOrganization = _PurgOrgTxt.PurchasingOrganization ---
[0..1] I_SalesOrganizationText _SlsOrgTxt $projection.SalesOrganization = _SlsOrgTxt.SalesOrganization and _SlsOrgTxt.Language = $session.system_language ---
[0..1] I_DistributionChannelText _DistrChnlTxt $projection.DistributionChannel = _DistrChnlTxt.DistributionChannel and _DistrChnlTxt.Language = $session.system_language ---
[0..1] I_DivisionText _DivnTxt $projection.Division = _DivnTxt.Division and _DivnTxt.Language = $session.system_language ---
[0..1] I_PlantStdVH _PlntTxt $projection.Plant = _PlntTxt.Plant -- Economic Group Text
[0..1] I_PrepaymentEconomicGrpVH _EconomicGroupText $projection.PrepaymentEconomicGroup = _EconomicGroupText.PrepaymentEconomicGroup and $projection.Counterparty = _EconomicGroupText.Counterparty --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 --
[0..1] I_PrepaymentAgrmtLinkStsText _LinkStatusText $projection.PrepaymentAgrmtLinkStatus = _LinkStatusText.PrepaymentAgrmtDomainCode and _LinkStatusText.Language = $session.system_language --Prepayment user text
[0..1] I_PrepaymentAgrmtUserNameText _UserText $projection.CreatedByUser = _UserText.UserName ---
[0..*] I_PrepaymentAgreementTypeVH _PrepaymentAgrmtTxt $projection.PrepaymentAgreementType = _PrepaymentAgrmtTxt.PrepaymentAgreementType and _PrepaymentAgrmtTxt.Language = $session.system_language ---
[0..1] I_PrepaymentAgrmtCategoryText _PrepaymentAgrmtCatTxt $projection.PrepaymentAgreementCategory = _PrepaymentAgrmtCatTxt.PrepaymentAgrmtDomainCode and _PrepaymentAgrmtCatTxt.Language = $session.system_language ---
[0..*] I_PrepaymentStrtIntrstTypeVH _StartIntrstTypeText $projection.PrepaymentStartIntrstDateType = _StartIntrstTypeText.PrepaymentAgrmtDomainCode ---
[0..*] I_PrepaymentStopIntrstTypeVH _StopIntrstTypeText $projection.PrepaymentStopIntrstDateType = _StopIntrstTypeText.PrepaymentAgrmtDomainCode ---
[0..1] I_PrepaymentAgrmtRjcnReasonVH _PrepaymentAgrmtRjcnRsn $projection.PrepaymentAgrmtRjcnReason = _PrepaymentAgrmtRjcnRsn.PrepaymentAgrmtRjcnReason

Annotations (21)

NameValueLevelField
AbapCatalog.sqlViewName CPPMGAGRMTAPRVL view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Consumption view for Approve Prepayments view
VDM.viewType #CONSUMPTION view
Search.searchable true view
Metadata.allowExtensions true view
OData.publish true view
ClientHandling.type #CLIENT_DEPENDENT view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.compositionRoot true view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.draftEnabled false view
ObjectModel.createEnabled false view
ObjectModel.updateEnabled false view
ObjectModel.deleteEnabled false view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view

Fiori Apps (1)

App IDApp NameTypeDescription
F5048 Approve Prepayment Agreements Transactional

Approve Prepayment Agreements

Business Role: Credit Controller - Prepayments

This feature enables you to approve or reject a prepayment agreement that has been released using Approve Prepayment Agreements app.

Fields (100)

KeyFieldSource TableSource FieldDescription
IsRejected
Usertext_UserText
_UoMText _UoMText
_CurrencyText _CurrencyText
_CmmdtyType _CmmdtyType
_CoCode _CoCode
_BPText _BPText
_PlntTxt _PlntTxt
_BusPartCatTxt _BusPartCatTxt
_PurgGrpTxt _PurgGrpTxt
_PurgOrgTxt _PurgOrgTxt
_SlsOrgTxt _SlsOrgTxt
_DistrChnlTxt _DistrChnlTxt
_DivnTxt _DivnTxt
_OrderStatusText _OrderStatusText
_PrepaymentAgrmtTxt _PrepaymentAgrmtTxt
_PrepaymentAgrmtCatTxt _PrepaymentAgrmtCatTxt
_StartIntrstTypeText _StartIntrstTypeText
_StopIntrstTypeText _StopIntrstTypeText
_LinkStatusText _LinkStatusText
_PostingStatusText _PostingStatusText
_EconomicGroupText _EconomicGroupText
_PrepaymentAgrmtRjcnRsn _PrepaymentAgrmtRjcnRsn
KEY PrepaymentAgreementUUID I_PrepaymentAgreementTP PrepaymentAgreementUUID Key
PrepaymentAgreement I_PrepaymentAgreementTP PrepaymentAgreement Renegotiation PPA
PrepaymentAgreementType I_PrepaymentAgreementTP PrepaymentAgreementType Prepay Agreemnt Type
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
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
PurchasingGroup I_PrepaymentAgreementTP PurchasingGroup Purchasing Group
PurchasingOrganization I_PrepaymentAgreementTP PurchasingOrganization Purchasing Organization
SalesOrganization I_PrepaymentAgreementTP SalesOrganization Sales Organization
DistributionChannel I_PrepaymentAgreementTP DistributionChannel RefDistCh-Cust/Mat.
Division I_PrepaymentAgreementTP Division Internal Division ID
Plant I_PrepaymentAgreementTP Plant Valuation Area
PrepaymentAgrmtCropSeason I_PrepaymentAgreementTP PrepaymentAgrmtCropSeason Crop Season
Counterparty I_PrepaymentAgreementTP Counterparty Supplier
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
PrepaymentEstimatedProdnQty I_PrepaymentAgreementTP PrepaymentEstimatedProdnQty Estimated Production
PrepaymentEstimatedProdnUoM I_PrepaymentAgreementTP PrepaymentEstimatedProdnUoM Estimated Prod. 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
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
PrepaymentAgrmtExtCommentText I_PrepaymentAgreementTP PrepaymentAgrmtExtCommentText Internal Comments
PrepaymentAgrmtIntCommentText I_PrepaymentAgreementTP PrepaymentAgrmtIntCommentText External Comments
PrepaymentAgrmtRjcnReason I_PrepaymentAgreementTP PrepaymentAgrmtRjcnReason Reason Code
PrepaymentRejectionText I_PrepaymentAgreementTP PrepaymentRejectionText Rejection Comment
CreatedByUser I_PrepaymentAgreementTP CreatedByUser User Name
CreationDate I_PrepaymentAgreementTP CreationDate Time Stamp
CreationDateTime I_PrepaymentAgreementTP CreationDateTime Timestamp
LastChangeDateTime I_PrepaymentAgreementTP LastChangeDateTime Timestamp
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

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_PrepaymentAgrmtApproval.
-- 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: CPPMGAGRMTAPRVL

CREATE VIEW C_PrepaymentAgrmtApproval AS
SELECT
  cast(PrepaymentAgrmntApproval.PrepaymentAgrmtRjcnReason as abap.char(01) ) AS IsRejected,
  PrepaymentAgrmntApproval.PrepaymentAgreementUUID AS PrepaymentAgreementUUID,
  PrepaymentAgrmntApproval.PrepaymentAgreement AS PrepaymentAgreement,
  PrepaymentAgrmntApproval.PrepaymentAgreementType AS PrepaymentAgreementType,
  PrepaymentAgrmntApproval.PrepaymentAgreementCategory AS PrepaymentAgreementCategory,
  PrepaymentAgrmntApproval.PrepaymentAgreementDescription AS PrepaymentAgreementDescription,
  PrepaymentAgrmntApproval.PrepaymentAgreementAmount AS PrepaymentAgreementAmount,
  PrepaymentAgrmntApproval.PrepaymentAgreementCurrency AS PrepaymentAgreementCurrency,
  PrepaymentAgrmntApproval.PrepaymentAgreementStatus AS PrepaymentAgreementStatus,
  PrepaymentAgrmntApproval.PrepaymentAgrmtLinkStatus AS PrepaymentAgrmtLinkStatus,
  PrepaymentAgrmntApproval.PrepaymentAgrmtPostingStatus AS PrepaymentAgrmtPostingStatus,
  PrepaymentAgrmntApproval.PrepaymentAgreementCommodity AS PrepaymentAgreementCommodity,
  PrepaymentAgrmntApproval.CompanyCode AS CompanyCode,
  PrepaymentAgrmntApproval.PrepaymentEconomicGroup AS PrepaymentEconomicGroup,
  PrepaymentAgrmntApproval.PrepaymentEconomicGroup AS PrepaymentEconomicGroupFilter,
  PrepaymentAgrmntApproval.PurchasingGroup AS PurchasingGroup,
  PrepaymentAgrmntApproval.PurchasingOrganization AS PurchasingOrganization,
  PrepaymentAgrmntApproval.SalesOrganization AS SalesOrganization,
  PrepaymentAgrmntApproval.DistributionChannel AS DistributionChannel,
  PrepaymentAgrmntApproval.Division AS Division,
  PrepaymentAgrmntApproval.Plant AS Plant,
  PrepaymentAgrmntApproval.PrepaymentAgrmtCropSeason AS PrepaymentAgrmtCropSeason,
  PrepaymentAgrmntApproval.Counterparty AS Counterparty,
  PrepaymentAgrmntApproval.PrepaymentAgrmtBPType AS PrepaymentAgrmtBPType,
  PrepaymentAgrmntApproval.PrepaymentAgrmtDueDate AS PrepaymentAgrmtDueDate,
  PrepaymentAgrmntApproval.PrepaymentAgreementRating AS PrepaymentAgreementRating,
  PrepaymentAgrmntApproval.PrepaymentLeasedPlantAreaQty AS PrepaymentLeasedPlantAreaQty,
  PrepaymentAgrmntApproval.PrepaymentPlantingAreaUoM AS PrepaymentPlantingAreaUoM,
  PrepaymentAgrmntApproval.PrepaymentProdtvPlantAreaQty AS PrepaymentProdtvPlantAreaQty,
  PrepaymentAgrmntApproval.PrepaymentProdtvPlantAreaUoM AS PrepaymentProdtvPlantAreaUoM,
  PrepaymentAgrmntApproval.PrepaymentOwnPlantingAreaQty AS PrepaymentOwnPlantingAreaQty,
  PrepaymentAgrmntApproval.PrepaymentOwnPlantingAreaUoM AS PrepaymentOwnPlantingAreaUoM,
  PrepaymentAgrmntApproval.PrepaymentCreditTotalAreaQty AS PrepaymentCreditTotalAreaQty,
  PrepaymentAgrmntApproval.PrepaymentCreditTotalAreaUoM AS PrepaymentCreditTotalAreaUoM,
  PrepaymentAgrmntApproval.PrepaymentPledgedAreaQty AS PrepaymentPledgedAreaQty,
  PrepaymentAgrmntApproval.PrepaymentPledgedAreaUoM AS PrepaymentPledgedAreaUoM,
  PrepaymentAgrmntApproval.PrepaymentPledgedProdtvAreaQty AS PrepaymentPledgedProdtvAreaQty,
  PrepaymentAgrmntApproval.PrepaymentPledgedProdtvAreaUoM AS PrepaymentPledgedProdtvAreaUoM,
  PrepaymentAgrmntApproval.PrepaymentOwnPledgedAreaQty AS PrepaymentOwnPledgedAreaQty,
  PrepaymentAgrmntApproval.PrepaymentOwnPledgedAreaUoM AS PrepaymentOwnPledgedAreaUoM,
  PrepaymentAgrmntApproval.PrepaymentTotalPledgedAreaQty AS PrepaymentTotalPledgedAreaQty,
  PrepaymentAgrmntApproval.PrepaymentTotalPledgedAreaUoM AS PrepaymentTotalPledgedAreaUoM,
  PrepaymentAgrmntApproval.PrepaymentCostPerHectareAmt AS PrepaymentCostPerHectareAmt,
  PrepaymentAgrmntApproval.PrepaymentCostHectareCurrency AS PrepaymentCostHectareCurrency,
  PrepaymentAgrmntApproval.PrepaymentCostOfPledgeAmt AS PrepaymentCostOfPledgeAmt,
  PrepaymentAgrmntApproval.PrepaymentCostOfPledgeCurrency AS PrepaymentCostOfPledgeCurrency,
  PrepaymentAgrmntApproval.PrepaymentCreditTotalCost AS PrepaymentCreditTotalCost,
  PrepaymentAgrmntApproval.PrepaymentTotalCostCurrency AS PrepaymentTotalCostCurrency,
  PrepaymentAgrmntApproval.PrepaymentProductivityFctrQty AS PrepaymentProductivityFctrQty,
  PrepaymentAgrmntApproval.PrepaymentProductivityFctrUoM AS PrepaymentProductivityFctrUoM,
  PrepaymentAgrmntApproval.PrepaymentCreditRegion AS PrepaymentCreditRegion,
  PrepaymentAgrmntApproval.PrepaymentEstimatedProdnQty AS PrepaymentEstimatedProdnQty,
  PrepaymentAgrmntApproval.PrepaymentEstimatedProdnUoM AS PrepaymentEstimatedProdnUoM,
  PrepaymentAgrmntApproval.PrepaymentLimitCreditDate AS PrepaymentLimitCreditDate,
  PrepaymentAgrmntApproval.PrepaymentCmtmtPercent AS PrepaymentCmtmtPercent,
  PrepaymentAgrmntApproval.PrepaymentPayoutPercent AS PrepaymentPayoutPercent,
  PrepaymentAgrmntApproval.PrepaymentCreditContractFlag AS PrepaymentCreditContractFlag,
  PrepaymentAgrmntApproval.PrepaymentStartIntrstDateType AS PrepaymentStartIntrstDateType,
  PrepaymentAgrmntApproval.PrepaymentStartIntrstDate AS PrepaymentStartIntrstDate,
  PrepaymentAgrmntApproval.PrepaymentStopIntrstDateType AS PrepaymentStopIntrstDateType,
  PrepaymentAgrmntApproval.PrepaymentStopIntrstDate AS PrepaymentStopIntrstDate,
  PrepaymentAgrmntApproval.PrepaymentRestrictionsTxt AS PrepaymentRestrictionsTxt,
  PrepaymentAgrmntApproval.PrepaymentCreditHistoryTxt AS PrepaymentCreditHistoryTxt,
  PrepaymentAgrmntApproval.BPTaxNumber AS BPTaxNumber,
  PrepaymentAgrmntApproval.PrepaymentAgrmtExtCommentText AS PrepaymentAgrmtExtCommentText,
  PrepaymentAgrmntApproval.PrepaymentAgrmtIntCommentText AS PrepaymentAgrmtIntCommentText,
  PrepaymentAgrmntApproval.PrepaymentAgrmtRjcnReason AS PrepaymentAgrmtRjcnReason,
  PrepaymentAgrmntApproval.PrepaymentRejectionText AS PrepaymentRejectionText,
  PrepaymentAgrmntApproval.CreatedByUser AS CreatedByUser,
  PrepaymentAgrmntApproval.CreationDate AS CreationDate,
  PrepaymentAgrmntApproval.CreationDateTime AS CreationDateTime,
  PrepaymentAgrmntApproval.LastChangeDateTime AS LastChangeDateTime,
  _BPText.FirstName AS FirstName,
  _BPText.LastName AS LastName,
  _BPText.OrganizationBPName1 AS OrganizationBPName1,
  _BPText.OrganizationBPName2 AS OrganizationBPName2,
  _BPText.GroupBusinessPartnerName1 AS GroupBusinessPartnerName1,
  _BPText.GroupBusinessPartnerName2 AS GroupBusinessPartnerName2
FROM I_PrepaymentAgreementTP AS PrepaymentAgrmntApproval
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 E_PrepaymentAgreement AS _Extension ON PrepaymentAgreementUUID = _Extension.PrepaymentAgreementUUID  -- association [0..1]
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.BusinessPartnerCategoryText AND _BusPartCatTxt.Language = $session.system_language  -- association [0..*]
LEFT OUTER JOIN C_PurchasingGroupValueHelp 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_PlantStdVH AS _PlntTxt ON Plant = _PlntTxt.Plant  -- association [0..1]
LEFT OUTER JOIN I_PrepaymentEconomicGrpVH AS _EconomicGroupText ON PrepaymentEconomicGroup = _EconomicGroupText.PrepaymentEconomicGroup AND Counterparty = _EconomicGroupText.Counterparty  -- 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_PrepaymentAgrmtLinkStsText AS _LinkStatusText ON PrepaymentAgrmtLinkStatus = _LinkStatusText.PrepaymentAgrmtDomainCode AND _LinkStatusText.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 AND _PrepaymentAgrmtTxt.Language = $session.system_language  -- 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_PrepaymentStrtIntrstTypeVH AS _StartIntrstTypeText ON PrepaymentStartIntrstDateType = _StartIntrstTypeText.PrepaymentAgrmtDomainCode  -- association [0..*]
LEFT OUTER JOIN I_PrepaymentStopIntrstTypeVH AS _StopIntrstTypeText ON PrepaymentStopIntrstDateType = _StopIntrstTypeText.PrepaymentAgrmtDomainCode  -- association [0..*]
LEFT OUTER JOIN I_PrepaymentAgrmtRjcnReasonVH AS _PrepaymentAgrmtRjcnRsn ON PrepaymentAgrmtRjcnReason = _PrepaymentAgrmtRjcnRsn.PrepaymentAgrmtRjcnReason  -- association [0..1]
;