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