I_PT_SAFTSlsInvoiceStructure
SAFT PT Sales invoice structure
I_PT_SAFTSlsInvoiceStructure is a Basic CDS View that provides data about "SAFT PT Sales invoice structure" in SAP S/4HANA. It reads from 1 data source (saft_ptd_slinvia) and exposes 24 fields with key fields CompanyCode, PT_SAFTDocumentNumber, PT_SAFTLineNumber, PortugueseInvoiceDate. Part of development package GLO_FIN_IS_SAFT_PT.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| saft_ptd_slinvia | a | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | SAFT PT Sales invoice structure | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (24)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | companycode | Receiver Company Code | |
| KEY | PT_SAFTDocumentNumber | pt_saftdocumentnumber | ||
| KEY | PT_SAFTLineNumber | pt_saftlinenumber | ||
| KEY | PortugueseInvoiceDate | portugueseinvoicedate | Date | |
| SourceDocument | sourcedocument | Document | ||
| PortugueseMaterialWithVersion | portuguesematerialwithversion | Material w/ Version | ||
| MaterialName | materialname | Material Description | ||
| Quantity | quantity | Value | ||
| UnitOfMeasure | unitofmeasure | Unit Protected Qty | ||
| UnitOfMeasureName | unitofmeasurename | Meas. Unit Text | ||
| NetPriceAmount | netpriceamount | Net Price | ||
| TaxReportingDate | taxreportingdate | Tax Reporting Date | ||
| BillingDocumentItemText | billingdocumentitemtext | Item Descr. | ||
| DebitAmountInCoCodeCrcy | debitamountincocodecrcy | Debit Amount in Company Code Currency | ||
| CreditAmountInCoCodeCrcy | creditamountincocodecrcy | Credit Amount in Company Code Currency | ||
| CompanyCodeCurrency | companycodecurrency | Local Currency | ||
| PT_SAFTTaxType | pt_safttaxtype | Tax Type | ||
| PT_SAFTCountryText | pt_saftcountrytext | |||
| PT_SAFTTaxCode | pt_safttaxcode | Tax Code | ||
| TaxRate | taxrate | Tax Rate | ||
| TaxAmount | taxamount | Tax Amt in Rptg Crcy | ||
| ExemptionReasonText | exemptionreasontext | |||
| ExemptionReason | exemptionreason | Exempt. Reason | ||
| CashDiscountAmtInCoCodeCrcy | cashdiscountamtincocodecrcy | Discount Amt |
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_SAFTSlsInvoiceStructure.
-- 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 I_PT_SAFTSlsInvoiceStructure AS
SELECT
CompanyCode,
PT_SAFTDocumentNumber,
PT_SAFTLineNumber,
PortugueseInvoiceDate,
SourceDocument,
PortugueseMaterialWithVersion,
MaterialName,
Quantity,
UnitOfMeasure,
UnitOfMeasureName,
NetPriceAmount,
TaxReportingDate,
BillingDocumentItemText,
DebitAmountInCoCodeCrcy,
CreditAmountInCoCodeCrcy,
CompanyCodeCurrency,
PT_SAFTTaxType,
PT_SAFTCountryText,
PT_SAFTTaxCode,
TaxRate,
TaxAmount,
ExemptionReasonText,
ExemptionReason,
CashDiscountAmtInCoCodeCrcy
FROM saft_ptd_slinvia AS a
;
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