P_RTPCORDERWIPRLVTACTCSTWTHREF
P_RTPCORDERWIPRLVTACTCSTWTHREF is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (acdoca, I_Ledger) and exposes 11 fields with key fields ControllingObject, OrderID, OrderItem, CompanyCode, Ledger.
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PFIEBORACTCSTREF | 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 (11)
| 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 |
@AbapCatalog.sqlViewName: 'PFIEBORACTCSTREF'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true
@AccessControl.authorizationCheck: #MANDATORY
@ClientHandling.algorithm: #SESSION_VARIABLE
//@EndUserText.label: 'RTPC Order WIP Relevant Actual Cost with Reference Document'
@VDM.viewType: #BASIC
@VDM.private:true
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
define view P_RTPCORDERWIPRLVTACTCSTWTHREF
as select from acdoca as _item
inner join I_Ledger as _ledger on _ledger.Ledger = _item.rldnr
and _ledger.LedgerType = '' //standard ledger only
left outer to one join I_RealTimeMfgOrderWIPSrceAcct as _AccountDetermination on _item.rbukrs = _AccountDetermination.CompanyCode
and _item.racct >= _AccountDetermination.WIPSourceAccountFrom
and _item.racct <= _AccountDetermination.WIPSourceAccountTo
{
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
}
where
(
accasty = 'OR'
or accasty = 'OP'
)
and bttype <> 'TBCS' --ignore Transaction-Based Split
and bttype <> 'EBWP' --ignore Event-Based WIP posting
and(
autyp = '10'
or autyp = '40'
)
and objnr <> ''
and(
co_beknz <> 'A' //To avoid interactionof WIP and Variance posting in the same time,
//we should exlde the settlement from WIP relevant costs
and aufnr <> paufnr
)
or(
aufnr = paufnr
)
and(
WIPSourceAccountCategory is not null
and WIPSourceAccountCategory <> ''
and WIPSourceAccountCategory <> 'N'
)
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_LEDGER",
"I_REALTIMEMFGORDERWIPSRCEACCT",
"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