P_RTPCOrderCostDistrwthAwref
P_RTPCOrderCostDistrwthAwref is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (acdoca, I_Ledger) and exposes 17 fields with key fields ControllingObject, OrderID, OrderItem, CompanyCode, Ledger.
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PFIRTPCORCSTDREF | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | 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 (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ControllingObject | objnr | ||
| KEY | OrderID | aufnr | ||
| KEY | OrderItem | aufps | ||
| KEY | CompanyCode | rbukrs | ||
| KEY | Ledger | rldnr | ||
| KEY | FiscalYearPeriod | fiscyearper | ||
| KEY | DocNumber | belnr | ||
| KEY | RefType | awtyp | ||
| KEY | RefDoc | awref | ||
| KEY | RefOrg | aworg | ||
| KEY | RefSys | awsys | ||
| OrderCategory | autyp | |||
| TransactionTypeDetermination | ktosl | |||
| ControllingObjectDebitType | co_beknz | |||
| AccountAssignmentType | accasty | |||
| PartnerAccountAssignmentType | paccasty | |||
| BusinessTransactionType | bttype |
@AbapCatalog.sqlViewName: 'PFIRTPCORCSTDREF'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true
@AccessControl.authorizationCheck: #MANDATORY
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #BASIC
@VDM.private:true
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
define view P_RTPCOrderCostDistrwthAwref
as select from acdoca as item
inner join I_Ledger as ledger on ledger.Ledger = item.rldnr
and ledger.LedgerType = '' //standard ledger only
{
key objnr as ControllingObject,
key aufnr as OrderID,
key aufps as OrderItem,
key rbukrs as CompanyCode,
key rldnr as Ledger,
key fiscyearper as FiscalYearPeriod,
key belnr as DocNumber,
key awtyp as RefType,
key awref as RefDoc,
key aworg as RefOrg,
key awsys as RefSys,
autyp as OrderCategory,
ktosl as TransactionTypeDetermination,
co_beknz as ControllingObjectDebitType,
accasty as AccountAssignmentType,
paccasty as PartnerAccountAssignmentType,
bttype as BusinessTransactionType
}
where
(
autyp = '10'
or autyp = '40'
or pautyp = '10' //For other receiver distributed cost
or pautyp = '40'
)
and objnr <> ''
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_LEDGER",
"ACDOCA"
],
"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