I_NO_SAFTHeader
SAF-T Norway Header
I_NO_SAFTHeader is a Composite CDS View that provides data about "SAF-T Norway Header" in SAP S/4HANA. It reads from 5 data sources (I_SAFTHeader, P_NO_CompanyCodeRegNumber, P_NO_CompanyCodeVAT, P_NO_CompanyCodeFirstName, P_NO_CompanyCodeLastName) and exposes 9 fields with key fields CompanyCode, StartDate. Part of development package GLO_FIN_IS_SAFT_NO.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| I_SAFTHeader | a | from |
| P_NO_CompanyCodeRegNumber | CcodRegNumber | left_outer |
| P_NO_CompanyCodeVAT | CcodVAT | left_outer |
| P_NO_CompanyCodeFirstName | CcodVATFirstName | left_outer |
| P_NO_CompanyCodeLastName | CcodVATLastName | left_outer |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | INOSAFTHEAD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| EndUserText.label | SAF-T Norway Header | view |
Fields (9)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_SAFTHeader | CompanyCode | Receiver Company Code |
| KEY | StartDate | I_SAFTHeader | StartDate | Valid From |
| EndDate | I_SAFTHeader | EndDate | Term to | |
| EmbeddedSwVersionDescription | b | EmbeddedSwVersionStatusDesc | ||
| CompanyCodeName | ||||
| VATRegistration318endasVATRegistration | ||||
| FirstName135elseNAendasFirstName | ||||
| LastNameelseNAendasLastName | ||||
| _CompanyCode | I_SAFTHeader | _CompanyCode |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view I_NO_SAFTHeader.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: INOSAFTHEAD
CREATE VIEW I_NO_SAFTHeader AS
SELECT
a.CompanyCode AS CompanyCode,
a.StartDate AS StartDate,
a.EndDate AS EndDate,
b.EmbeddedSwVersionStatusDesc AS EmbeddedSwVersionDescription,
a._CompanyCode.CompanyCodeName AS CompanyCodeName,
case when a._CompanyCode.Country = 'NO' then CcodRegNumber.VATRegistration else substring(a._CompanyCode.VATRegistration, 3, 18) end as VATRegistration AS VATRegistration318endasVATRegistration,
case when CcodVATFirstName.FirstName is not initial and CcodVATFirstName.FirstName is not null then substring(CcodVATFirstName.FirstName,1,35) else 'NA' end as FirstName AS FirstName135elseNAendasFirstName,
case when CcodVATLastName.LastName is not initial and CcodVATLastName.LastName is not null then CcodVATLastName.LastName else 'NA' end as LastName AS LastNameelseNAendasLastName,
a._CompanyCode AS _CompanyCode
FROM I_SAFTHeader AS a
LEFT OUTER JOIN P_NO_CompanyCodeVAT AS CcodVAT ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_NO_CompanyCodeRegNumber AS CcodRegNumber ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_NO_CompanyCodeFirstName AS CcodVATFirstName ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_NO_CompanyCodeLastName AS CcodVATLastName ON /* join condition not captured in parsed metadata */
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA