I_PT_SAFTSelfBillgInvoiceHdr

DDL: I_PT_SAFTSELFBILLGINVOICEHDR SQL: IPTSAFTSBINVHDR Type: view COMPOSITE Package: GLO_FIN_IS_SAFT_PT

SAF-T PT Self-Billing Invoice Header

I_PT_SAFTSelfBillgInvoiceHdr is a Composite CDS View that provides data about "SAF-T PT Self-Billing Invoice Header" in SAP S/4HANA. It reads from 1 data source (I_PT_SAFTSelfBillgSuplrInvcHdr) and exposes 33 fields with key fields CompanyCode, DocumentTransaction. It has 1 association to related views. Part of development package GLO_FIN_IS_SAFT_PT.

Data Sources (1)

SourceAliasJoin Type
I_PT_SAFTSelfBillgSuplrInvcHdr SupplierInvoiceHeader from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_SAFTPaymentTermsValidityDay _PaymentTermsValidityDay $projection.PaymentTerms = _PaymentTermsValidityDay.PaymentTerms

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IPTSAFTSBINVHDR view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #D view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
EndUserText.label SAF-T PT Self-Billing Invoice Header view

Fields (33)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_PT_SAFTSelfBillgSuplrInvcHdr CompanyCode Receiver Company Code
KEY DocumentTransaction DocumentTransaction Transaction ID
PortugueseInvoiceNumber PortugueseInvoiceNumber
Supplier Supplier Supplier
PostingDate I_PT_SAFTSelfBillgSuplrInvcHdr PostingDate Posting Date for GR
SupplierInvoice I_PT_SAFTSelfBillgSuplrInvcHdr SupplierInvoice
DocumentDate I_PT_SAFTSelfBillgSuplrInvcHdr DocumentDate Journal Entry Date
PTDgtlSgntrSystemDateTimeText PTDgtlSgntrSystemDateTimeText Sys. Date-Time
PortugueseDgtlSgntrSystDteTime PortugueseDgtlSgntrSystDteTime
LastChangedByUser LastChangedByUser User Name
PortugueseDigitalSignature PortugueseDigitalSignature Digital Signature
PortugueseDgtlSgntrKeyVersion PortugueseDgtlSgntrKeyVersion Key Version
FiscalPeriod I_PT_SAFTSelfBillgSuplrInvcHdr FiscalPeriod Tax period
PortugueseInvoiceDate PortugueseInvoiceDate Date
PortugueseInvoiceType PortugueseInvoiceType
PortugueseCustomerWithVersion PortugueseCustomerWithVersion
PlantCustomer PlantCustomer
InvoiceReference InvoiceReference Invoice Reference
CompanyCodeCurrency I_PT_SAFTSelfBillgSuplrInvcHdr CompanyCodeCurrency Local Currency
TaxAmountInCoCodeCrcy TaxAmountInCoCodeCrcy Tax Amount in Company Code Currency
NetAmountInCoCodeCurrency NetAmountInCoCodeCurrency
TotalGrossAmountInCoCodeCrcy TotalGrossAmountInCoCodeCrcy Amount in LC
CreditAmountInCoCodeCrcy CreditAmountInCoCodeCrcy Credit Amount in Company Code Currency
DebitAmountInCoCodeCrcy DebitAmountInCoCodeCrcy Debit Amount in Company Code Currency
DocumentCurrency DocumentCurrency Document Currency
InvoiceAmountInFrgnCurrency InvoiceAmountInFrgnCurrency Invc. Amt Frgn Crcy
InvoiceGrossAmount I_PT_SAFTSelfBillgSuplrInvcHdr InvoiceGrossAmount Gross Invoice Amount
ExchangeRate
PaymentTerms I_PT_SAFTSelfBillgSuplrInvcHdr PaymentTerms Pyt Terms
PT_SeriesDocumentNumber PT_SeriesDocumentNumber ATCUD Code
PaymentTermsValidityMonthDay _PaymentTermsValidityDay PaymentTermsValidityMonthDay Day Limit
_Supplier _Supplier
_Customer _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_PT_SAFTSelfBillgInvoiceHdr.
-- 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: IPTSAFTSBINVHDR

CREATE VIEW I_PT_SAFTSelfBillgInvoiceHdr AS
SELECT
  SupplierInvoiceHeader.CompanyCode AS CompanyCode,
  DocumentTransaction,
  PortugueseInvoiceNumber,
  Supplier,
  SupplierInvoiceHeader.PostingDate AS PostingDate,
  SupplierInvoiceHeader.SupplierInvoice AS SupplierInvoice,
  SupplierInvoiceHeader.DocumentDate AS DocumentDate,
  PTDgtlSgntrSystemDateTimeText,
  PortugueseDgtlSgntrSystDteTime,
  LastChangedByUser,
  PortugueseDigitalSignature,
  PortugueseDgtlSgntrKeyVersion,
  SupplierInvoiceHeader.FiscalPeriod AS FiscalPeriod,
  PortugueseInvoiceDate,
  PortugueseInvoiceType,
  PortugueseCustomerWithVersion,
  PlantCustomer,
  InvoiceReference,
  SupplierInvoiceHeader.CompanyCodeCurrency AS CompanyCodeCurrency,
  TaxAmountInCoCodeCrcy,
  NetAmountInCoCodeCurrency,
  TotalGrossAmountInCoCodeCrcy,
  CreditAmountInCoCodeCrcy,
  DebitAmountInCoCodeCrcy,
  DocumentCurrency,
  InvoiceAmountInFrgnCurrency,
  SupplierInvoiceHeader.InvoiceGrossAmount AS InvoiceGrossAmount,
  abs( SupplierInvoiceHeader.ExchangeRate ) AS ExchangeRate,
  SupplierInvoiceHeader.PaymentTerms AS PaymentTerms,
  PT_SeriesDocumentNumber,
  _PaymentTermsValidityDay.PaymentTermsValidityMonthDay AS PaymentTermsValidityMonthDay
FROM I_PT_SAFTSelfBillgSuplrInvcHdr AS SupplierInvoiceHeader
LEFT OUTER JOIN I_SAFTPaymentTermsValidityDay AS _PaymentTermsValidityDay ON PaymentTerms = _PaymentTermsValidityDay.PaymentTerms  -- association [0..1]
;