C_PrepaymentAgrmtWorkCenter
Prepayment Agreement Work Center C View
C_PrepaymentAgrmtWorkCenter is a Consumption CDS View that provides data about "Prepayment Agreement Work Center C View" in SAP S/4HANA. It reads from 1 data source (I_PrepaymentAgreementTP) and exposes 59 fields with key field PrepaymentAgreementUUID. It has 21 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PrepaymentAgreementTP | PrepaymentAgmnt | from |
Associations (21)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_PrepaymentAgrmtAmount | _PrepaymentAmount | $projection.PrepaymentAgreement = _PrepaymentAmount.PrepaymentAgreement and _PrepaymentAmount.PrepaymentAgrmtLinkType = 'LN' -- |
| [0..*] | I_UnitOfMeasureText | _UoMText | $projection.PrepaymentCreditTotalAreaUoM = _UoMText.UnitOfMeasure --- |
| [0..*] | I_CurrencyText | _CurrencyText | $projection.PrepaymentAgreementCurrency = _CurrencyText.Currency --- |
| [0..*] | I_CmmdtyText | _CmmdtyType | $projection.PrepaymentAgreementCommodity = _CmmdtyType.Commodity --- |
| [0..1] | I_CompanyCode | _CoCode | $projection.CompanyCode = _CoCode.CompanyCode --- |
| [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_PrepaymentEconomicGrpTxt | _EconomicGroupText | $projection.PrepaymentEconomicGroup = _EconomicGroupText.PrepaymentEconomicGroup and $projection.Counterparty = _EconomicGroupText.Counterparty and _EconomicGroupText.Language = $session.system_language --- |
| [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_PrepaymentAgrmtUserNameText | _UserText | $projection.CreatedByUser = _UserText.UserName --- |
| [0..*] | I_PrepaymentAgreementTypeVH | _PrepaymentAgrmtTxt | $projection.PrepaymentAgreementType = _PrepaymentAgrmtTxt.PrepaymentAgreementType and _PrepaymentAgrmtTxt.Language = $session.system_language --- |
| [0..*] | I_PrepaymentAgrmtCategoryText | _PrepaymentAgrmtCatTxt | $projection.PrepaymentAgreementCategory = _PrepaymentAgrmtCatTxt.PrepaymentAgrmtDomainCode -- |
| [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 --- |
Annotations (20)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPPMGAGRMWRKCNTR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | Prepayment Agreement Work Center C View | 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 | true | 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 |
Fields (59)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 | |
| PrepaymentBarterLinkStatus | I_PrepaymentAgreementTP | PrepaymentBarterLinkStatus | Prepmt Barter 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 | |
| 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 | |
| PrepaymentCreditTotalAreaUoM | I_PrepaymentAgreementTP | PrepaymentCreditTotalAreaUoM | Total Area UoM | |
| CreatedByUser | I_PrepaymentAgreementTP | CreatedByUser | User Name | |
| CreationDate | I_PrepaymentAgreementTP | CreationDate | Time Stamp | |
| CreationDateTime | I_PrepaymentAgreementTP | CreationDateTime | Timestamp | |
| LastChangeDateTime | I_PrepaymentAgreementTP | LastChangeDateTime | Timestamp | |
| _UoMText | _UoMText | |||
| _CurrencyText | _CurrencyText | |||
| _CmmdtyType | _CmmdtyType | |||
| _CoCode | _CoCode | |||
| _BPText | _BPText | |||
| _BusPartCatTxt | _BusPartCatTxt | |||
| _PurgGrpTxt | _PurgGrpTxt | |||
| _PurgOrgTxt | _PurgOrgTxt | |||
| _SlsOrgTxt | _SlsOrgTxt | |||
| _DistrChnlTxt | _DistrChnlTxt | |||
| _DivnTxt | _DivnTxt | |||
| _PlntTxt | _PlntTxt | |||
| _OrderStatusText | _OrderStatusText | |||
| _UserText | _UserText | |||
| _PrepaymentAgrmtTxt | _PrepaymentAgrmtTxt | |||
| _PrepaymentAgrmtCatTxt | _PrepaymentAgrmtCatTxt | |||
| _LinkStatusText | _LinkStatusText | |||
| _PostingStatusText | _PostingStatusText | |||
| _EconomicGroupText | _EconomicGroupText | |||
| _BarterLinkStatusText | _BarterLinkStatusText | |||
| _PrepaymentEconomicGrpRel | I_PrepaymentAgreementTP | _PrepaymentEconomicGrpRel | ||
| PrepaymentAgrmtCshSettlmtAmt | _PrepaymentAmount | PrepaymentAgrmtCshSettlmtAmt | Cash Settlmt Amount | |
| PrepaymentTotalRenegttnAmount | _PrepaymentAmount | PrepaymentTotalRenegttnAmount | Total Amount | |
| PrepaymentTotalRecoveredAmount | _PrepaymentAmount | PrepaymentTotalRecoveredAmount |
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_PrepaymentAgrmtWorkCenter.
-- 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: CPPMGAGRMWRKCNTR
CREATE VIEW C_PrepaymentAgrmtWorkCenter AS
SELECT
PrepaymentAgmnt.PrepaymentAgreementUUID AS PrepaymentAgreementUUID,
PrepaymentAgmnt.PrepaymentAgreement AS PrepaymentAgreement,
PrepaymentAgmnt.PrepaymentAgreementType AS PrepaymentAgreementType,
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.PrepaymentAgrmtPostingStatus AS PrepaymentAgrmtPostingStatus,
PrepaymentAgmnt.PrepaymentBarterLinkStatus AS PrepaymentBarterLinkStatus,
PrepaymentAgmnt.PrepaymentAgreementCommodity AS PrepaymentAgreementCommodity,
PrepaymentAgmnt.CompanyCode AS CompanyCode,
PrepaymentAgmnt.PrepaymentEconomicGroup AS PrepaymentEconomicGroup,
PrepaymentAgmnt.PrepaymentEconomicGroup AS PrepaymentEconomicGroupFilter,
PrepaymentAgmnt.PurchasingGroup AS PurchasingGroup,
PrepaymentAgmnt.PurchasingOrganization AS PurchasingOrganization,
PrepaymentAgmnt.SalesOrganization AS SalesOrganization,
PrepaymentAgmnt.DistributionChannel AS DistributionChannel,
PrepaymentAgmnt.Division AS Division,
PrepaymentAgmnt.Plant AS Plant,
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.PrepaymentCreditTotalAreaUoM AS PrepaymentCreditTotalAreaUoM,
PrepaymentAgmnt.CreatedByUser AS CreatedByUser,
PrepaymentAgmnt.CreationDate AS CreationDate,
PrepaymentAgmnt.CreationDateTime AS CreationDateTime,
PrepaymentAgmnt.LastChangeDateTime AS LastChangeDateTime,
PrepaymentAgmnt._PrepaymentEconomicGrpRel AS _PrepaymentEconomicGrpRel,
_PrepaymentAmount.PrepaymentAgrmtCshSettlmtAmt AS PrepaymentAgrmtCshSettlmtAmt,
_PrepaymentAmount.PrepaymentTotalRenegttnAmount AS PrepaymentTotalRenegttnAmount,
_PrepaymentAmount.PrepaymentTotalRecoveredAmount AS PrepaymentTotalRecoveredAmount
FROM I_PrepaymentAgreementTP AS PrepaymentAgmnt
LEFT OUTER JOIN I_PrepaymentAgrmtAmount AS _PrepaymentAmount ON PrepaymentAgreement = _PrepaymentAmount.PrepaymentAgreement AND _PrepaymentAmount.PrepaymentAgrmtLinkType = 'LN' -- association [1..1]
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.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_PrepaymentEconomicGrpTxt AS _EconomicGroupText ON PrepaymentEconomicGroup = _EconomicGroupText.PrepaymentEconomicGroup AND Counterparty = _EconomicGroupText.Counterparty AND _EconomicGroupText.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 AND _PrepaymentAgrmtTxt.Language = $session.system_language -- association [0..*]
LEFT OUTER JOIN I_PrepaymentAgrmtCategoryText AS _PrepaymentAgrmtCatTxt ON PrepaymentAgreementCategory = _PrepaymentAgrmtCatTxt.PrepaymentAgrmtDomainCode -- association [0..*]
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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA