C_PT_SAFTSlsItemRef
Sales Invoices Line References - Cube
C_PT_SAFTSlsItemRef is a Consumption CDS View (Cube) that provides data about "Sales Invoices Line References - Cube" in SAP S/4HANA. It reads from 9 data sources and exposes 23 fields with key fields CompanyCode, PT_SAFTDocumentNumber, PT_SAFTLineNumber, PT_SAFTDocumentNumber, PT_SAFTLineNumber. Part of development package GLO_FIN_IS_SAFT_PT.
Data Sources (9)
| Source | Alias | Join Type |
|---|---|---|
| I_PT_SAFTBillgInvcListItem | a | union |
| I_PT_SAFTDownPaytAcctgItem | a | union |
| I_SDDocumentMultiLevelProcFlow | b | inner |
| I_SAFTAccountingItem | BaseDocument | inner |
| I_PT_SAFTBillgSlsInvcItem | BillItem | from |
| I_PT_SAFTAccountingItem | Document | union |
| I_PT_AcctgDocDgtlSgntr | Reference | inner |
| I_PT_AcctgDocDgtlSgntr | Reference | inner |
| I_PT_SAFTBillgSettlementItem | SettlmtMgmtItem | union |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Analytics.internalName | #LOCAL | view | |
| Metadata.allowExtensions | true | view | |
| Analytics.dataCategory | #CUBE | view | |
| EndUserText.label | Sales Invoices Line References - Cube | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (23)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_PT_SAFTBillgSlsInvcItem | CompanyCode | Receiver Company Code |
| KEY | PT_SAFTDocumentNumber | I_PT_SAFTBillgSlsInvcItem | PT_SAFTDocumentNumber | |
| KEY | PT_SAFTLineNumber | I_PT_SAFTBillgSlsInvcItem | PT_SAFTLineNumber | |
| CompanyCode | Receiver Company Code | |||
| KEY | PT_SAFTDocumentNumber | |||
| KEY | PT_SAFTLineNumber | |||
| KEY | PT_SAFTInvoiceReference | |||
| SDDocumentReasonText | ||||
| CompanyCode | Receiver Company Code | |||
| KEY | PT_SAFTDocumentNumber | I_PT_SAFTDownPaytAcctgItem | PT_SAFTDocumentNumber | |
| KEY | PT_SAFTLineNumber | I_PT_SAFTDownPaytAcctgItem | PT_SAFTLineNumber | |
| KEY | PT_SAFTInvoiceReference | |||
| CompanyCode | Receiver Company Code | |||
| KEY | PT_SAFTDocumentNumber | I_PT_SAFTBillgSettlementItem | PT_SAFTDocumentNumber | |
| KEY | PT_SAFTLineNumber | |||
| KEY | PT_SAFTInvoiceReference | I_PT_SAFTBillgSettlementItem | PT_SAFTInvoiceReference | |
| SDDocumentReasonText | ||||
| CompanyCode | Receiver Company Code | |||
| KEY | PT_SAFTDocumentNumber | I_PT_SAFTDownPaytAcctgItem | PT_SAFTDocumentNumber | |
| KEY | PT_SAFTLineNumber | I_PT_SAFTDownPaytAcctgItem | PT_SAFTLineNumber | |
| KEY | PT_SAFTInvoiceReference | |||
| SDDocumentReasonText | ||||
| CITClassificationCodeDesc |
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_SAFTSlsItemRef.
-- 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_SAFTSlsItemRef AS
SELECT
BillItem.CompanyCode AS CompanyCode,
BillItem.PT_SAFTDocumentNumber AS PT_SAFTDocumentNumber,
BillItem.PT_SAFTLineNumber AS PT_SAFTLineNumber,
cast(Reference.PortugueseInvoiceNumber as saft_pt_documentnumber ) AS PT_SAFTInvoiceReference,
'' AS SDDocumentReasonText,
cast( 'FI' as ficite_clsfcodename ) AS CITClassificationCodeDesc
FROM I_PT_SAFTBillgSlsInvcItem AS BillItem
INNER JOIN I_SAFTAccountingItem AS BaseDocument ON /* join condition not captured in parsed metadata */
INNER JOIN I_PT_AcctgDocDgtlSgntr AS Reference ON /* join condition not captured in parsed metadata */
INNER JOIN I_SDDocumentMultiLevelProcFlow AS b ON /* join condition not captured in parsed metadata */
-- UNION with additional select branch(es): I_PT_SAFTAccountingItem, I_PT_SAFTBillgInvcListItem, I_PT_SAFTBillgSettlementItem, I_PT_SAFTDownPaytAcctgItem
;
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