C_PT_SAFTDeliveryHdrCube

DDL: C_PT_SAFTDELIVERYHDRCUBE SQL: CPTSAFTDELHDRC Type: view CONSUMPTION

SAFT Delivery Document Header cube view

C_PT_SAFTDeliveryHdrCube is a Consumption CDS View (Cube) that provides data about "SAFT Delivery Document Header cube view" in SAP S/4HANA. It reads from 1 data source (I_PT_SAFTDeliveryHeader) and exposes 40 fields with key field PortugueseDeliveryNumber.

Data Sources (1)

SourceAliasJoin Type
I_PT_SAFTDeliveryHeader I_PT_SAFTDeliveryHeader from

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName CPTSAFTDELHDRC view
Analytics.dataCategory #CUBE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XXL view
VDM.viewType #CONSUMPTION view
Analytics.internalName #LOCAL view
AbapCatalog.preserveKey true view
EndUserText.label SAFT Delivery Document Header cube view view

Fields (40)

KeyFieldSource TableSource FieldDescription
KEY PortugueseDeliveryNumber PortugueseDeliveryNumber Delivery No
DeliveryDocument DeliveryDocument Outbound Delivery
ShipToParty ShipToParty Ship-To Party (obsolete)
CreationTime CreationTime Time of Change
CompanyCode CompanyCode Receiver Company Code
DeliveryDocumentType DeliveryDocumentType Delivery Type
PT_SeriesDocumentNumber PT_SeriesDocumentNumber ATCUD Code
PT_SeriesDocumentType PT_SeriesDocumentType SAF-T Document Type
GoodsMovementStatus GoodsMovementStatus Gds Movemt Status
CreatedByUser CreatedByUser User Name
PortugueseDigitalSignature PortugueseDigitalSignature Digital Signature
BillingPriceSource BillingPriceSource Single-Character Flag
PTDgtlSgntrSystemDateTimeText PTDgtlSgntrSystemDateTimeText Sys. Date-Time
PortugueseDgtlSgntrKeyVersion PortugueseDgtlSgntrKeyVersion Key Version
TransportationPlanningDate
PortugueseSgntrCertificate PortugueseSgntrCertificate Certif. ID
Supplier Supplier Supplier
DeliveryDate DeliveryDate Delivery Date
ShipToPartyHouseNumber ShipToPartyHouseNumber House Number
ShipToPartyStreetName ShipToPartyStreetName Street
CustAddressNumber CustAddressNumber
ShipToPartyCityName ShipToPartyCityName City
ShipToPartyPostalCode ShipToPartyPostalCode Postal Code
ShipToPartyCountry ShipToPartyCountry Country/Region
CustomerRegion CustomerRegion
HouseNumber HouseNumber House Number
StreetName StreetName Text
SupplierAddress SupplierAddress 3rd Party Suplr Addr
CityName CityName Name
PostalCode PostalCode Postal Code
Region Region Venue Region
Country Country Venue: Ctry/Reg
TransportationPlanningTimeZone TransportationPlanningTimeZone Time Zone
GoodsIssueTime GoodsIssueTime GI Time
InvoiceAmountInFrgnCurrency InvoiceAmountInFrgnCurrency Invc. Amt Frgn Crcy
TransactionCurrency Transaction Currency
TotalGrossAmount Total Gross Amount
TotalNetAmount TotalNetAmount Total Net Amount
TotalTaxAmount TotalTaxAmount Tax Amount
ExchangeRate 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_SAFTDeliveryHdrCube.
-- 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: CPTSAFTDELHDRC

CREATE VIEW C_PT_SAFTDeliveryHdrCube AS
SELECT
  PortugueseDeliveryNumber,
  DeliveryDocument,
  ShipToParty,
  CreationTime,
  CompanyCode,
  DeliveryDocumentType,
  PT_SeriesDocumentNumber,
  PT_SeriesDocumentType,
  GoodsMovementStatus,
  CreatedByUser,
  PortugueseDigitalSignature,
  BillingPriceSource,
  PTDgtlSgntrSystemDateTimeText,
  PortugueseDgtlSgntrKeyVersion,
  SUBSTRING(TransportationPlanningDate,5,2) AS TransportationPlanningDate,
  PortugueseSgntrCertificate,
  Supplier,
  DeliveryDate,
  ShipToPartyHouseNumber,
  ShipToPartyStreetName,
  CustAddressNumber,
  ShipToPartyCityName,
  ShipToPartyPostalCode,
  ShipToPartyCountry,
  CustomerRegion,
  HouseNumber,
  StreetName,
  SupplierAddress,
  CityName,
  PostalCode,
  Region,
  Country,
  TransportationPlanningTimeZone,
  GoodsIssueTime,
  InvoiceAmountInFrgnCurrency,
  cast(TransactionCurrency as waers) AS TransactionCurrency,
  cast( TotalGrossAmount as abap.dec(11,2)) AS TotalGrossAmount,
  TotalNetAmount,
  TotalTaxAmount,
  ExchangeRate
FROM I_PT_SAFTDeliveryHeader
;