I_NO_SAFTCustomerMasterData
Master data of customers for SAFT
I_NO_SAFTCustomerMasterData is a Composite CDS View that provides data about "Master data of customers for SAFT" in SAP S/4HANA. It reads from 11 data sources and exposes 58 fields with key fields CompanyCode, Customer, AccountingDocument, LedgerGLLineItem, Customer.
Data Sources (11)
| Source | Alias | Join Type |
|---|---|---|
| I_Address_2 | Address | inner |
| I_BusinessPartner | BP | inner |
| I_BPCurrentDefaultAddress | BPAddress | inner |
| I_Customer | Customer | inner |
| I_CustomerCompany | CustomerCompany | inner |
| I_CustomerCompany | CustomerCompany | inner |
| I_CustomerToBusinessPartner | CustToBP | inner |
| I_NO_SAFTCustomersInPeriod | I_NO_SAFTCustomersInPeriod | inner |
| I_SAFTCustomerBalance | I_SAFTCustomerBalance | from |
| I_GLAccountLineItemRawData | JournalItem | union_all |
| I_JournalEntryItemOneTimeData | OneTimeBP | inner |
Parameters (4)
| Name | Type | Default |
|---|---|---|
| P_FromPostingDate | budat | |
| P_ToPostingDate | budat | |
| P_Ledger | fins_ledger | |
| P_FiscalYear | gjahr |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view | |
| EndUserText.label | Master data of customers for SAFT | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (58)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_CustomerCompany | CompanyCode | Receiver Company Code |
| KEY | Customer | I_CustomerCompany | Customer | Sold-to Party |
| KEY | AccountingDocument | Journal Entry | ||
| KEY | LedgerGLLineItem | Journal Entry Item | ||
| NO_SAFTCustomerID | ||||
| BusinessPartner | I_BusinessPartner | BusinessPartner | Issuing Authority | |
| BusinessPartnerUUID | I_BusinessPartner | BusinessPartnerUUID | UUID | |
| GLAccount | I_CustomerCompany | ReconciliationAccount | Recon. account | |
| IsOneTimeAccount | I_Customer | IsOneTimeAccount | One-time acct | |
| TaxNumber1 | I_Customer | TaxNumber1 | Tax Number 1 | |
| TaxNumber2 | I_Customer | TaxNumber2 | Tax Number 2 | |
| BusinessPartnerName1 | I_Customer | BusinessPartnerName1 | Name | |
| BusinessPartnerName2 | I_Customer | BusinessPartnerName2 | Name 2 | |
| VATRegistration | I_Customer | VATRegistration | Tax Number 1 | |
| CustomerName | ||||
| Country | I_Address_2 | Country | Venue: Ctry/Reg | |
| Region | I_Address_2 | Region | Venue Region | |
| CityName | I_Address_2 | CityName | Name | |
| StreetName | I_Address_2 | StreetName | Street | |
| HouseNumber | I_Address_2 | HouseNumber | House Number | |
| PostalCode | I_Address_2 | PostalCode | Postal Code | |
| POBox | I_Address_2 | POBox | PO Box | |
| POBoxPostalCode | I_Address_2 | POBoxPostalCode | PO Box Postal Code | |
| BankAccount | Bank acct | |||
| BankNumber | Bank Key | |||
| RegionName | RegionText | RegionName | Description | |
| _CompanyCode | I_CustomerCompany | _CompanyCode | ||
| P_FromPostingDate | ||||
| P_ToPostingDate | ||||
| P_Ledger | ||||
| CompanyCode | Receiver Company Code | |||
| KEY | Customer | I_CustomerCompany | Customer | Sold-to Party |
| KEY | AccountingDocument | I_GLAccountLineItemRawData | AccountingDocument | Journal Entry |
| KEY | LedgerGLLineItem | I_GLAccountLineItemRawData | LedgerGLLineItem | Journal Entry Item |
| Customer0NAendasNO_SAFTCustomerID | ||||
| BusinessPartner | I_Customer | BusinessPartner | Issuing Authority | |
| BusinessPartnerUUID | I_Customer | BusinessPartnerUUID | UUID | |
| GLAccount | I_CustomerCompany | ReconciliationAccount | Recon. account | |
| IsOneTimeAccount | I_Customer | IsOneTimeAccount | One-time acct | |
| TaxNumber1 | I_JournalEntryItemOneTimeData | TaxID1 | Tax Number 1 | |
| TaxNumber2 | I_JournalEntryItemOneTimeData | TaxID2 | Tax Number 2 | |
| BusinessPartnerName1 | I_JournalEntryItemOneTimeData | BusinessPartnerName1 | Name | |
| BusinessPartnerName2 | I_JournalEntryItemOneTimeData | BusinessPartnerName2 | Name 2 | |
| VATRegistration | I_JournalEntryItemOneTimeData | TaxID1 | Tax Number 1 | |
| CustomerName | ||||
| Country | I_JournalEntryItemOneTimeData | Country | Venue: Ctry/Reg | |
| Region | I_JournalEntryItemOneTimeData | Region | Venue Region | |
| CityName | I_JournalEntryItemOneTimeData | CityName | Name | |
| StreetName | I_JournalEntryItemOneTimeData | StreetAddressName | Street | |
| HouseNumber | House Number | |||
| PostalCode | I_JournalEntryItemOneTimeData | PostalCode | Postal Code | |
| POBox | I_JournalEntryItemOneTimeData | POBox | PO Box | |
| POBoxPostalCode | I_JournalEntryItemOneTimeData | POBoxPostalCode | PO Box Postal Code | |
| BankAccount | I_JournalEntryItemOneTimeData | BankAccount | Bank acct | |
| BankNumber | I_JournalEntryItemOneTimeData | BankNumber | Bank Key | |
| RegionName | RegionText | RegionName | Description | |
| _CompanyCode | I_CustomerCompany | _CompanyCode | ||
| _Customer | I_CustomerCompany | _Customer |
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_SAFTCustomerMasterData.
-- 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.
-- Parameters: P_FromPostingDate : budat, P_ToPostingDate : budat, P_Ledger : fins_ledger, P_FiscalYear : gjahr
CREATE VIEW I_NO_SAFTCustomerMasterData AS
SELECT
CustomerCompany.CompanyCode AS CompanyCode,
CustomerCompany.Customer AS Customer,
cast('' as fis_belnr) AS AccountingDocument,
cast('' as fis_docln) AS LedgerGLLineItem,
cast(ltrim(Customer.Customer,'0') as saftn_no_customer_id) AS NO_SAFTCustomerID,
BP.BusinessPartner AS BusinessPartner,
BP.BusinessPartnerUUID AS BusinessPartnerUUID,
CustomerCompany.ReconciliationAccount AS GLAccount,
Customer.IsOneTimeAccount AS IsOneTimeAccount,
Customer.TaxNumber1 AS TaxNumber1,
Customer.TaxNumber2 AS TaxNumber2,
Customer.BusinessPartnerName1 AS BusinessPartnerName1,
Customer.BusinessPartnerName2 AS BusinessPartnerName2,
Customer.VATRegistration AS VATRegistration,
cast('' as md_customer_name) AS CustomerName,
Address.Country AS Country,
Address.Region AS Region,
Address.CityName AS CityName,
Address.StreetName AS StreetName,
Address.HouseNumber AS HouseNumber,
Address.PostalCode AS PostalCode,
Address.POBox AS POBox,
Address.POBoxPostalCode AS POBoxPostalCode,
cast('' as bankn) AS BankAccount,
cast('' as bankk) AS BankNumber,
RegionText.RegionName AS RegionName,
CustomerCompany._CompanyCode AS _CompanyCode,
CustomerCompany._Customer AS P_FromPostingDate,
P_ToPostingDate: $parameters.P_ToPostingDate AS P_ToPostingDate,
P_Ledger: $parameters.P_Ledger AS P_Ledger,
case when OneTimeBP.TaxID1 is not initial then concat(concat(ltrim(JournalItem.Customer,'0'), '/'), OneTimeBP.TaxID1) when OneTimeBP.TaxID2 is not initial then concat(concat(ltrim(JournalItem.Customer,'0'), '/'), OneTimeBP.TaxID2) else concat(ltrim(JournalItem.Customer,'0'), '/NA') end as NO_SAFTCustomerID AS Customer0NAendasNO_SAFTCustomerID,
CustomerCompany._Customer AS _Customer
FROM I_SAFTCustomerBalance
INNER JOIN I_Customer AS Customer ON /* join condition not captured in parsed metadata */
INNER JOIN I_CustomerCompany AS CustomerCompany ON /* join condition not captured in parsed metadata */
INNER JOIN I_CustomerToBusinessPartner AS CustToBP ON /* join condition not captured in parsed metadata */
INNER JOIN I_BusinessPartner AS BP ON /* join condition not captured in parsed metadata */
INNER JOIN I_BPCurrentDefaultAddress AS BPAddress ON /* join condition not captured in parsed metadata */
INNER JOIN I_Address_2 AS Address ON /* join condition not captured in parsed metadata */
INNER JOIN I_NO_SAFTCustomersInPeriod ON /* join condition not captured in parsed metadata */
INNER JOIN I_JournalEntryItemOneTimeData AS OneTimeBP ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_GLAccountLineItemRawData
;
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