P_EBOrderWIPCost2
P_EBOrderWIPCost2 is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_LedgerCompanyCodeCrcyRoles, P_EBOrderWIPCost1) and exposes 4 fields with key fields CompanyCode, OrderID, OrderItem, SubLedgerAcctLineItemType.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_LedgerCompanyCodeCrcyRoles | _LedgerCompanyCodeCrcyRole | inner |
| P_EBOrderWIPCost1 | P_EBOrderWIPCost1 | from |
Parameters (4)
| Name | Type | Default |
|---|---|---|
| P_Ledger | fins_ledger | |
| P_FromFiscalYearPeriod | fins_fyearperiod | |
| P_ToFiscalYearPeriod | fins_fyearperiod | |
| P_CurrencyRole | fis_curtp |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PEBORDWIPCST2 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | WIPCost | CompanyCode | |
| KEY | OrderID | OrderID | ||
| KEY | OrderItem | OrderItem | ||
| KEY | SubLedgerAcctLineItemType | SubLedgerAcctLineItemType |
@AbapCatalog.sqlViewName: 'PEBORDWIPCST2'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.private: true
@VDM.viewType: #COMPOSITE
define view P_EBOrderWIPCost2
with parameters
P_Ledger : fins_ledger,
P_FromFiscalYearPeriod : fins_fyearperiod,
P_ToFiscalYearPeriod : fins_fyearperiod,
P_CurrencyRole : fis_curtp
as select from P_EBOrderWIPCost1( P_Ledger : :P_Ledger,
P_FromFiscalYearPeriod: :P_FromFiscalYearPeriod,
P_ToFiscalYearPeriod : :P_ToFiscalYearPeriod ) as WIPCost
inner join I_LedgerCompanyCodeCrcyRoles as _LedgerCompanyCodeCrcyRole on _LedgerCompanyCodeCrcyRole.CompanyCode = WIPCost.CompanyCode
and _LedgerCompanyCodeCrcyRole.Ledger = :P_Ledger
{
key WIPCost.CompanyCode,
key OrderID,
key OrderItem,
key SubLedgerAcctLineItemType,
cast(
case :P_CurrencyRole
when _LedgerCompanyCodeCrcyRole.CompanyCodeCurrencyRole then AmountInCompanyCodeCurrency
when _LedgerCompanyCodeCrcyRole.GlobalCurrencyRole then AmountInGlobalCurrency
when _LedgerCompanyCodeCrcyRole.FreeDefinedCurrency1Role then AmountInFreeDefinedCurrency1
when _LedgerCompanyCodeCrcyRole.FreeDefinedCurrency2Role then AmountInFreeDefinedCurrency2
when _LedgerCompanyCodeCrcyRole.FreeDefinedCurrency3Role then AmountInFreeDefinedCurrency3
when _LedgerCompanyCodeCrcyRole.FreeDefinedCurrency4Role then AmountInFreeDefinedCurrency4
when _LedgerCompanyCodeCrcyRole.FreeDefinedCurrency5Role then AmountInFreeDefinedCurrency5
when _LedgerCompanyCodeCrcyRole.FreeDefinedCurrency6Role then AmountInFreeDefinedCurrency6
when _LedgerCompanyCodeCrcyRole.FreeDefinedCurrency7Role then AmountInFreeDefinedCurrency7
when _LedgerCompanyCodeCrcyRole.FreeDefinedCurrency8Role then AmountInFreeDefinedCurrency8
else 0
end as farp_amount_display_crcy) as AmountInDisplayCurrency
}
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