C_LU_SAFTHeader
SAFT LU Header
C_LU_SAFTHeader is a Consumption CDS View that provides data about "SAFT LU Header" in SAP S/4HANA. It reads from 2 data sources (I_LU_SAFTGenericSettings, I_SAFTHeader) and exposes 21 fields with key fields CompanyCode, StartDate, EndDate, FiscalYear. It has 2 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_LU_SAFTGenericSettings | GenSet | inner |
| I_SAFTHeader | head | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_AddlCompanyCodeInformation | _ContactFirstName | $projection.CompanyCode = _ContactFirstName.CompanyCode and _ContactFirstName.CompanyCodeParameterType = 'FNAME' |
| [1..1] | I_AddlCompanyCodeInformation | _ContactLastName | $projection.CompanyCode = _ContactLastName.CompanyCode and _ContactLastName.CompanyCodeParameterType = 'LNAME' |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CLUSAFTHEADER | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #CONSUMPTION | view | |
| EndUserText.label | SAFT LU Header | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_SAFTHeader | CompanyCode | Receiver Company Code |
| KEY | StartDate | StartDate | Valid From | |
| KEY | EndDate | EndDate | Term to | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| VATRegistration | ||||
| CompanyCodeNameendasCompanyName | ||||
| StreetName | ||||
| HouseNumber | ||||
| CityNameendasCityName | ||||
| PostalCode | ||||
| Country | ||||
| EmbeddedSwVersionStatusDesc | vers | EmbeddedSwVersionStatusDesc | ||
| AddressID | ||||
| Person | ||||
| FirstName | _ContactFirstName | CompanyCodeParameterValue | Company Code | |
| LastName | _ContactLastName | CompanyCodeParameterValue | Company Code | |
| PhoneNumber | ||||
| FaxNumber | ||||
| EmailAddress | ||||
| URLFieldLength | ||||
| WebsiteURL |
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 C_LU_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: CLUSAFTHEADER
CREATE VIEW C_LU_SAFTHeader AS
SELECT
head.CompanyCode AS CompanyCode,
StartDate,
EndDate,
FiscalYear,
cast(head._CompanyCode.VATRegistration as abap.char(20)) AS VATRegistration,
case when head._CompanyCode._Address.BusinessPartnerName1 is not initial then concat_with_space (head._CompanyCode._Address.BusinessPartnerName1, head._CompanyCode._Address.BusinessPartnerName2, 1) else head._CompanyCode.CompanyCodeName end as CompanyName AS CompanyCodeNameendasCompanyName,
head._CompanyCode._Address.StreetName AS StreetName,
head._CompanyCode._Address.HouseNumber AS HouseNumber,
case when head._CompanyCode.CityName is not initial then head._CompanyCode.CityName else head._CompanyCode._Address.CityName end as CityName AS CityNameendasCityName,
head._CompanyCode._Address.PostalCode AS PostalCode,
head._CompanyCode._Address.Country AS Country,
vers.EmbeddedSwVersionStatusDesc AS EmbeddedSwVersionStatusDesc,
head._CompanyCode._Address.AddressID AS AddressID,
head._CompanyCode._Address.Person AS Person,
_ContactFirstName.CompanyCodeParameterValue AS FirstName,
_ContactLastName.CompanyCodeParameterValue AS LastName,
head._CompanyCode._Address._DefaultPhoneNumber.PhoneNumber AS PhoneNumber,
cast(head._CompanyCode._Address._DefaultFaxNumber.FaxNumber as abap.char(31)) AS FaxNumber,
head._CompanyCode._Address._DefaultEmailAddress.EmailAddress AS EmailAddress,
head._CompanyCode._Address._DefaultURLAddress.URLFieldLength AS URLFieldLength,
lower(head._CompanyCode._Address._DefaultURLAddress.SearchURLAddress) AS WebsiteURL
FROM I_SAFTHeader AS head
INNER JOIN I_LU_SAFTGenericSettings AS GenSet ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_AddlCompanyCodeInformation AS _ContactFirstName ON CompanyCode = _ContactFirstName.CompanyCode AND _ContactFirstName.CompanyCodeParameterType = 'FNAME' -- association [1..1]
LEFT OUTER JOIN I_AddlCompanyCodeInformation AS _ContactLastName ON CompanyCode = _ContactLastName.CompanyCode AND _ContactLastName.CompanyCodeParameterType = 'LNAME' -- association [1..1]
;
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