C_Customer360ApprovalBusDoc
Customer 360 business doc approvals
C_Customer360ApprovalBusDoc is a Consumption CDS View that provides data about "Customer 360 business doc approvals" in SAP S/4HANA. It reads from 2 data sources (I_Customer360BusDocSetting, I_SalesDocument) and exposes 19 fields with key fields SoldToParty, SalesDocument, SalesDocumentType. It is exposed through 1 OData service (SD_ADVNCD_CUSTOMER360). Part of development package ODATA_SD_ADVNCD_CUSTOMER360.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_Customer360BusDocSetting | Customer360BusDocSetting | inner |
| I_SalesDocument | SalesDocument | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Customer 360 business doc approvals | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| VDM.viewType | #CONSUMPTION | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| SD_ADVNCD_CUSTOMER360 | SD_ADVNCD_CUSTOMER360 | V4 | C1 | NOT_RELEASED |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SoldToParty | I_SalesDocument | SoldToParty | |
| KEY | SalesDocument | I_SalesDocument | SalesDocument | |
| KEY | SalesDocumentType | I_SalesDocument | SalesDocumentType | |
| CustomerName | ||||
| SDDocumentCategory | I_SalesDocument | SDDocumentCategory | ||
| SalesDocApprovalStatus | I_SalesDocument | SalesDocApprovalStatus | ||
| TotalNetAmount | I_SalesDocument | TotalNetAmount | ||
| TransactionCurrency | I_SalesDocument | TransactionCurrency | ||
| CreationDate | I_SalesDocument | CreationDate | ||
| int1asSalesDocApprovalStsCriticality | ||||
| SDDocumentCategoryName | ||||
| SalesDocApprovalStatusDesc | ||||
| SalesDocumentTypeName | ||||
| _SalesDocApprovalStatus | I_SalesDocument | _SalesDocApprovalStatus | ||
| _SalesDocumentType | I_SalesDocument | _SalesDocumentType | ||
| SalesOrganization | I_SalesDocument | SalesOrganization | ||
| OrganizationDivision | I_SalesDocument | OrganizationDivision | ||
| DistributionChannel | I_SalesDocument | DistributionChannel | ||
| _SDDocumentCategory | I_SalesDocument | _SDDocumentCategory |
//@AbapCatalog.sqlViewName: 'CUST360BDAPRVL'
//@AbapCatalog.compiler.compareFilter: true
//@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #('TRANSACTIONAL_DATA')
@EndUserText.label: 'Customer 360 business doc approvals'
@ObjectModel: {
// compositionRoot: true,
// representativeKey: 'SalesDocument',
usageType: {
dataClass: #TRANSACTIONAL,
serviceQuality: #C,
sizeCategory: #L
}
}
@VDM.viewType: #CONSUMPTION
define view entity C_Customer360ApprovalBusDoc
as select from I_SalesDocument as SalesDocument
inner join I_Customer360BusDocSetting as Customer360BusDocSetting on Customer360BusDocSetting.Cust360BusDocCategory = SalesDocument.SDDocumentCategory
and Customer360BusDocSetting.BusDocInApprovalIsEnabled = 'X'
{
@ObjectModel.text.element: ['CustomerName']
key SalesDocument.SoldToParty as SoldToParty,
key SalesDocument.SalesDocument,
@ObjectModel.foreignKey.association: '_SalesDocumentType'
key SalesDocument.SalesDocumentType,
@UI.hidden: true
SalesDocument._SoldToParty.CustomerName as CustomerName,
@ObjectModel.foreignKey.association: '_SDDocumentCategory'
SalesDocument.SDDocumentCategory,
@ObjectModel.foreignKey.association: '_SalesDocApprovalStatus'
SalesDocument.SalesDocApprovalStatus,
@Semantics.amount.currencyCode: 'TransactionCurrency'
SalesDocument.TotalNetAmount,
SalesDocument.TransactionCurrency,
SalesDocument.CreationDate,
cast( case SalesDocument.SalesDocApprovalStatus
when 'D' then 2
when 'A' then 0
end as abap.int1 ) as SalesDocApprovalStsCriticality,
SalesDocument._SDDocumentCategory._Text[1:Language = $session.system_language].SDDocumentCategoryName as SDDocumentCategoryName,
SalesDocument._SalesDocApprovalStatus._Text[1:Language = $session.system_language].SalesDocApprovalStatusDesc as SalesDocApprovalStatusDesc,
SalesDocument._SalesDocumentType._Text[1:Language = $session.system_language].SalesDocumentTypeName as SalesDocumentTypeName,
//expose associations
SalesDocument._SalesDocApprovalStatus,
SalesDocument._SalesDocumentType,
//For DCL
SalesDocument.SalesOrganization,
SalesDocument.OrganizationDivision,
SalesDocument.DistributionChannel,
//associations
@Consumption.filter.hidden: true
SalesDocument._SDDocumentCategory
}
where
SalesDocument.SalesDocApprovalStatus = 'A'
or SalesDocument.SalesDocApprovalStatus = 'D'
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