P_SalesOrdJournalEntryItem
Journal Entry for Sales Order
P_SalesOrdJournalEntryItem is a Consumption CDS View that provides data about "Journal Entry for Sales Order" in SAP S/4HANA. It reads from 1 data source (I_JournalEntryItem) and exposes 9 fields with key fields SalesDocument, SalesDocumentItem, CompanyCode, Ledger.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_JournalEntryItem | I_JournalEntryItem | from |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PEBRRSDDOCJOUR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Journal Entry for Sales Order | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (9)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesDocument | SalesDocument | ||
| KEY | SalesDocumentItem | SalesDocumentItem | ||
| KEY | CompanyCode | CompanyCode | ||
| KEY | Ledger | Ledger | ||
| SalesOrderType | SalesOrderType | |||
| FiscalYear | FiscalYear | |||
| FiscalPeriod | FiscalPeriod | |||
| FiscalYearVariant | _CompanyCode | FiscalYearVariant | ||
| Plant | Plant |
@AbapCatalog.sqlViewName: 'PEBRRSDDOCJOUR'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Journal Entry for Sales Order'
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.dataClass: #MIXED
@VDM.private: true
@VDM.viewType: #CONSUMPTION
define view P_SalesOrdJournalEntryItem
as select from I_JournalEntryItem
{
key SalesDocument,
key SalesDocumentItem,
key CompanyCode,
key Ledger,
SalesOrderType,
FiscalYear,
FiscalPeriod,
_CompanyCode.FiscalYearVariant,
//Exception for sales from stock
case when ControllingObject = ''
then concat('VB', concat(SalesDocument, SalesDocumentItem))
else ControllingObject end as ControllingObject,
case when ControllingObject = ''
then 'VB'
else substring(ControllingObject, 1, 2) end as Prefix,
Plant
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_COMPANYCODE",
"I_JOURNALENTRYITEM"
],
"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