I_PT_SAFTDeliveryProduct
SAF-T Billing Product
I_PT_SAFTDeliveryProduct is a Composite CDS View that provides data about "SAF-T Billing Product" in SAP S/4HANA. It reads from 1 data source (I_PT_DeliveryDgtlSgntr) and exposes 10 fields with key fields DeliveryDocument, CompanyCode, Product. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PT_DeliveryDgtlSgntr | signature | inner |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_PT_SAFTDeliveryMaterial | _materialHist | delprod.Material = _materialHist.Material and signature.PortugueseDeliveryNumber = _materialHist.PortugueseDeliveryNumber and(signature.PortugueseDigitalSignatureDate >= _materialHist.PortugueseDigitalSignatureDate ) |
| [0..1] | I_PT_SAFTDangerousGoodsCode | _DangerousGoodsIdnNumber | $projection.Product = _DangerousGoodsIdnNumber.ProductID |
| [1..1] | I_PT_SAFTProductType | _ProductType | delprod.CompanyCode = _ProductType.CompanyCode and delprod.ProductType = _ProductType.MaterialType |
| [0..*] | I_ProductDescription | _delPro | delprod.Material = _delPro.Product |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPTSAFTDLPRD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| EndUserText.label | SAF-T Billing Product | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (10)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DeliveryDocument | delprod | DeliveryDocument | Outbound Delivery |
| KEY | CompanyCode | delprod | CompanyCode | Receiver Company Code |
| KEY | Product | delprod | Material | Vehicle Model |
| MaterialType | delprod | ProductType | Product Type Group | |
| PortugueseInvoiceDate | I_PT_DeliveryDgtlSgntr | DeliveryDate | Delivery Date | |
| MaterialendasMaterial | ||||
| Material_0000endasProductID | ||||
| _Product | _Product | |||
| ProductType | _ProductType | ProductType | Product Type Group | |
| _DangerousGoodsIdnNumber | _DangerousGoodsIdnNumber |
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_SAFTDeliveryProduct.
-- 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: IPTSAFTDLPRD
CREATE VIEW I_PT_SAFTDeliveryProduct AS
SELECT
delprod.DeliveryDocument AS DeliveryDocument,
delprod.CompanyCode AS CompanyCode,
delprod.Material AS Product,
delprod.ProductType AS MaterialType,
signature.DeliveryDate AS PortugueseInvoiceDate,
case when _materialHist.Material is not initial then _materialHist.Material else delprod.Material end as Material AS MaterialendasMaterial,
case when _materialHist.PortugueseMaterialWithVersion is not initial then _materialHist.PortugueseMaterialWithVersion else concat(delprod.Material,'_0000') end as ProductID AS Material_0000endasProductID,
_ProductType.ProductType AS ProductType
INNER JOIN I_PT_DeliveryDgtlSgntr AS signature ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PT_SAFTDeliveryMaterial AS _materialHist ON delprod.Material = _materialHist.Material AND signature.PortugueseDeliveryNumber = _materialHist.PortugueseDeliveryNumber AND(signature.PortugueseDigitalSignatureDate >= _materialHist.PortugueseDigitalSignatureDate ) -- association [0..1]
LEFT OUTER JOIN I_PT_SAFTDangerousGoodsCode AS _DangerousGoodsIdnNumber ON Product = _DangerousGoodsIdnNumber.ProductID -- association [0..1]
LEFT OUTER JOIN I_PT_SAFTProductType AS _ProductType ON delprod.CompanyCode = _ProductType.CompanyCode AND delprod.ProductType = _ProductType.MaterialType -- association [1..1]
LEFT OUTER JOIN I_ProductDescription AS _delPro ON delprod.Material = _delPro.Product -- association [0..*]
;
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