I_PT_SAFTSelfBillgInvoiceHdr
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)
| Source | Alias | Join Type |
|---|---|---|
| I_PT_SAFTSelfBillgSuplrInvcHdr | SupplierInvoiceHeader | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_SAFTPaymentTermsValidityDay | _PaymentTermsValidityDay | $projection.PaymentTerms = _PaymentTermsValidityDay.PaymentTerms |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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