C_NoCompanyCodeCustomer
Customer with no company code assignment
C_NoCompanyCodeCustomer is a Consumption CDS View that provides data about "Customer with no company code assignment" in SAP S/4HANA. It reads from 1 data source (I_Customer) and exposes 27 fields with key field Customer.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_Customer | _Customer | from |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CGRCNOCOCODECUS | view | |
| EndUserText.label | Customer with no company code assignment | view | |
| VDM.viewType | #CONSUMPTION | view | |
| OData.publish | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MASTER | view |
Fields (27)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Customer | I_Customer | Customer | |
| CustomerName | I_Customer | CustomerName | ||
| CustomerAccountGroup | I_Customer | CustomerAccountGroup | ||
| CreatedByUser | I_Customer | CreatedByUser | ||
| CreationDate | I_Customer | CreationDate | ||
| IsOneTimeAccount | I_Customer | IsOneTimeAccount | ||
| DeliveryIsBlocked | I_Customer | DeliveryIsBlocked | ||
| PostingIsBlocked | I_Customer | PostingIsBlocked | ||
| BillingIsBlockedForCustomer | I_Customer | BillingIsBlockedForCustomer | ||
| OrderIsBlockedForCustomer | I_Customer | OrderIsBlockedForCustomer | ||
| IsBusinessPurposeCompleted | _CustomerCompany | IsBusinessPurposeCompleted | ||
| CityName | I_Customer | CityName | ||
| Country | I_Customer | Country | ||
| DeletionIndicator | I_Customer | DeletionIndicator | ||
| CompanyCode | _CustomerCompany | CompanyCode | ||
| AuthorizationGroup | I_Customer | AuthorizationGroup | ||
| DataControllerSet | I_Customer | DataControllerSet | ||
| DataController1 | I_Customer | DataController1 | ||
| DataController2 | I_Customer | DataController2 | ||
| DataController3 | I_Customer | DataController3 | ||
| DataController4 | I_Customer | DataController4 | ||
| DataController5 | I_Customer | DataController5 | ||
| DataController6 | I_Customer | DataController6 | ||
| DataController7 | I_Customer | DataController7 | ||
| DataController8 | I_Customer | DataController8 | ||
| DataController9 | I_Customer | DataController9 | ||
| DataController10 | I_Customer | DataController10 |
@AbapCatalog.sqlViewName: 'CGRCNOCOCODECUS'
@EndUserText.label: 'Customer with no company code assignment'
@VDM.viewType: #CONSUMPTION
@OData.publish: true
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AbapCatalog.buffering.status: #NOT_ALLOWED
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations: true
@Metadata.allowExtensions:true
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.dataClass: #MASTER
define view C_NoCompanyCodeCustomer as select from I_Customer as _Customer
left outer to many join I_CustomerCompany as _CustomerCompany on _Customer.Customer = _CustomerCompany.Customer
{
@Consumption.valueHelpDefinition: [{ entity:{ name: 'I_Customer_VH', element:'Customer' } }]
key _Customer.Customer as Customer,
@Semantics.text: true
_Customer.CustomerName as CustomerName,
_Customer.CustomerAccountGroup as CustomerAccountGroup,
@Semantics.user.createdBy: true
_Customer.CreatedByUser as CreatedByUser,
@Semantics.systemDate.createdAt: true
_Customer.CreationDate as CreationDate,
@Semantics.booleanIndicator: true
_Customer.IsOneTimeAccount,
_Customer.DeliveryIsBlocked,
_Customer.PostingIsBlocked,
_Customer.BillingIsBlockedForCustomer,
_Customer.OrderIsBlockedForCustomer,
@Semantics.booleanIndicator: true
_CustomerCompany.IsBusinessPurposeCompleted,
_Customer.CityName as CityName,
_Customer.Country as Country,
_Customer.DeletionIndicator as DeletionIndicator,
_CustomerCompany.CompanyCode as CompanyCode,
_Customer.AuthorizationGroup as AuthorizationGroup,
@UI.hidden: true
@Consumption.filter.hidden: true
_Customer.DataControllerSet,
//added only for DCL check
@UI.hidden: true
@Consumption.filter.hidden: true
_Customer.DataController1,
//added only for DCL check
@UI.hidden: true
@Consumption.filter.hidden: true
_Customer.DataController2,
//added only for DCL check
@UI.hidden: true
@Consumption.filter.hidden: true
_Customer.DataController3,
//added only for DCL check
@UI.hidden: true
@Consumption.filter.hidden: true
_Customer.DataController4,
//added only for DCL check
@UI.hidden: true
@Consumption.filter.hidden: true
_Customer.DataController5,
//added only for DCL check
@UI.hidden: true
@Consumption.filter.hidden: true
_Customer.DataController6,
//added only for DCL check
@UI.hidden: true
@Consumption.filter.hidden: true
_Customer.DataController7,
//added only for DCL check
@UI.hidden: true
@Consumption.filter.hidden: true
_Customer.DataController8,
//added only for DCL check
@UI.hidden: true
@Consumption.filter.hidden: true
_Customer.DataController9,
//added only for DCL check
@UI.hidden: true
@Consumption.filter.hidden: true
_Customer.DataController10
}
where _Customer.DeletionIndicator = ''
and _CustomerCompany.CompanyCode is null
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