I_PT_SAFTDeliveryProduct

DDL: I_PT_SAFTDELIVERYPRODUCT SQL: IPTSAFTDLPRD Type: view COMPOSITE

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)

SourceAliasJoin Type
I_PT_DeliveryDgtlSgntr signature inner

Associations (4)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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..*]
;