Deprecated
This CDS view is deprecated in S/4HANA. Use NoSuccessor instead. View all deprecated CDS views →

C_PT_SAFTGenLedgerVATRegBP

DDL: C_PT_SAFTGENLEDGERVATREGBP Type: view_entity CONSUMPTION Package: ID-FI-SAFT_DEPREC

SAFT PT BP VAT Reg Master Data

C_PT_SAFTGenLedgerVATRegBP is a Consumption CDS View that provides data about "SAFT PT BP VAT Reg Master Data" in SAP S/4HANA. It reads from 1 data source (C_PT_SAFTAccountGenLedgerC) and exposes 11 fields with key fields CompanyCode, FiscalYear. Part of development package ID-FI-SAFT_DEPREC.

Data Sources (1)

SourceAliasJoin Type
C_PT_SAFTAccountGenLedgerC Account inner

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
EndUserText.label SAFT PT BP VAT Reg Master Data view
Metadata.ignorePropagatedAnnotations true view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor NoSuccessor view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode Document CompanyCode Receiver Company Code
KEY FiscalYear Document FiscalYear G/L Fiscal Year
Customer Document Customer Sold-to Party
BusinessPartnerCustomer Document BusinessPartnerCustomer CHAR35
Supplier Document Supplier Supplier
DelivOfGoodsDestCountry Document DelivOfGoodsDestCountry Dest. C/R
IsOneTimeAccount Document IsOneTimeAccount One-time acct
ReconciliationAccount C_PT_SAFTAccountGenLedgerC GLAccount General Ledger
char20asVATRegistration
_CompanyCode Document _CompanyCode
_FiscalYear Document _FiscalYear

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_PT_SAFTGenLedgerVATRegBP.
-- 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.

CREATE VIEW C_PT_SAFTGenLedgerVATRegBP AS
SELECT
  Document.CompanyCode AS CompanyCode,
  Document.FiscalYear AS FiscalYear,
  Document.Customer AS Customer,
  Document.BusinessPartnerCustomer AS BusinessPartnerCustomer,
  Document.Supplier AS Supplier,
  Document.DelivOfGoodsDestCountry AS DelivOfGoodsDestCountry,
  Document.IsOneTimeAccount AS IsOneTimeAccount,
  Account.GLAccount AS ReconciliationAccount,
  cast(case when Document.Supplier is not initial then case Document._Supplier.IsOneTimeAccount when 'X' then VATReg.VATRegistration else case when Document._Supplier.VATRegistration is not initial then substring(Document._Supplier.VATRegistration ,3,18) else 'Desconhecido' end end else case Document._Customer.IsOneTimeAccount when 'X' then VATReg.VATRegistration else case when Document._Customer.VATRegistration is not initial then substring(Document._Customer.VATRegistration ,3,18) else 'Desconhecido' end end end as abap.char(20)) as VATRegistration AS char20asVATRegistration,
  Document._CompanyCode AS _CompanyCode,
  Document._FiscalYear AS _FiscalYear
INNER JOIN C_PT_SAFTAccountGenLedgerC AS Account ON /* join condition not captured in parsed metadata */
;