C_PT_SAFTWrkgDocumentQuery
SAFT PT Working Doc Hd - Qry
C_PT_SAFTWrkgDocumentQuery is a Consumption CDS View that provides data about "SAFT PT Working Doc Hd - Qry" in SAP S/4HANA. It reads from 1 data source (C_PT_SAFTPrelimDocumentCube) and exposes 22 fields with key fields CompanyCode, PortugueseInvoiceDate, PT_SAFTDocumentNumber. Part of development package GLO_FIN_IS_SAFT_PT.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| C_PT_SAFTPrelimDocumentCube | a | from |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPTSAFTWKDHQRY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| EndUserText.label | SAFT PT Working Doc Hd - Qry | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Analytics.query | true | view |
Fields (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | C_PT_SAFTPrelimDocumentCube | CompanyCode | Receiver Company Code |
| KEY | PortugueseInvoiceDate | C_PT_SAFTPrelimDocumentCube | PortugueseInvoiceDate | Invoice Date |
| KEY | PT_SAFTDocumentNumber | C_PT_SAFTPrelimDocumentCube | PT_SAFTDocumentNumber | Document Number |
| DocumentTransaction | C_PT_SAFTPrelimDocumentCube | DocumentTransaction | Transaction ID | |
| DocumentBillingStatus | C_PT_SAFTPrelimDocumentCube | DocumentBillingStatus | PBEE BDR Status | |
| LastChangeDateTimeText | C_PT_SAFTPrelimDocumentCube | LastChangeDateTimeText | Sys. Date-Time | |
| ReversalReasonName | C_PT_SAFTPrelimDocumentCube | ReversalReasonName | Rev. Reason Name | |
| LastChangedByUser | C_PT_SAFTPrelimDocumentCube | LastChangedByUser | User Name | |
| SourceBillingDocumentType | C_PT_SAFTPrelimDocumentCube | SourceBillingDocumentType | Billing Type | |
| PortugueseDigitalSignature | C_PT_SAFTPrelimDocumentCube | PortugueseDigitalSignature | Digital Signature | |
| PortugueseDgtlSgntrKeyVersion | C_PT_SAFTPrelimDocumentCube | PortugueseDgtlSgntrKeyVersion | Key Version | |
| FiscalPeriod | C_PT_SAFTPrelimDocumentCube | FiscalPeriod | Tax period | |
| PTDgtlSgntrSystemDateTimeText | C_PT_SAFTPrelimDocumentCube | PTDgtlSgntrSystemDateTimeText | Sys. Date-Time | |
| WorkTypeName | C_PT_SAFTPrelimDocumentCube | WorkTypeName | WorkType | |
| PortugueseCustomerWithVersion | C_PT_SAFTPrelimDocumentCube | PortugueseCustomerWithVersion | Customer ID | |
| TotalTaxAmount | C_PT_SAFTPrelimDocumentCube | TotalTaxAmount | Total Tax Amount | |
| TotalNetAmount | C_PT_SAFTPrelimDocumentCube | TotalNetAmount | Total Net Amount | |
| TotalGrossAmount | C_PT_SAFTPrelimDocumentCube | TotalGrossAmount | Total Gross Amount | |
| TransactionCurrency | C_PT_SAFTPrelimDocumentCube | TransactionCurrency | Transaction Currency | |
| CompanyCodeCurrency | C_PT_SAFTPrelimDocumentCube | CompanyCodeCurrency | Local Currency | |
| InvoiceAmountInFrgnCurrency | C_PT_SAFTPrelimDocumentCube | InvoiceAmountInFrgnCurrency | Invc. Amt Frgn Crcy | |
| ExchangeRate | C_PT_SAFTPrelimDocumentCube | ExchangeRate | Exchange rate |
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_SAFTWrkgDocumentQuery.
-- 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: CPTSAFTWKDHQRY
CREATE VIEW C_PT_SAFTWrkgDocumentQuery AS
SELECT
a.CompanyCode AS CompanyCode,
a.PortugueseInvoiceDate AS PortugueseInvoiceDate,
a.PT_SAFTDocumentNumber AS PT_SAFTDocumentNumber,
a.DocumentTransaction AS DocumentTransaction,
a.DocumentBillingStatus AS DocumentBillingStatus,
a.LastChangeDateTimeText AS LastChangeDateTimeText,
a.ReversalReasonName AS ReversalReasonName,
a.LastChangedByUser AS LastChangedByUser,
a.SourceBillingDocumentType AS SourceBillingDocumentType,
a.PortugueseDigitalSignature AS PortugueseDigitalSignature,
a.PortugueseDgtlSgntrKeyVersion AS PortugueseDgtlSgntrKeyVersion,
a.FiscalPeriod AS FiscalPeriod,
a.PTDgtlSgntrSystemDateTimeText AS PTDgtlSgntrSystemDateTimeText,
a.WorkTypeName AS WorkTypeName,
a.PortugueseCustomerWithVersion AS PortugueseCustomerWithVersion,
a.TotalTaxAmount AS TotalTaxAmount,
a.TotalNetAmount AS TotalNetAmount,
a.TotalGrossAmount AS TotalGrossAmount,
a.TransactionCurrency AS TransactionCurrency,
a.CompanyCodeCurrency AS CompanyCodeCurrency,
a.InvoiceAmountInFrgnCurrency AS InvoiceAmountInFrgnCurrency,
a.ExchangeRate AS ExchangeRate
FROM C_PT_SAFTPrelimDocumentCube 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