P_CompanyCodeDetailsPT
Company Code details PT
P_CompanyCodeDetailsPT is a Composite CDS View that provides data about "Company Code details PT" in SAP S/4HANA. It reads from 2 data sources (I_CompanyCode, t001n) and exposes 7 fields with key fields CompanyCode, Country, Country. Part of development package GLO_FIN_IS_VAT_PT.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_CompanyCode | I_CompanyCode | union |
| t001n | t001n | from |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Company Code details PT | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | t001n | bukrs | |
| KEY | Country | t001n | land1 | |
| VATRegistration | t001n | stceg | ||
| CompanyCode | ||||
| KEY | Country | I_CompanyCode | Country | |
| VATRegistration | I_CompanyCode | VATRegistration | ||
| VATRegistration_wo_prefix |
@VDM.private: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #COMPOSITE
@Metadata.ignorePropagatedAnnotations : true
@EndUserText.label: 'Company Code details PT'
define view entity P_CompanyCodeDetailsPT
as select from t001n
join I_CompanyCode on I_CompanyCode.CompanyCode = t001n.bukrs
and I_CompanyCode.Country <> t001n.land1
{
key t001n.bukrs as CompanyCode,
key t001n.land1 as Country,
t001n.stceg as VATRegistration,
substring(t001n.stceg, 3, 18) as VATRegistration_wo_prefix
}
union select from I_CompanyCode
{
key I_CompanyCode.CompanyCode,
key I_CompanyCode.Country,
I_CompanyCode.VATRegistration,
substring(I_CompanyCode.VATRegistration, 3, 18) as VATRegistration_wo_prefix
}
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