P_PrepaymentDocContractAmount
Prepayment Contract Document Amount
P_PrepaymentDocContractAmount is a Composite CDS View that provides data about "Prepayment Contract Document Amount" in SAP S/4HANA. It reads from 3 data sources (I_PrepayWrkCtrAllowedDocTypes, I_PreAgrmtTradingContract, I_PreAgrmtTradingContractItem) and exposes 7 fields with key fields DocNumber, DocumentItemNumber.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_PrepayWrkCtrAllowedDocTypes | DocTypes | from |
| I_PreAgrmtTradingContract | Document | inner |
| I_PreAgrmtTradingContractItem | DocumentItem | inner |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPMGCTRDOCAMT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| EndUserText.label | Prepayment Contract Document Amount | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DocNumber | I_PreAgrmtTradingContract | TradingContract | |
| KEY | DocumentItemNumber | I_PreAgrmtTradingContractItem | TradingContractItem | |
| PrepaymentAgrmtRefDocument | ||||
| CompanyCode | I_PreAgrmtTradingContract | CompanyCode | ||
| DocumentType | I_PreAgrmtTradingContract | TradingContractType | ||
| PrepaymentTotalAmt | ||||
| PrepaymentTotalAmtCrcy | I_PreAgrmtTradingContractItem | TrdgContrTotalNetAmountCrcy |
@AbapCatalog.sqlViewName: 'PPMGCTRDOCAMT'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm : #SESSION_VARIABLE
@VDM.private : true
@VDM.viewType : #COMPOSITE
@ObjectModel.usageType.sizeCategory : #L
@ObjectModel.usageType.serviceQuality : #C
@ObjectModel.usageType.dataClass : #TRANSACTIONAL
@EndUserText.label: 'Prepayment Contract Document Amount'
define view P_PrepaymentDocContractAmount
-- Valid Doc Types
as select from I_PrepayWrkCtrAllowedDocTypes as DocTypes
-- Document Header
inner join I_PreAgrmtTradingContract as Document on Document.TradingContractType = DocTypes.PrepaymentAgrmtRefDocumentType
-- Document Item
inner join I_PreAgrmtTradingContractItem as DocumentItem on DocumentItem.TradingContract = Document.TradingContract
{
key Document.TradingContract as DocNumber,
key DocumentItem.TradingContractItem as DocumentItemNumber,
lpad( Document.TradingContract, 25, '0' ) as PrepaymentAgrmtRefDocument,
Document.CompanyCode as CompanyCode,
Document.TradingContractType as DocumentType,
@Semantics.amount.currencyCode: 'PrepaymentTotalAmtCrcy'
cast( DocumentItem.TrdgContrTotalNetAmount as abap.curr(23,2) ) as PrepaymentTotalAmt,
@Semantics.currencyCode: true
DocumentItem.TrdgContrTotalNetAmountCrcy as PrepaymentTotalAmtCrcy
}
where
DocTypes.PrepaymentAgrmtWorkCenterType = '1'
and DocTypes.PrepaymentAgrmtRefDocumentCat = 'TC'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PREAGRMTTRADINGCONTRACT",
"I_PREAGRMTTRADINGCONTRACTITEM",
"I_PREPAYWRKCTRALLOWEDDOCTYPES"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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