P_SlsOrdProcFlow11
P_SlsOrdProcFlow11 is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (I_MfgOrder, I_SalesDocument) and exposes 9 fields with key fields SalesDocument, ManufacturingOrder, SalesOrder.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_MfgOrder | MfgOrder | inner |
| I_SalesDocument | SalesDocument | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.sqlViewName | PSLSORDPROCF11 | view | |
| AbapCatalog.preserveKey | true | view |
Fields (9)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesDocument | I_SalesDocument | SalesDocument | |
| KEY | ManufacturingOrder | I_MfgOrder | ManufacturingOrder | |
| KEY | SalesOrder | |||
| SalesOrderType | SalesDocumentType | |||
| SalesOrderCategory | I_SalesDocument | SDDocumentCategory | ||
| ManufacturingOrderCategory | I_MfgOrder | ManufacturingOrderCategory | ||
| SalesOrganization | SalesOrganization | |||
| DistributionChannel | DistributionChannel | |||
| OrganizationDivision | OrganizationDivision |
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XL
@VDM.private: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #CONSUMPTION
@AbapCatalog.sqlViewName: 'PSLSORDPROCF11'
@AbapCatalog.preserveKey:true
define view P_SlsOrdProcFlow11
as select from I_SalesDocument as SalesDocument
inner join I_MfgOrder as MfgOrder on SalesDocument.SalesDocument = MfgOrder.SalesOrder
and MfgOrder.SalesOrderItem != '000000'
{
//Key
key SalesDocument.SalesDocument,
key MfgOrder.ManufacturingOrder,
//SalesOrder
key cast(SalesDocument.SalesDocument as vdm_sales_order) as SalesOrder,
SalesDocumentType as SalesOrderType,
//Category
SalesDocument.SDDocumentCategory as SalesOrderCategory,
MfgOrder.ManufacturingOrderCategory,
//Organization
SalesOrganization,
DistributionChannel,
OrganizationDivision
}
where SalesDocument.SDDocumentCategory = 'C' --> Order
or SalesDocument.SDDocumentCategory = 'I' --> Order w/o charge
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_MFGORDER",
"I_SALESDOCUMENT"
],
"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