I_TranspPurgOrgCoCodeAssgmt
Purchasing Org Company Code Assignment
I_TranspPurgOrgCoCodeAssgmt is a Composite CDS View that provides data about "Purchasing Org Company Code Assignment" in SAP S/4HANA. It reads from 2 data sources (I_PlantPurchasingOrganization, I_TranspPurgOrg) and exposes 4 fields with key fields TranspPurgOrg, CompanyCode, CompanyCode. It has 1 association to related views. Part of development package VDM_TM_ORG_UNIT.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_PlantPurchasingOrganization | I_PlantPurchasingOrganization | union |
| I_TranspPurgOrg | I_TranspPurgOrg | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Purchasing Org Company Code Assignment | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #ORGANIZATIONAL | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | TranspPurgOrg | TranspPurgOrg | ||
| KEY | CompanyCode | CompanyCode | ||
| KEY | CompanyCode | |||
| _CompanyCode | _CompanyCode |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Purchasing Org Company Code Assignment'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #B,
sizeCategory: #S,
dataClass: #ORGANIZATIONAL
}
@ObjectModel.supportedCapabilities: [ #SQL_DATA_SOURCE,
#CDS_MODELING_DATA_SOURCE,
#CDS_MODELING_ASSOCIATION_TARGET ]
@VDM.viewType: #COMPOSITE
define view entity I_TranspPurgOrgCoCodeAssgmt as select from I_TranspPurgOrg
{
key TranspPurgOrg,
key CompanyCode,
/* Associations */
_CompanyCode
} where CompanyCode <> ''
union select from I_PlantPurchasingOrganization
association [0..1] to I_CompanyCode as _CompanyCode on $projection.CompanyCode = _CompanyCode.CompanyCode
{
key cast( PurchasingOrganization as /scmtms/purch_org preserving type ) as TranspPurgOrg,
key cast( _Plant._ValuationArea.CompanyCode as /scmtms/purch_company_code preserving type ) as CompanyCode,
/* Associations */
_CompanyCode
} where _Plant._ValuationArea.CompanyCode <> ''
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