P_RTPCOrderFxdPricePrdDlvValue
P_RTPCOrderFxdPricePrdDlvValue is a Basic CDS View in SAP S/4HANA. It reads from 3 data sources (afpo, acdoca, I_Ledger) and exposes 32 fields with key fields OrderID, ControllingObject, OrderItem, CompanyCode, FiscalYear.
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PFIRTPCORFXPRDLV | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (32)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OrderID | acdoca | aufnr | |
| KEY | ControllingObject | objnr | ||
| KEY | OrderItem | aufps | ||
| KEY | CompanyCode | rbukrs | ||
| KEY | FiscalYear | gjahr | ||
| KEY | Ledger | rldnr | ||
| KEY | GLAccount | racct | ||
| KEY | ControllingDebitCreditCode | co_beknz | ||
| KEY | Material | acdoca | matnr | |
| KEY | FiscalYearPeriod | fiscyearper | ||
| ValuationUnit | rvunit | |||
| Unit | runit | |||
| IsSettled | xsettled | |||
| RefType | awtyp | |||
| RefDoc | awref | |||
| RefItem | awitem | |||
| RefOrg | aworg | |||
| RefSys | awsys | |||
| bttype | bttype | |||
| subta | subta | |||
| hsl | hsl | |||
| ksl | ksl | |||
| osl | osl | |||
| vsl | vsl | |||
| bsl | bsl | |||
| csl | csl | |||
| dsl | dsl | |||
| esl | esl | |||
| fsl | fsl | |||
| gsl | gsl | |||
| kfsl | kfsl | |||
| vmsl | vmsl |
@AbapCatalog.sqlViewName: 'PFIRTPCORFXPRDLV'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
//@EndUserText.label: 'RTPC Order Fixed-Price Products Delivered Value'
@VDM.viewType: #BASIC
@VDM.private:true
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
define view P_RTPCOrderFxdPricePrdDlvValue
as select from acdoca as _item
inner join afpo as _afpo on _afpo.aufnr = _item.aufnr
and _afpo.posnr = _item.aufps
and _afpo.fxpru = 'X'
and _afpo.matnr = _item.matnr
inner join I_Ledger as _ledger on _ledger.Ledger = _item.rldnr
and _ledger.LedgerType = '' //standard ledger only
{
key _item.aufnr as OrderID,
key objnr as ControllingObject,
key aufps as OrderItem,
key rbukrs as CompanyCode,
key gjahr as FiscalYear,
key rldnr as Ledger,
key racct as GLAccount,
key co_beknz as ControllingDebitCreditCode,
key _item.matnr as Material,
key fiscyearper as FiscalYearPeriod,
rvunit as ValuationUnit,
runit as Unit,
xsettled as IsSettled,
awtyp as RefType,
awref as RefDoc,
awitem as RefItem,
aworg as RefOrg,
awsys as RefSys,
bttype,
subta,
hsl,
ksl,
osl,
vsl,
bsl,
csl,
dsl,
esl,
fsl,
gsl,
kfsl,
vmsl
}
where
(
accasty = 'OR'
or accasty = 'OP'
)
and ktosl = 'GBB'
and co_beknz= 'L'
//and bttype = 'RMWF'
and bttype <> 'TBCS' --ignore Transaction-Based Split
// and bttype <> 'EBWP' --ignore Event-Based WIP posting
and(
autyp = '10'
or autyp = '40'
)
//and aufnr <> paufnr //exclude pre-settlement
//and co_belnr <> ''
and objnr <> ''
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_LEDGER",
"ACDOCA",
"AFPO"
],
"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