C_SalesOrderOverview
Additional Filters
C_SalesOrderOverview is a Consumption CDS View that provides data about "Additional Filters" in SAP S/4HANA. It reads from 1 data source (I_SalesOrder). It has 6 associations to related views. Part of development package ODATA_SD_CUSTOMER360.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SalesOrder | I_SalesOrder | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_DisplayCurrency | vdm_v_display_currency |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Customer_VH | _SoldToParty | $projection.SoldToParty = _SoldToParty.Customer |
| [0..1] | C_Dischannelvaluehelp | _DistributionChannel | $projection.SalesOrganization = _DistributionChannel.SalesOrganization and $projection.DistributionChannel = _DistributionChannel.DistributionChannel |
| [0..1] | C_OrgDivisionValueHelp | _Division | $projection.SalesOrganization = _Division.SalesOrganization and $projection.DistributionChannel = _Division.DistributionChannel and $projection.OrganizationDivision = _Division.Division |
| [0..1] | I_SalesOrganization | _SalesOrganization | $projection.SalesOrganization = _SalesOrganization.SalesOrganization |
| [0..1] | C_SalesOfficeValueHelp | _SalesOffice | $projection.SalesOrganization = _SalesOffice.SalesOrganization and $projection.DistributionChannel = _SalesOffice.DistributionChannel and $projection.OrganizationDivision = _SalesOffice.OrganizationDivision and $projection.SalesOffice = _SalesOffice.SalesOffice |
| [0..1] | C_SalesGroupValueHelp | _SalesGroup | $projection.SalesOffice = _SalesGroup.SalesOffice and $projection.SalesGroup = _SalesGroup.SalesGroup |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CSLSORDOVP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Additional Filters | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
@AbapCatalog: { sqlViewName: 'CSLSORDOVP',
compiler.compareFilter: true,
preserveKey: true
}
@AccessControl: { authorizationCheck: #CHECK,
personalData.blocking: #NOT_REQUIRED
}
@VDM: {
viewType: #CONSUMPTION
}
@ObjectModel: { usageType.dataClass: #MIXED,
usageType.serviceQuality: #C,
usageType.sizeCategory: #L
}
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Additional Filters'
@Metadata:{ allowExtensions: true,
ignorePropagatedAnnotations: true
}
define view C_SalesOrderOverview
with parameters
@Consumption.valueHelpDefinition: [{ entity:{ name: 'C_CurrencyValueHelp', element: 'Currency' } }]
P_DisplayCurrency : vdm_v_display_currency
as select from I_SalesOrder
// association [0..1] to I_Customer as _Customer on $projection.SoldToParty = _Customer.Customer
association [0..1] to I_Customer_VH as _SoldToParty on $projection.SoldToParty = _SoldToParty.Customer
association [0..1] to C_Dischannelvaluehelp as _DistributionChannel on $projection.SalesOrganization = _DistributionChannel.SalesOrganization
and $projection.DistributionChannel = _DistributionChannel.DistributionChannel
association [0..1] to C_OrgDivisionValueHelp as _Division on $projection.SalesOrganization = _Division.SalesOrganization
and $projection.DistributionChannel = _Division.DistributionChannel
and $projection.OrganizationDivision = _Division.Division
//association [1..1] to C_SalesDocumentUserVH as _CreatedByUser on $projection.CreatedByUser = _CreatedByUser.UserID
association [0..1] to I_SalesOrganization as _SalesOrganization on $projection.SalesOrganization = _SalesOrganization.SalesOrganization
// association [0..1] to C_SalesDocumentUserVH as _LastChangedByUser on $projection.LastChangedByUser = _LastChangedByUser.UserID
// association [0..1] to I_CustomerClassification as _CustomerClassification on $projection.customerclassification = _CustomerClassification.CustomerClassification
association [0..1] to C_SalesOfficeValueHelp as _SalesOffice on $projection.SalesOrganization = _SalesOffice.SalesOrganization
and $projection.DistributionChannel = _SalesOffice.DistributionChannel
and $projection.OrganizationDivision = _SalesOffice.OrganizationDivision
and $projection.SalesOffice = _SalesOffice.SalesOffice
association [0..1] to C_SalesGroupValueHelp as _SalesGroup on $projection.SalesOffice = _SalesGroup.SalesOffice
and $projection.SalesGroup = _SalesGroup.SalesGroup
{
key SalesOrder,
@Consumption.filter.mandatory: true
SoldToParty,
@ObjectModel.foreignKey.association: '_SalesOrganization'
SalesOrganization,
@Consumption.valueHelp: '_DistributionChannel'
DistributionChannel,
@Consumption.valueHelp: '_Division'
OrganizationDivision,
@Consumption.valueHelp: '_SalesOffice'
SalesOffice,
@Consumption.valueHelp: '_SalesGroup'
SalesGroup,
//commented as a part of UserStory:FXUBLR07-27, it could be added in the future release
// @EndUserText.label: 'Customer Classification'
// @Consumption.valueHelp: '_CustomerClassification'
//
// _Customer.CustomerClassification,
// @Consumption.valueHelp: '_CreatedByUser'
// CreatedByUser,
//
// @Consumption.valueHelp: '_LastChangedByUser'
// LastChangedByUser,
/*Field added for DCL*/
SalesOrderType,
/*Associations*/
// @Consumption.filter.hidden: true
// _Customer,
@Consumption.filter.hidden: true
_SoldToParty,
@Consumption.filter.hidden: true
_DistributionChannel,
@Consumption.filter.hidden: true
_Division,
@Consumption.filter.hidden: true
_SalesOffice,
@Consumption.filter.hidden: true
_SalesGroup,
// @Consumption.filter.hidden: true
// _CustomerClassification,
// @Consumption.filter.hidden: true
// _CreatedByUser,
// @Consumption.filter.hidden: true
// _LastChangedByUser,
@Consumption.filter.hidden: true
_SalesOrganization
}
where
SalesOrderProcessingType <> 'P'
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