P_RTPCOrderFxdPrcProdDlvrdCost
P_RTPCOrderFxdPrcProdDlvrdCost is a Basic CDS View in SAP S/4HANA. It reads from 3 data sources (afpo, acdoca, I_Ledger) and exposes 28 fields with key fields OrderID, ControllingObject, OrderItem, CompanyCode, Ledger.
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PFIRTPCFXDPRDGR | 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 (28)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OrderID | acdoca | aufnr | |
| KEY | ControllingObject | objnr | ||
| KEY | OrderItem | aufps | ||
| KEY | CompanyCode | rbukrs | ||
| KEY | Ledger | rldnr | ||
| KEY | GLAccount | racct | ||
| KEY | ControllingDebitCreditCode | co_beknz | ||
| KEY | Material | acdoca | matnr | |
| KEY | FiscalYearPeriod | fiscyearper | ||
| ValuationUnit | rvunit | |||
| Unit | runit | |||
| IsSettled | xsettled | |||
| IsReversed | xreversed | |||
| PostingDate | budat | |||
| timestamp | timestamp | |||
| hsl | hsl | |||
| ksl | ksl | |||
| osl | osl | |||
| vsl | vsl | |||
| bsl | bsl | |||
| csl | csl | |||
| dsl | dsl | |||
| esl | esl | |||
| fsl | fsl | |||
| gsl | gsl | |||
| kfsl | kfsl | |||
| vmsl | vmsl | |||
| msl | msl |
@AbapCatalog.sqlViewName: 'PFIRTPCFXDPRDGR'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
//@EndUserText.label: 'RTPC Order Fixed Price CoProducts Delivered Cost'
@VDM.viewType: #BASIC
@VDM.private:true
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
define view P_RTPCOrderFxdPrcProdDlvrdCost
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 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,
xreversed as IsReversed,
budat as PostingDate,
timestamp,
hsl,
ksl,
osl,
vsl,
bsl,
csl,
dsl,
esl,
fsl,
gsl,
kfsl,
vmsl,
msl
}
where
accasty = 'OP'
and ktosl = 'GBB'
and co_beknz = 'L'
and bttype <> 'TBCS' --ignore Transaction-Based Split
and(
autyp = '10'
or autyp = '40'
)
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